Apache Maven 4.0.0-alpha-3 and org.apache.maven.plugins.enforcer.RequirePluginVersions?

2022-12-19 Thread Mirko Friedenhagen
Hello, we have configured this rule for ages and now when executing enforcer, I get: [INFO] --- enforcer:3.1.0:enforce (default-enforce) @ --- [INFO] Adding ignore: module-info [INFO] Adding ignore: META-INF/versions/*/module-info [ERROR] Rule 19: org.apache.maven.plugins.enforcer.RequirePlu

Re: maven 4 alpha

2022-12-19 Thread Mirko Friedenhagen
Hi John, I do not think you need a special Windows build, just unpack the ZIP or tar.gz from https://repo1.maven.org/maven2/org/apache/maven/apache-maven/4.0.0-alpha-3/. Please see my previous post (https://lists.apache.org/thread/g40p4ytdlnczpo3bwvht1thhg9l0d566), Maven 4 behaves sometimes d

MavenXpp3Reader.read: difference between Maven 3.8.6 and 4.0.0-alpha-3

2022-12-17 Thread Mirko Friedenhagen
Hello, please see https://github.com/mfriedenhagen/cyclonedx-maven-plugin-maven4-logging for an example of the problem. When running `mvn -V -q clean cyclonedx:makeBom` with Maven 4 an error message is shown while with Maven 3 the error path is not reached. It looks like MavenXpp3Reader.rea

Overriding/extending Default XXXLifecycleMappingProvider

2022-12-14 Thread Mirko Friedenhagen
Hi, in the past we have used a Maven jar where we just placed a src/main/resources/META-INF/plexus/components.xml which did override the called goals for different types resp. even created new types (e.g. a spring-boot-jar). We included this jar as `extension` in the `build` section of our com

Apache 3.8.5 installAtEnd not working when another repository is defined

2022-06-25 Thread Mirko Friedenhagen
Hello, I just ran into this issue: * In some Maven projects we activate additional repositories in settings.xml with the help of a marker file in a project. * With 3.8.4 using `installAtEnd` resp. `deployAtEnd` do work properly, with 3.8.5 and 3.8.6 nothing is installed or deployed. * I created

[ANN] Versions Maven Plugin 2.8.1 released

2020-08-10 Thread Mirko Friedenhagen
Hi, The Mojo team is pleased to announce the release of the Versions Plugin version 2.8.1. The Versions Plugin is used when you want to manage the versions of artifacts in a project's POM. https://www.mojohaus.org/versions-maven-plugin/ To get this update, simply specify the version in your p

Re: Finding out what the versions plugin did

2019-08-26 Thread Mirko Friedenhagen
Hello, we do something similar: GIT_MESSAGE=/tmp/git-message.txt mvn -B -V -e -l /tmp/maven-logfile versions:use-latest-releases versions:update-properties cat << EOF > ${GIT_MESSAGE} mvn -B -V -e -l /tmp/maven-logfile versions:use-latest-releases versions:update-properties https://git.example

Re: Finding out what the versions plugin did

2019-08-26 Thread Mirko Friedenhagen
Hello, we do something similar: GIT_MESSAGE=/tmp/git-message.txt mvn -B -V -e -l /tmp/maven-logfile versions:use-latest-releases versions:update-properties cat << EOF > ${GIT_MESSAGE} mvn -B -V -e -l /tmp/maven-logfile versions:use-latest-releases versions:update-properties https://git.example

Re: xml validation plugin against xsd

2018-11-30 Thread Mirko Friedenhagen
Hello Aitor, https://www.mojohaus.org/xml-maven-plugin/examples/validate-schema.html might be what you are looking for as you said _x_html which is xml. Best Regards Mirko Friedenhagen — Sent from my mobile Am 30.11.18 um 19:01 schrieb Aitor Iturriondobeitia > hello > do you know any

Re: invoker tests using multiple maven versions

2018-11-26 Thread Mirko Friedenhagen
Hello Matthieu, I always enforce using different versions in the CI. Sample for Travis: * https://github.com/1and1/ono-maven-shared/blob/master/.travis.yml - (uses Maven Wrapper) Sample for GitLab: * https://gitlab.com/mfried

Re: Username/password not sent for altDeploymentRepository?

2018-11-04 Thread Mirko Friedenhagen
Maybe you run into https://issues.apache.org/jira/plugins/servlet/mobile#issue/MDEPLOY-244. maven-deploy-Plugin 3.0x has a slightly different syntax for specifying alt*Repositories. Best Regards Mirko Friedenhagen — Sent from my mobile Am 04.11.18 um 22:47 schrieb Mark Raynsford > I

Re: Specifying a deployment repository *only* by ID?

2018-11-03 Thread Mirko Friedenhagen
Hello Mark, you may put the property in a profile of your settings.xml and just call „mvn -P releases deploy“ given the profile is called releases. Best Regards Mirko Friedenhagen — Sent from my mobile Am 03.11.18 um 17:55 schrieb Mark Raynsford > Hello. > > If I want to de

Re: Extension works from lib/ext and CLI but not extensions.xml

2018-10-26 Thread Mirko Friedenhagen
Hello, I think extensions are looked up in pluginRepositories, not the standard repositories. Maybe that’s your problem? Best Regards Mirko Friedenhagen — Sent from my mobile Am 26.10.18 um 17:41 schrieb Karl Heinz Marbaise > Hi, > > On 26/10/18 10:16, Matthieu BROUILLARD wrote

Re: Maven best practices for easily developer tweakable config file

2018-09-05 Thread Mirko Friedenhagen
Another possible solution could be to activate your custom logging.properties would be to use a profile Given the following layout: pom.xml src/main/resources/logging.properties Now normally the maven-resources-plugin will copy this file to target/classes/logging.properties during build and tes

Re: How to tell maven where to look for extensions (instead of central repository)

2018-03-23 Thread Mirko Friedenhagen
Hello, I observed that extensions seem to be fetched from pluginRepositories. Best regards Mirko -- Sent from my mobile Am 17.03.2018 11:59 schrieb "Anders Hammar" : > You need to provide more info to understand your questions. > "obviously everything else fails"? why obviously? > "why are plu

Re: javadoc:jar and generated sources

2018-03-16 Thread Mirko Friedenhagen
Hello there, one other idea: * see https://maven.apache.org/pom.html#The_Super_POM * release:perform activates the release-profile * inside of the release-profile an execution attach-sources is defined, which maybe does not inherit your configuration? Regards Mirko Regards Mirko -- http://illegal

Re: How to solve dependency convergence issue

2018-03-07 Thread Mirko Friedenhagen
Hello Niranja, you may find more details at https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html. Basically a version you manage in your project is more important than one managed in your project's parent which is more important than a version coming into the tre

Re: per-warm the maven cache for 2 stage Docker build

2018-03-07 Thread Mirko Friedenhagen
Hello Adam, as stated on the goal page[0] dependency:go-offline "Requires dependency resolution of artifacts in scope: test". In multi-module projects it might even fail because of unresolvable SNAPSHOT modules of the current reactor. I use this shell script (I call it mvn-go-offline): --- snip -

Re: warning messages

2018-02-28 Thread Mirko Friedenhagen
... There was nothing suspicious looking > there, but obviously, there was a conflict in at least one of the > libraries. > > Thanks a million! > --Bill > > On Wed, Feb 28, 2018 at 3:41 PM, Mirko Friedenhagen > wrote: > > Hello Bill, > > sorry for t

Re: warning messages

2018-02-28 Thread Mirko Friedenhagen
t; > I don't have any MAVEN_OPTS -- can you share an example? > > Thanks! > --Bill > > On Tue, Feb 27, 2018 at 4:43 PM, Mirko Friedenhagen > wrote: > > Hello Bill, > > > > I am running Maven 3.5.2 on macOS high sierra with Oracle JDK 1.8.162 and >

Re: warning messages

2018-02-27 Thread Mirko Friedenhagen
Hello Bill, I am running Maven 3.5.2 on macOS high sierra with Oracle JDK 1.8.162 and do not see these messages. I installed Maven using brew. Did you just download and unpack the tar.gz? Do you set MAVEN_OPTS either in your .bashrc or maybe .mavenrc file? Best regards Mirko -- Sent from my mo

RE: Need to fully understand bad implications of combined aggregator and parent pom

2016-12-05 Thread Mirko Friedenhagen
Hello, I use the combined aggregator/parent pom as well. While multiple poms may be cleaner because of separation of concerns, you might easily end in duplications for e.g. plugin definitions, which is a shame as well. Regards Mirko -- Sent from my mobile Am 05.12.2016 10:56 schrieb "Sander Ver

Re: Create test jar during build without attaching

2016-08-19 Thread Mirko Friedenhagen
Hello Christopher, it seems the jar is a test resource, so it is not different from a jpg which could be included as well in this way IMO. Regards Mirko -- Sent from my mobile Am 19.08.2016 03:47 schrieb "Christopher" : If this were a personal project, I'd probably do that... but this is for a

Re: Fail fast for 401 Unauthorized failures

2016-07-25 Thread Mirko Friedenhagen
Hello, maybe https://maven.apache.org/guides/mini/guide-http-settings.html#Example:_Using_Preemptive_Authentication could help. Regards Mirko -- Sent from my mobile Am 25.07.2016 15:11 schrieb "Tomasz Juchniewicz" : > Hi, > > I'm working in corporate environment with strict password locking pol

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing (Take 3)

2016-07-24 Thread Mirko Friedenhagen
Hello, I just published a Docker image at https://hub.docker.com/r/mfriedenhagen/docker-maven/. However, because I often use Maven in a CI environment I replaced the gossip and jansi jars with slf4j-simple. After adapting findbugs-maven-plugin to 3.0.4 my projects run successfully. Regards Mirko -

Re: Possible to alter project.distributionManagement.repository.url at build time?

2016-07-05 Thread Mirko Friedenhagen
Hello Dan, we use a property in distributionManagement which has is set in settings.xml (may be overridden on the CLI), something like: ${distribution.snapshot.url} Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-12 Thread Mirko Friedenhagen
So maybe I got all scopes wrong, however the new version seems basically quite incompatible with 3.3.9. On a side note I like to use org.slf4j.simpleLogger.showDateTime=true during CI runs. With the new logger the build time does not show anymore, the only thing that happens is that there is no col

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-12 Thread Mirko Friedenhagen
.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Sun, Jun 12, 2016 at 10:27 AM, Christian Schulte wrote: > Am 06/12/16 um 00:03 schrieb Mirko Friedenhagen: >> Hello Karl-Heinz, >> >> I tried this with 2 pr

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-11 Thread Mirko Friedenhagen
Forgot to mention: Both projects run fine with 3.3.9. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Sun, Jun 12, 2016 at 12:03 AM, Mirko Friedenhagen wrote: > Hello K

Re: Preleminary Maven 3.4.0-SNAPSHOT Testing

2016-06-11 Thread Mirko Friedenhagen
Hello Karl-Heinz, I tried this with 2 projects, firstly an inhouse project and it choked with: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19:test (default-test) on project ui-mamido-qamove: Execution default-test of goal org.apache.maven.plugins:maven-surefire

Re: mvn deploy without rebuilding?

2016-05-04 Thread Mirko Friedenhagen
Hello, what about enhancing the install plugin with a list of the latest installs and creating a mojo deploy:deploy-latest-install? Regards Mirko -- Sent from my mobile Am 03.05.2016 18:15 schrieb "Stephen Connolly" < stephen.alan.conno...@gmail.com>: > I think that if your SCM supports the opt

Re: iText 4.2.0 - Could a software licence be changed from MPL/LGPL to AGPL by simply redistributing the pom.xml?

2016-01-21 Thread Mirko Friedenhagen
Hello Siegfried, I do not think this was an accident, see https://issues.sonatype.org/plugins/servlet/mobile#issue/MVNCENTRAL-760. The relocation does break builds as the package is different as well. I am not a lawyer but at I think it is not a nice move to cause breaking builds and licensing is

Re: [VOTE] Retire Maven Application Skin, Maven Classic Skin, Maven Stylus Skin

2015-12-25 Thread Mirko Friedenhagen
+1 Regards Mirko -- Sent from my mobile Am 24.12.2015 23:34 schrieb "Michael Osipov" <1983-01...@gmx.net>: > Hi, > > as previously suggested, it makes sense to retire those skins because > they haven't been updated for a long time and we don't have the resources > to maintain them properly [1].

Re: How Maven solves the problem of long builds on large projects?

2015-12-21 Thread Mirko Friedenhagen
Hello Sergey, you may try to use https://github.com/timgifford/maven-buildtime-extension to identify which plugins contribute most to your long build times. Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhage

Re: disabling default plugin from phase?

2015-12-02 Thread Mirko Friedenhagen
Hello Martin, as a hack you may override this in your pluginManagement by specifying an invalid phase. org.apache.maven.plugins maven-source-plugin ${maven-source-plugin.version} true

Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Mirko Friedenhagen
>> PlexusTestCase class itself but it’s very similar to how the container if >>> created in the MavenCli class which also serves as an example. >>> >>> [1]: >>> https://github.com/apache/maven/blob/master/maven-core/src/test/java/org/apache/maven/AbstractCor

Re: Running tests using failsafe from a shaded jar?

2015-11-24 Thread Mirko Friedenhagen
anning on and see >> if it’s fast enough. You might also have to lift a few bits from the >> PlexusTestCase class itself but it’s very similar to how the container if >> created in the MavenCli class which also serves as an example. >> >> [1]: >> https://github.com/

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
nolly" < stephen.alan.conno...@gmail.com>: > If you get this working, any chance you could share your work? > > On 21 November 2015 at 21:20, Mirko Friedenhagen > wrote: > > > Hello, > > > > I want to use to run tests on machine, where Maven is not installed > >

Re: Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
.0.5/maven-core/apidocs/org/apache/maven/classrealm/DefaultClassRealmManager.html > > > Kind regards > Karl Heinz Marbaise > > > On 11/21/15 10:20 PM, Mirko Friedenhagen wrote: > >> Hello, >> >> I want to use to run tests on machine, where Maven is not inst

Running tests using failsafe from a shaded jar?

2015-11-21 Thread Mirko Friedenhagen
Hello, I want to use to run tests on machine, where Maven is not installed and access to a repository is not allowed. However I want to (ab-)use the failsafe plugin so I may use the fine machinery which allows to specify tests and get XML reports. Using maven-embedded I created an App class which

[ANNOUNCE] Release extra-enforcer-rules version 1.0-beta-4

2015-11-10 Thread Mirko Friedenhagen
The Extra Enforcer Rules team is pleased to announce the extra-enforcer-rules-1.0-beta-4 release! Extra Enforcer Rules. These are extra rules for Apache Maven's Enforcer Plugin. Changes in this version include: New features: o New rule requireProjectUrl o Adapt to mojohaus organisation. Fixed B

Re: WG: next beta release for mojohaus/extra-enforcer-rules

2015-11-03 Thread Mirko Friedenhagen
Hello Stephen, I just forwarded your mail to the mojo-dev list. I could cut a release, but it will take at least three days to a vote to pass. Regards Mirko -- Sent from my mobile Am 02.11.2015 07:47 schrieb "Krull, Stephan" : > Hello user list, > > I am interested in a release of the mentioned

[ANNOUNCE] Release buildnumber-maven-plugin version 1.4

2015-10-16 Thread Mirko Friedenhagen
Hi, the Build Number Maven Plugin team is pleased to announce the buildnumber-maven-plugin-1.4 release! This plugin is designed to give you a build number. So when you might make 100 builds of version 1.0-SNAPSHOT, you can differentiate between them all. Changes in this version: * Add basic

Re: Specified destination directory cannot be created

2015-08-14 Thread Mirko Friedenhagen
Hello Michael, just guessing: - sometimes spaces in the path may lead to problems. - sometimes Windows encounters a problem when a path is too long. Could you try setting setting localRepository as outlined in http://maven.apache.org/settings.html to c:/tmp/m2. Regards Mirko -- Sent from my m

Re: Skill set to maintain a enterprise build system using Maven

2015-05-31 Thread Mirko Friedenhagen
Hello Dan, I started as a "normal" Python developer, then built and led a team of test automation engineers while the management decided to switch to Java 10 years back and inherited CruiseControl, which we dropped for Hudson. I had some small scale operating experience as well (email server/route

Re: Skill set to maintain a enterprise build system using Maven

2015-05-31 Thread Mirko Friedenhagen
> Hi Mirko > > Looks like you have Artifactory to store all of release artifacts and > another 'release' repo to store the final approved release > > Is internal tooling, thirdparty upload going thru the same release > process? > > Thanks > > -Dan &g

Re: Skill set to maintain a enterprise build system using Maven

2015-05-30 Thread Mirko Friedenhagen
30, 2015 at 7:31 PM, Dan Tran wrote: > Thanks Mirko > > * What about snapshot and release policy, do developers/qa have access to > deploy snapshot and release artifacts? > * do you use artifact signing similar to Maven Central? > > > Thanks again > > -Dan >

Re: Skill set to maintain a enterprise build system using Maven

2015-05-30 Thread Mirko Friedenhagen
What I forgot: patience, social skills and remembering that not every application developer needs to be a build specialist are important as well :-) Regards Mirko -- Sent from my mobile Am 30.05.2015 07:29 schrieb "Dan Tran" : > Hi > > > I would like to ask if the community can share with me

Re: Skill set to maintain a enterprise build system using Maven

2015-05-30 Thread Mirko Friedenhagen
Hello Dan, currently I have a team of two (with me three) devops guys. We provide 30 Jenkins masters with 20 build nodes and about 1800 jobs which we provision ourselves as well (Debian is already installed and we are able to login via ssh). We provide the department pom, some Maven plugins, Artif

Hooking into maven-release-plugin:prepare

2015-05-15 Thread Mirko Friedenhagen
Hello everybody, we have a company pom with a maybe unusual versioning schema: - the development version is always 1-SNAPSHOT - the release version is always 1.${NEXT_MAJOR} By means of this "inactive" projects may always stay on company-pom-1-SNAPSHOT and unusual behaviour is nonetheless provoki

Re: maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
connectUrl that this is only supported for Subversion :-) . Regards Mirko -- Sent from my mobile On May 7, 2015 9:30 AM, "Dan Tran" wrote: > try scm:bootstrap > > make sure to passing the required argument and profile > > -D > > On Thu, May 7, 2015 at 12:18 AM, Mi

maven-release-plugin: syntax of connectionUrl with git?

2015-05-07 Thread Mirko Friedenhagen
Hello, yesterday I already had pushed a git tag by running mvn release:prepare and while I executed release:perform I remembered I had the wrong settings.xml activated. I accidentally deleted release.properties by running release:clean. Now I just wanted to run something like: mvn release-plugin

Re: java import package and maven dependencies

2015-03-24 Thread Mirko Friedenhagen
Hello Lin, maybe while struggling with this you could ask for help at the m2-us...@eclipse.org mailing list. Gruss Mirko -- Sent from my mobile On Mar 25, 2015 1:52 AM, "Lin Ma" wrote: > Thanks Gruss, > > Following your guidance I found the maven dependencies, and where is the > .classpath fil

Re: Takari Lifecycle, takari-war and altDeploymentRepository

2015-01-18 Thread Mirko Friedenhagen
sts for WAR > support so if some more people ask we'll consider adding support there. > > [1]: https://github.com/takari/takari-lifecycle/issues/7 > [2]: https://github.com/takari/takari-lifecycle/issues/8 > > On Jan 17, 2015, at 2:40 PM, Mirko Friedenhagen > wrote: > >

Takari Lifecycle, takari-war and altDeploymentRepository

2015-01-17 Thread Mirko Friedenhagen
Hello, is there a plan to support altDeploymentRepository? We.use release:stage and I am guessing that this will not work without this parameter. And how would I use the plugin for WARs? Right now I had to skip all standard plugins, right? Regards Mirko -- Sent from my mobile

Re: Little documentation issues

2014-12-16 Thread Mirko Friedenhagen
Barrie, if I am not wrong you probably have it right ;-) Regards Mirko -- Sent from my mobile On Dec 17, 2014 3:46 AM, "Barrie Treloar" wrote: > On 17 December 2014 at 12:24, Ron Wheeler > wrote: > > > > One of the wonderful features about Maven is that no matter how long one > > has been usi

Re: [VOTE] Name our mascot: "Shotgun" vs "The Maven Owl"

2014-12-16 Thread Mirko Friedenhagen
B Regards Mirko -- Sent from my mobile On Dec 15, 2014 11:40 AM, "Stephen Connolly" < stephen.alan.conno...@gmail.com> wrote: > After the run-off round, we are left with two names standing. > > This second vote will be a straight and simple majority wins. > > The vote will be open for at least 7

Re: release plugin issue

2014-11-30 Thread Mirko Friedenhagen
to problems. Regards Mirko -- Sent from my mobile On Nov 30, 2014 12:40 AM, "Stephen Connolly" < stephen.alan.conno...@gmail.com> wrote: > On Saturday, November 29, 2014, Mirko Friedenhagen < > mfriedenha...@gmail.com> > wrote: > > > Alejandro, > > &g

Re: release plugin issue

2014-11-29 Thread Mirko Friedenhagen
Alejandro, I have a completely different approach as we use a staging maven repository anyway: - make sure your workspace has no extra files by using your SCM clean function. - only run mvn release:prepare with the following preparationGoals property -DperformRelease=true -DinstallAtEnd=true -Ddep

Re: deploying war artifact to nexus is failing; packaging as jar works.

2014-11-23 Thread Mirko Friedenhagen
Just a wild guess: as a war the artifact will probably be much bigger because of the packaged dependencies. Running mvn -e deploy will show more information. Am 22.11.2014 11:48 schrieb "John Smith" : > Hello, > > I'm trying to distribute my war's artifact to nexus but I'm getting the > following

[ANN] Apache Maven PMD Plugin 3.3 Released

2014-11-22 Thread Mirko Friedenhagen
The Maven team is pleased to announce the release of the Apache Maven PMD Plugin, version 3.3 A Maven plugin for the PMD toolkit, that produces a report on both code rule violations and detected copy and paste fragments, as well as being able to fail the build based on these metrics. http://maven

Re: Fwd: JEP 223: New Version-String Scheme

2014-11-04 Thread Mirko Friedenhagen
And the scheme as I read it is MAJOR.FEATURE_MINOR.SECURITY.PATCHLEVEL and FEATURE_MINOR and SECURITY are sort of independent, so a bigger minor might be less secure. Regards Mirko -- Sent from my mobile On Nov 4, 2014 11:10 PM, "Paul Benedict" wrote: > Finally, JDK versioning will be 3 numbers

Re: Don't want to repeat plugin version for both build and reporting

2014-10-03 Thread Mirko Friedenhagen
Using properties for plugin versions has the additional benefit, that versions-maven-plugin is able to update plugins as well via versions:update-properties. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitb

[ANN] Apache Maven Changes Plugin 2.11 Released

2014-09-28 Thread Mirko Friedenhagen
The Maven team is pleased to announce the release of the Apache Maven Changes Plugin, version 2.11 Creates a release history for inclusion into the site and assists in generating an announcement mail. http://maven.apache.org/plugins/maven-changes-plugin/ You should specify the version in your pr

Re: Maven site:deploy hosting providers??

2014-09-28 Thread Mirko Friedenhagen
I havr used scm-publish together with gh-pages branch as well and as Karl-Heinz already stated, it works like a charm for me as well. Regards Mirko -- Sent from my mobile On Sep 27, 2014 8:05 PM, "Karl Heinz Marbaise" wrote: > Hi, > > > we have scm-publish plugin for that > >> http://maven.apac

Re: Why not a forum

2014-07-25 Thread Mirko Friedenhagen
+1 for mailing lists as well, there are a lot of archiving sites, which would offer profiles on users and getting emails from a forum which you would have to answer via a web page again is a pain. The only worthwhile alternative would be an now sadly underrated technique like news groups. Regards

Re: Maven plugin which displays the parents of a given project recursively

2014-06-20 Thread Mirko Friedenhagen
l and high level that can be > applied. > > Ron > > > > On 20/06/2014 11:55 AM, Mirko Friedenhagen wrote: >> >> Ron, >> >> * finding all POMs is not that simple in our case as we have at least >> 20 SVN repositories with multiple project

Re: Maven plugin which displays the parents of a given project recursively

2014-06-20 Thread Mirko Friedenhagen
n the same XPATH(s?) for the version and you know > which one is right. > > Is there some magic that Maven includes that is needed here? > > Ron > > > On 20/06/2014 8:09 AM, Mirko Friedenhagen wrote: >> >> Hello, >> >> does anybody know of a plugin which

Re: Maven plugin which displays the parents of a given project recursively

2014-06-20 Thread Mirko Friedenhagen
confident in this process, you can exploit > scm:checkin to automatically commit these dependency and parent > updates if the build is successful. It's pretty easy, actually. > > On Fri, Jun 20, 2014 at 8:09 AM, Mirko Friedenhagen > wrote: >> Hello, >> >> does an

Maven plugin which displays the parents of a given project recursively

2014-06-20 Thread Mirko Friedenhagen
Hello, does anybody know of a plugin which shows the GAV coordinates of the parents of a given project recursively? Or is there any feasible plugin where I could contribute with a goal? My team of 3 is consulting approx. 200 developers in regards of build engineering with ca. 1000 Jenkins jobs an

Re: Maven filter structure in pom.xml

2014-05-16 Thread Mirko Friedenhagen
Bernd, shouldn't this be ${project.developers[0].name}? You try splitting the assignment in two lines as well, one for developer and one for name. Am 16.05.2014 11:24 schrieb "Prager, Bernd" : > All, > > I am using Apache Maven 3.1.1 and I am trying to get the list of > developers stored in my p

Re: Is it possible to exclude .gitignore file from source package?

2014-05-05 Thread Mirko Friedenhagen
Imesh, I wonder why you need this, in my usecases the .git directory and .gitignore are at the same level as pom.xml, the source plugin will only pick up stuff from src/main/java (and maybe target/generated-sources/SOURCE_GENERATOR). Regards Mirko -- http://illegalstateexception.blogspot.com/ htt

Re: Strange maven central response - do you see the same thing??

2014-04-18 Thread Mirko Friedenhagen
; > It is a strange day! > > -D > > > On Fri, Apr 18, 2014 at 1:14 AM, Mirko Friedenhagen < > mfriedenha...@gmail.com > > wrote: > > > Same for me, repo.maven.apache.org redirects to central.maven.org with > the > > given URL. > > > > Regar

Re: Strange maven central response - do you see the same thing??

2014-04-18 Thread Mirko Friedenhagen
Same for me, repo.maven.apache.org redirects to central.maven.org with the given URL. Regards Mirko -- Sent from my mobile On Apr 18, 2014 10:09 AM, "Karl Heinz Marbaise" wrote: > Hi, > > if i try the given URL: > > http://repo.maven.apache.org/maven2/org/apache/maven/scm/ > maven-scm-provider-

Re: Strange maven central response - do you see the same thing??

2014-04-17 Thread Mirko Friedenhagen
Dan, I always use http://repo1.maven.org/maven2/.. e.g. http://repo1.maven.org/maven2/org/apache/maven/ Two possible explanations: Browsers by default follow http redirects, with curl you need -L as an Option. You have different proxy settings for the CLI and your browser :-) Regards Mirko --

Re: how to exclude log4j.properties when mvn assembly:single?

2014-04-04 Thread Mirko Friedenhagen
Hello Li Li, you might take a look at the maven-shade-plugin as well, which is easier to use IMO. Regards Mirko -- Sent from my mobile On Apr 4, 2014 3:20 AM, "Li Li" wrote: > I want to make it runnable simply by java -jar xxx.jar > build jars will copy all other dependencys > > On Thu, Apr 3,

Re: Overriding dependency scope

2014-03-28 Thread Mirko Friedenhagen
Alexander, AFAIK you may override the scope in the inheriting poms. If I remember correctly I did this with junit as I needed it for an selenium test project, where I had put base tests beneath src/main (to recite Brecht: oh, don't ask why). Regards Mirko -- Sent from my mobile On Mar 28, 2014 2

Re: how to push .zip from assembly to repo?

2014-03-27 Thread Mirko Friedenhagen
Jvsrvcs, how do you run assembly? As stated on plugin-info[0] you only should use goal single. The mojo documentation for single[1] states, that the assembly should be attached (and therefore deployed) as of version 2.2 of the plugin. [0] https://maven.apache.org/plugins/maven-assembly-plugin/plu

Re: [MNG-5551] Java 8 + Maven status

2014-03-27 Thread Mirko Friedenhagen
/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Thu, Mar 27, 2014 at 8:37 PM, Steven Schlansker wrote: > Here is a reproduction case: > > https://github.com/stevenschlansker/mdep-439-analyze-java8 > > On Mar 27, 2014, at 10:26 AM, Mirko Friedenhagen > wrote: > >> Steve

Re: [MNG-5551] Java 8 + Maven status

2014-03-27 Thread Mirko Friedenhagen
pgrade >> process is not terribly onerous, if only someone steps to do it. >> >> Matt >> On Mar 27, 2014 5:25 AM, "Mirko Friedenhagen" >> wrote: >> >>> Mark, >>> >>> the analyze goal depends on the >>> org.apache.maven.s

Re: [MNG-5551] Java 8 + Maven status

2014-03-27 Thread Mirko Friedenhagen
Mark, the analyze goal depends on the org.apache.maven.shared:maven-dependency-analyzer:1.4 which depends on asm 3.3.1. The trunk already moved to 4.2. I will see what happens when switching to asm 5 :-) Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Mirko Friedenhagen
e > > > > > > org.apache.maven.plugins > maven-failsafe-plugin > > > > integration-test > verify > > > > > >

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Mirko Friedenhagen
e > > > > > > org.apache.maven.plugins > maven-failsafe-plugin > > > > integration-test > verify > > > > > > > > > &g

Re: Forcing Integration Tests Before a Release

2014-03-25 Thread Mirko Friedenhagen
safe-plugin > > > > integration-test > verify > > > > > > > > > > On 3/21/2014 1:10 PM, E

Re: Forcing Integration Tests Before a Release

2014-03-20 Thread Mirko Friedenhagen
Eric, when you use the maven-release-plugin a property performRelease is set during release:perform. So define in the pluginManagement section a definition for the maven-failsafe-plugin in your build section: org.apache.maven.plugins

Re: Site Repository Property was: Open Source Best Practices with Maven - distributionManagement

2014-03-20 Thread Mirko Friedenhagen
e all three are in the Distribution Management directive, I was hoping I > could define this last one in the settings.xml also. > > Robert Kuropkat > > > On 03/19/2014 05:15 PM, Mirko Friedenhagen wrote: >> >> Hello Eric, >> >> as outlined in >> https://ma

Re: Open Source Best Practices with Maven - distributionManagement

2014-03-19 Thread Mirko Friedenhagen
Hello Eric, as outlined in https://maven.apache.org/plugins/maven-deploy-plugin/deploy-mojo.html in your settings.xml you might define properties altReleaseDeploymentRepository and altSnapshotDeploymentRepository in a profile internal-repository which is activated by default while you do not defi

Re: Need Help

2014-03-14 Thread Mirko Friedenhagen
Hello, I had the same questions :-). Vishai, you could invoke "mvn compile", switch to the target/classes directory and execute "time jar cvf ../foo.jar ." to see how long the original jar command takes and compare this to the time needed by the maven-jar-plugin. Regards Mirko -- http://illegals

Re: [Failsafe] How to properly conduct integration tests on executable jar files

2014-03-13 Thread Mirko Friedenhagen
Well with Netbeans you just add the following: org.apache.maven.plugins maven-surefire-plugin ${surefire.version} ${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar

Re: list all unique dependencies of multi-module project

2014-03-12 Thread Mirko Friedenhagen
Hello Max, what about switching this to a jar project without sources (maybe a readme txt as resource), which is not deployed or installed? Regards Mirko -- Sent from my mobile On Mar 13, 2014 12:24 AM, "Max Calderoni" wrote: > Hi Curtis, > thanks for answering. Yes, that was the first thing

Re: Fail assembly plugin if symbols are unknown

2014-03-08 Thread Mirko Friedenhagen
Bernd, what about using enforcer's requireProperty rule? Regards Mirko -- Sent from my mobile On Mar 7, 2014 10:20 PM, "Bernd Eckenfels" wrote: > Hello, > > we use in a lot of projects special assembly descriptors, which > typically use the following pattern: > > ... > distribution >

Re: JJTree with maven-compiler-plugin

2014-03-04 Thread Mirko Friedenhagen
Hello, there is a special plugin for this at codehaus, just Google javacc maven plugin and follow the *first* link. Regards Mirko -- Sent from my mobile On Mar 4, 2014 5:36 AM, "Umashanker, Srividhya" wrote: > I want to compile .jjt files into .java files using maven with > javacc/jjtree. > >

Re: Releasing clean "company" parent Poms

2014-03-01 Thread Mirko Friedenhagen
Sorry Bernd and everyone, I did not see that you just outlined the solution I proposed yourself. Regards Mirko -- Sent from my mobile On Mar 1, 2014 1:11 PM, "Mirko Friedenhagen" wrote: > Hello Bernd, > > you could think about having a multi-module pom project with a

Re: Releasing clean "company" parent Poms

2014-03-01 Thread Mirko Friedenhagen
Hello Bernd, you could think about having a multi-module pom project with an aggregation-pom, having life cycle/configuration jar module and your company pom. Testing would be defined in the aggregation pom. Only ugly thing that you have to duplicate some plugin versions in the aggregate and compa

Re: about https://jira.codehaus.org/browse/MNG-5576 (Allow continuous delivery friendly versions)

2014-02-25 Thread Mirko Friedenhagen
Hello Karl-Heinz, thanks for you suggestions, I replaced classifier tests with type test-jar. As you stated release:prepare does not work because I do not have a SNAPSHOT-version. My other concern is still true, running: env revision=NULL mvn321 clean install still has the non-resolved property ${

Re: about https://jira.codehaus.org/browse/MNG-5576 (Allow continuous delivery friendly versions)

2014-02-24 Thread Mirko Friedenhagen
/ On Mon, Feb 24, 2014 at 9:51 PM, Mirko Friedenhagen wrote: > Hello, > > I now tried running `env revision=123456 mvn321 release:prepare`, but > this does not work as release:prepare does not seem to use the > information from the environment, I get: > --- snip --- > There ar

Re: about https://jira.codehaus.org/browse/MNG-5576 (Allow continuous delivery friendly versions)

2014-02-24 Thread Mirko Friedenhagen
Hello, I now tried running `env revision=123456 mvn321 release:prepare`, but this does not work as release:prepare does not seem to use the information from the environment, I get: --- snip --- There are still some remaining snapshot dependencies. : Do you want to resolve them now? (yes/no) no: :

Re: about https://jira.codehaus.org/browse/MNG-5576 (Allow continuous delivery friendly versions)

2014-02-24 Thread Mirko Friedenhagen
Hello, I just tried this with a small multimodule pet project, see the mvn321 branch (https://github.com/1and1/testlink-junit/compare/master...mvn321). Now giving revision as a property (mvn321 -Drevision=NULL clean verify) does *not* work, enforcer complains about being not able to resolve the r

Re: Looking for org.apache.poi 3.10-FINAL

2014-02-16 Thread Mirko Friedenhagen
David, just guessing: - indexing takes it's time, there are only two hours difference between the commit (??l and end of indexing. - commit (tag creation), artifact creation (jar build), deployment (upload to staging), promotion (move of staged to released) and synchronization from oss.sonatype.o

Re: Why is dependency:analyze lying to me?

2014-02-14 Thread Mirko Friedenhagen
Hello, you see this a lot with runtime dependencies (which should probably be ignored during analyze anyway), so I mostly just ignore these in the output. It would be a cool thing, if you could suppress warnings for gavs directly in the analyze goal, so you see new stuff coming up more easily. Re

  1   2   3   >