Re: Code coverage with debug logs: 100% branch coverage not possible?...
Hello Benoit, Kevin is right, using slf4j[0] one would use sth. like: logger.debug(“blah {} in the loop that contains {}”, i, max); No need for iffing :-). [0] http://www.slf4j.org/manual.html Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Wed, Feb 12, 2014 at 10:10 PM, Kevin Krumwiede kjk...@gmail.com wrote: It does matter which implementation. The main reason it was recommended to check the logging level was because string concatenation can be expensive, and you want to avoid doing it for a message that won't be logged. But if you're using a logging API like slf4j that uses parameter replacement tokens in the message string, if the message isn't logged, the replacement won't be performed and the call will be cheap. On Feb 12, 2014 1:57 PM, Benoît Berthonneau ben...@berthonneau.com wrote: Hi Paul, Don't think that I could play with exclusions. Here is an example : *A Unit Test :* *The tested class with ALL traces activated:* *And the same tested class with INFO traces activated:* -Message d'origine- De : paulus.benedic...@gmail.com [mailto:paulus.benedic...@gmail.com] De la part de Paul Benedict Envoyé : mercredi 12 février 2014 21:36 À : Maven Users List Objet : Re: Code coverage with debug logs: 100% branch coverage not possible?... IIRC, there should be an option in Emma/Cobertura that allows you to exclude coverage on certain classes. So if you can exclude your log4j classes (you don't really want to test your logging, do you?), then you should be able to raise your percentage. On Wed, Feb 12, 2014 at 2:30 PM, Benoît Berthonneau ben...@berthonneau.comwrote: Hi all, I need your opinion/way to tackle the following problem: In many projects we use a Logger (doesn't matter which implementation). It is often recommend to test if the debug level is activated before logging a debug trace like the following: if (logger.isDebugEnabled()) { logger.debug(blah + i + in the loop that contains + max); } Now when you run unit tests on this kind of code you need to make a choice: run tests with INFO level or run tests with ALL traces activated. I choose the second option in order to: * Check that debug traces doesn't throw unwanted exception (like NPE) * Have a better code coverage in term of covered lines But in term of branches coverage we could never have a 100% :( To me the only way to cover this is to run the tests suite 2 times: one with INFO traces configured, and another one with ALL traces activated. Did you face this issue and how did you solve it ? Thanks, Benoît. -- Cheers, Paul - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven process stuck on MacOS with Java8
Hello, Maven in general works for me, only thing I remember are problems with javadoc being checked more strictly now. Regards Mirko -- Sent from my mobile On Jan 30, 2014 12:14 PM, Stephane Nicoll stephane.nic...@gmail.com wrote: Hi, Has anybody else noticed an issue with Java8 running Maven? I am using 1.8.0-ea-b124 and a maven command does not complete properly. It does not matter which plugin or phase is invoked, the process is stuck at the end and I have to ctrl-Z to go back to the shell. Switching back to Java 1.7 fixes the problem for me. Any idea? Thanks, S.
Re: Document project groupId, artifactId and version in javadocs?
Manos, you might override the doctitle or bottom property of the maven-javadoc-plugin . Regards Mirko -- Sent from my mobile On Jan 25, 2014 11:42 PM, Manos Batsis manos_li...@geekologue.com wrote: Hey, long time. Is there some decently easy way of doing just that? Bonus points for magically applying to every maven build in the universe, now and for ever! Cheers, Manos - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Excluding a submodule from package/install phases.
Just for documentation purposes: - Netbeans sets an environment variable called NB_EXEC_MAVEN_PROCESS_UUID (AFAIK should be propertynameenv.NB_EXEC_MAVEN_PROCESS_UUID/name/property in the profile). - I use this in $HOME/.mavenrc to extend MAVEN_OPTS with -Dorg.slf4j.simpleLogger.showDateTime=true when the variable is not set. - So when invoking Maven from the CLI I get relative timestamps which would make Netbeans Maven Console parser choke :-) Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Wed, Jan 22, 2014 at 5:49 PM, Todd Chapman t...@chaka.net wrote: Thank you Curtis. That was very helpful. On Tue, Jan 21, 2014 at 12:02 PM, Curtis Rueden ctrue...@wisc.edu wrote: Hi Todd, In our multi-module project we have one module that is only used for development in our IDE. Is there a way to configure this project so that it is always excluded from package phase? With Eclipse, you can do something similar using profiles: profiles profile ideclipse/id activation property namem2e.version/name /property /activation modules modulemy-eclipse-specific-module/module /modules /profile /profiles This excludes the my-eclipse-specific-module module completely from the command-line build. If you aren't using Eclipse, perhaps your IDE sets a similar property. Regards, Curtis On Tue, Jan 21, 2014 at 10:52 AM, Todd Chapman t...@chaka.net wrote: Hello, In our multi-module project we have one module that is only used for development in our IDE. Is there a way to configure this project so that it is always excluded from package phase? Thanks, -Todd - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
javap Maven plugin?
Hello, for analysis of bytecode produced by different java compilers I need to decompile class files. I may resort to antrun and write some groovy script which invokes the javap CLI. However I'd like some input whether anyone knows a Maven plugin which already produces such output or whether a new plugin might find some interest. Programmatic solutions I found depend on tools.jar and com.sun classes which looks a little dirty to me. Regards Mirko -- Sent from my mobile
Options for producing class files with different compilers via Maven
Hello, in the JaCoCo project (a Java code coverage library which uses a Java agent approach during runtime) we produce some false positives of uncovered code because of unreachable (e.g. private constructor of a util class) or synthetic java code (e.g. enum values()). As we inspect the class files only, we may not (or better do not want to) rely on parsing the source code for discovering such conditions. During some experiments we detected that different compilers (javac vs eclipse ecj) produce very different byte code in classes for the above. This might be the case for different versions of Sun/Oracle JDK or JDKs of other vendors as well. I already took a look at Using Non-Javac Compilers of the maven-compiler-plugin[1] Now my question: - What would be the best approach to produce JARs which contain class files of above mentioned false positives produced by the different compilers? - My first idea was to define a define a multi module project with a JAR module which will only produce a source jar, which will be unpacked as generated-sources in sibling modules which are then compiled by the different compilers. For additional ideas or caveats I would be grateful. Regards Mirko [0] https://github.com/jacoco/jacoco/wiki/FilteringOptions [1] http://maven.apache.org/plugins/maven-compiler-plugin/non-javac-compilers.html -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New site content
Hello there, I recently wrote in an internal blog article about failsafe vs. surefire: Maven defines lifecycles, each lifecycle is a sequence of well defined phases[0]. Each phase executes bound goals, which are defined as so called Mojo classes in Maven plugins. Lifecycles typically produce output: * phase clean of lifecycle clean cleans your workspace of built artifacts. Just call mvn clean. * phase test of lifecycle default compiles your sources and test sources and runs your unit tests. Just call mvn test. * phase deploy of lifecycle default includes the phase test and uploads your packaged artifacts to a binary repository. Just call mvn deploy. * phase site of lifecycle site produces a standard documentation site from your sources). Just call mvn site. The bound standard goals[1] of the the default lifecycle depend on the type of your project. You may bind additional goals to each phase. Probably this would mean a 120 seconds introduction :-). [0] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html#Lifecycle_Reference [1] http://maven.apache.org/ref/3.1.1/maven-core/default-bindings.html Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Fri, Jan 3, 2014 at 6:19 PM, Ron Wheeler rwhee...@artifact-software.com wrote: https://cwiki.apache.org/confluence/display/MAVEN/Tutorial%3A+Maven+in+60+seconds Still think that it is overly vague. It would be easier to understand if the passive voice was eliminated. Makes it clearer to understand what the developer has to do and what maven is going to do while processing the POM. The page should start with a statement saying that Maven builds artifacts based on information provided by the developer. You might want to talk about convention over configuration and how this compares to Make or Ant. It all starts with a *project model* -It all starts with a *project model* that you create to tell Maven how you want your project (artifact?). /Note: reactor is just the name that Maven has given to the list of modules that are being built /Is module different than artifact? Are modules input or output? See below for confusion about whether a reactor is a list or a thing that does stuff./ / The *packaging* of each module (artifact?) implies that modules are output - should provide example such as jar, war, tar or zip (90 percent of cases?) The *dependencies* of each module = The dependencies that are required to build, test and run the resulting project/module/artifact. Any additional *plugins* that are needed to build each module = Any *plugins* that are needed to build each module. What does additional mean to the new user? Perhaps a sentence about default plug-ins that Maven includes automatically might be useful but conceptually I don't think that the distinction is useful at this point The lifecycle defines the default plugins that are used to build a specific packaging. This is a bit startling to a new user even if it is correct. It might be better to describe the lifecycle in terms of steps rather than plug-ins. It might also be worth being explicit that lifecycles are defined in Maven not in the model. These next 2 sentences need to be rewritten in the active case saying that Maven does these things. The list of modules in the reactor is sorted in order to ensure that any dependencies that will be created by the reactor will be built before they are needed by other modules in the reactor The *build plan* is then populated for each module using the lifecycle and the plugin information from the model Build plan is not defined. Who creates it? What does it have in it before it is populated? How many build plan are there - one for each module?/ one for all?. Should say that a single build plan is created that builds the (components - no definition in the diagram of what the programmer has programmed) in the correct sequence. Maven then starts executing the build plan and building your project, downloading dependencies that are not produced by the reactor. A reactor was defined as a list of modules, now it is a thing that does produced dependencies. Final diagram is missing the output from the process. It seems to say that Maven builds Build Plans(square box). The developer wants an artifact out of this. I hope that this helps. Ron On 03/01/2014 11:33 AM, Stephen Connolly wrote: FYI here is my current plan for content: https://cwiki.apache.org/confluence/display/MAVEN/New+Main+Site On 3 January 2014 16:27, Ron Wheeler rwhee...@artifact-software.com mailto:rwhee...@artifact-software.com wrote: I agree with Robert's comment. There is a danger that the page will become architecturally elegant and will correctly describe all of the possible uses of Maven but will be too obscure to be useful as a starting point for
Re: Release plugin 2.4.2 ignores pushChanges=false
Martijn, just a guess: - there is a setting in release:prepare for remote tagging which must be false as well if I remember correctly. Regards Mirko -- Sent from my mobile On Dec 26, 2013 4:49 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Is it me or does the maven-release-plugin ignore the pushChanges setting? Running the release process actually pushes the changes to the git repo. And I *really* don't want that to happen. Relevant configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-release-plugin/artifactId version2.4.2/version inheritedtrue/inherited configuration pushChangesfalse/pushChanges tagNameFormatwicket-@{project.version}/tagNameFormat updateWorkingCopyVersionsfalse/updateWorkingCopyVersions /configuration /plugin $ git --version git version 1.8.5.2 $ mvn --version Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200) Maven home: /usr/local/Cellar/maven/3.1.1/libexec Java version: 1.7.0_45, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre Default locale: en_US, platform encoding: UTF-8 OS name: mac os x, version: 10.9.1, arch: x86_64, family: mac - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: javadoc errors
Hello Richard, a wild guess: you have the same packages included by different dependencies (guava was once called Google collections, some jakarta-commons components were available via multiple groupId/artifactId combinations). Regards Mirko -- Sent from my mobile On Dec 21, 2013 12:53 AM, Richard Rodseth rrods...@gmail.com wrote: We are having the following problem generating javadocs using mvn javadoc:aggregate -DskipTest=true -P site,\!build-ui [ERROR] Exit code: 1 - javadoc: warning - Multiple sources of package comments found for package org.osgi.framework [ERROR] javadoc: warning - Multiple sources of package comments found for package org.apache.commons.collections [ERROR] javadoc: warning - Multiple sources of package comments found for package org.acplt.oncrpc [ERROR] javadoc: warning - Multiple sources of package comments found for package org.apache.commons.beanutils [ERROR] com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class): warning: Cannot find annotation method 'value()' in type 'javax.annotation.concurrent.GuardedBy': class file for javax.annotation.concurrent.GuardedBy not found [ERROR] com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.class(com/googlecode/concurrentlinkedhashmap:ConcurrentLinkedHashMap.class): warning: Cannot find annotation method 'value()' in type 'javax.annotation.concurrent.GuardedBy' But I've had no luck at all adding excludePackageNames to our top-level pom.xml, e.g.. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId version${maven-javadoc-plugin.version}/version configuration excludePackageNamesorg.osgi.framework.*,com.googlecode.*/excludePackageNames /configuration reportSets reportSet idhtml/id reports reportjavadoc/report /reports /reportSet /reportSets /plugin Any troubleshooting tips would be appreciated. Thanks.
Re: Painless way to update a frameworks group id?
Just a guess: * Deploy a new relocation pom at the old coordinates with a bigger version. * Include this new relocation version. Regards Mirko -- Sent from my mobile On Dec 12, 2013 1:26 PM, Anders Hammar and...@hammar.net wrote: Think some sort of artifact-transformer mechanism in Maven would be really cool (Map the following groupId to otherGroupId). There is some discussion around this feature for a future POM model. Any year now. :-) Oh, I should prabably stress that this discussion is no promise for this feature. It might require a change to the Maven repository structure. /Anders /Anders But I guess something like that would fit into the same drawer as the which to hace a configuration-check mechanism that allows a plugin to validate the configuration used (Would really like to implement some validator and best-practice validator component guiding users on how to use the plugin) Chris Von: anders.g.ham...@gmail.com anders.g.ham...@gmail.com im Auftrag von Anders Hammar and...@hammar.net Gesendet: Donnerstag, 12. Dezember 2013 11:37 An: Maven Users List Betreff: Re: Painless way to update a frameworks group id? I don't think that will work. The bad deps are still used in compile time and only not used in runtime. The correct solution (until there are new releases that don't pull in the bad transitive deps) is to excluded them. And that probably can't be automated in any other way than providing means to detect them (the enforcer rule). What you could do is try this and release a beta or something and see what sort of problems people run into. Changing coordinates is always a problem. My two cents, /Anders On Thu, Dec 12, 2013 at 11:24 AM, Christofer Dutz christofer.d...@c-ware.de wrote: What do you think about this Option? I created a tool that mavenizes a non-maven Flex SDK and genereates all sorts of maven artifacts ... one artifact that is generated is a Special pom that contains only a dependency Management section that can be used to automatically configure the Versions of dependencies in the Flex SDK ... I could automatically generate dependency manangement entries for the old Group id that set the dependencies to provided. So as soon as someone imports that pom containing the dependencyManagement entries for the good artifacts, the exclude entries are automatically in place. Chris Von: anders.g.ham...@gmail.com anders.g.ham...@gmail.com im Auftrag von Anders Hammar and...@hammar.net Gesendet: Donnerstag, 12. Dezember 2013 11:07 An: Maven Users List Betreff: Re: Painless way to update a frameworks group id? AFAIK there is not painless way to solve this. What you could add to the docs is instructions on how to use an enforcer rule to ensure that no bad libs are pulled in by accident (if the miss some exclusion). Use the banned deps [1] rule. /Anders [1] http://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.html On Wed, Dec 11, 2013 at 9:01 AM, Christofer Dutz christofer.d...@c-ware.dewrote: Hi, I am the current maintainer of the Flexmojos Maven Plugin and contributor to the Apache Flex Project. Currently I am working on a new Version of Flexmojos which is able to work with Flex SDKs that have a groupId of org.apache.flex instead of the old com.adobe.flex. While building applications with the new groupId was no big Problem, we are now facing a Problem, that I don't quite know how to elegantly solve it. Assuming I am building a Project and I switched the groupId of the Flex Framework to org.apache.flex. As Long as I am building all artifacts in the Project this is fine. But as soon as I am using a Flex library that was built for com.apache.flex Maven correctly adds that artifacts dependencies to the build. Unfortunately this way I have several artifacts in my build twice ... once with com.adobe.flex and once with org.apache.flex groupId. Now I was suggesting to manually exclude Framework artifacts when using an external lib, but I would like to automate this. Therefore I suggested to add all the org.apache.flex artifacts as com.adobe.flex artifacts, but to set the scope on These to provided. But it still sort of doesn't feel right. Any suggestions? Would be really happy to sort this out and make it less painfull for my users. Chris - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: AW: Painless way to update a frameworks group id?
Christofer, this depends on your definition of we :-). In a company context with an internal repository manager you might deploy a vendor release into your patched thirdparty repository. Or tell your users to manually install the patched version. I did similar stuff for this strange m2e-maven-plugin-configuration-holder ( http://stackoverflow.com/questions/7905501/get-rid-of-pom-not-found-warning-for-org-eclipse-m2elifecycle-mapping ) Regards Mirko -- Sent from my mobile On Dec 13, 2013 10:13 PM, Christofer Dutz christofer.d...@c-ware.de wrote: Good Idea ... Unfortunately as we are not allowed to publish the Adobe artifacts (Flash Player / Air libs) we decided not to publish the Flex artifacts at all. Then a redirect seems rather problematic. Currently each user has to locally deploy the Flex SDK using a special tool in order to be on the safe side :-( Chris -Ursprüngliche Nachricht- Von: Mirko Friedenhagen [mailto:mfriedenha...@gmail.com] Gesendet: Freitag, 13. Dezember 2013 21:26 An: Maven Users List Betreff: Re: Painless way to update a frameworks group id? Just a guess: * Deploy a new relocation pom at the old coordinates with a bigger version. * Include this new relocation version. Regards Mirko -- Sent from my mobile On Dec 12, 2013 1:26 PM, Anders Hammar and...@hammar.net wrote: Think some sort of artifact-transformer mechanism in Maven would be really cool (Map the following groupId to otherGroupId). There is some discussion around this feature for a future POM model. Any year now. :-) Oh, I should prabably stress that this discussion is no promise for this feature. It might require a change to the Maven repository structure. /Anders /Anders But I guess something like that would fit into the same drawer as the which to hace a configuration-check mechanism that allows a plugin to validate the configuration used (Would really like to implement some validator and best-practice validator component guiding users on how to use the plugin) Chris Von: anders.g.ham...@gmail.com anders.g.ham...@gmail.com im Auftrag von Anders Hammar and...@hammar.net Gesendet: Donnerstag, 12. Dezember 2013 11:37 An: Maven Users List Betreff: Re: Painless way to update a frameworks group id? I don't think that will work. The bad deps are still used in compile time and only not used in runtime. The correct solution (until there are new releases that don't pull in the bad transitive deps) is to excluded them. And that probably can't be automated in any other way than providing means to detect them (the enforcer rule). What you could do is try this and release a beta or something and see what sort of problems people run into. Changing coordinates is always a problem. My two cents, /Anders On Thu, Dec 12, 2013 at 11:24 AM, Christofer Dutz christofer.d...@c-ware.de wrote: What do you think about this Option? I created a tool that mavenizes a non-maven Flex SDK and genereates all sorts of maven artifacts ... one artifact that is generated is a Special pom that contains only a dependency Management section that can be used to automatically configure the Versions of dependencies in the Flex SDK ... I could automatically generate dependency manangement entries for the old Group id that set the dependencies to provided. So as soon as someone imports that pom containing the dependencyManagement entries for the good artifacts, the exclude entries are automatically in place. Chris Von: anders.g.ham...@gmail.com anders.g.ham...@gmail.com im Auftrag von Anders Hammar and...@hammar.net Gesendet: Donnerstag, 12. Dezember 2013 11:07 An: Maven Users List Betreff: Re: Painless way to update a frameworks group id? AFAIK there is not painless way to solve this. What you could add to the docs is instructions on how to use an enforcer rule to ensure that no bad libs are pulled in by accident (if the miss some exclusion). Use the banned deps [1] rule. /Anders [1] http://maven.apache.org/enforcer/enforcer-rules/bannedDependencies.htm l On Wed, Dec 11, 2013 at 9:01 AM, Christofer Dutz christofer.d...@c-ware.dewrote: Hi, I am the current maintainer of the Flexmojos Maven Plugin and contributor to the Apache Flex Project. Currently I am working on a new Version of Flexmojos which is able to work with Flex SDKs that have a groupId of org.apache.flex instead of the old com.adobe.flex. While building applications with the new groupId was no big Problem, we are now facing
Re: Changing JDK version without specifying maven-compiler-plugin version
Hello, I thought the version is defined in https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=maven-core/src/main/resources/META-INF/plexus/default-bindings.xml;h=09ecba441e61d4a997b01af0171815c558548537;hb=maven-3.0.4 (replace hb with the version of your choice :-)). Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Wed, Nov 27, 2013 at 11:32 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On 27 November 2013 10:18, Malte Skoruppa skoru...@cs.uni-saarland.dewrote: Hi all, thank you for your helpful answers. I grasped a lot about how Maven internally works and learned some tricks (e.g., dependency:analyze). This is a great mailing list indeed. @Laird: that is quite interesting. From all the other posts I really gained the impression that my original question was actually unsolvable (e.g., Stephen explicitly stated the goals are incompatible). But this also led me to a new question. Always eager to learn, I tried - just to see what would happen - specifying in my POM at the same time maven.compiler.{source,target} in the properties section, *as well as* specifying {source,target} in the configuration section of the maven-compiler-plugin. It turns out that the latter takes precedence over the former (i.e., when different Java versions are specified in these two places, the configuration of the maven-compiler-plugin is used). Therefore, from my understanding up to this point, I suspected that there must be something in the uber-pom akin to this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId versionSOME_DEFAULT_VERSION/version configuration source${maven.compiler.source}/source target${maven.compiler.target}/target /configuration /plugin actually what is the case is that these parameters have an annotation like @Parameter(property=maven.compiler.source,defaultValue=1.5) private String source; So what happens is that if you don't specify a value in the configuration section then Maven checks to see if the property is defined, if not then it uses the default value Once you specify a value in the configuration section that is taken as gold. Hence why I said it was incompatible, as the property trick is just that, a trick, and it will fall over under stress... none the less it is a handy trick to have... as long as you are aware that it is a trick. where the maven.compiler.{source,target} would be specified in the properties section of the uber-pom. That would have explained both why Maven complains when I reconfigure the maven-compiler-plugin without specifying the plugin version, as well as why redefining maven.compiler.{source,target} in the properties section of my own pom is a working solution for my original question. So I finally decided to take a look at this uber-pom :) I was suprised to find there is *no mention* of the maven-compiler-plugin *at all* in this super-pom, that is, $ export M2_HOME=/usr/share/maven $ unzip -p $M2_HOME/lib/maven-model-builder-3.0.4.jar org/apache/maven/model/pom-4.0.0.xml | grep compiler $ ...the latter command produces no output (I'm using Maven 3.0.4, as can be seen from the path). (Alternatively, one might search for compiler at http://maven.apache.org/ref/3.0.4/maven-model-builder/super-pom.html, but I wanted to make sure that indeed the same uber-pom is used on my machine). This is quite confusing. I firmly expected to see some kind of configuration of the maven-compiler-plugin in the uber-pom. That is what many of you led me to believe: Stephen: the core plugins all have a version specified in the über-pom that is embedded within Maven. Hmmm.. it seems I missed http://jira.codehaus.org/browse/MNG-4453 with the transition to Maven 3.x... and as I lock plugin versions down anyways... Randal: As was pointed out, core components such as the compiler plugin have a stable default version via the 'uber-pom' as of a particular version of Maven Mark: generated POMs *do* specify the version of m-compiler-p, by *not* specifying it. There's a built-in set of defaults(1) buried inside Maven, which specify much of the not-otherwise-specified. So... where is this stable maven-compiler-plugin version specified, precisely? I did find some mentions of a stable maven-compiler-plugin version in $M2_HOME/lib/maven-core-3.0.4.jar:META-INF/plexus/components.xml as well as $M2_HOME/lib/maven-core-3.0.4.jar:META-INF/plexus/artifact-handlers.xml, but I'm not sure whether that's the actual place where the default version of the maven-compiler-plugin is configured, and certainly none of them is the uber-pom. I'd just like to see it; I like to understand how stuff works ;-) Thanks, Malte On 11/26/2013 04:26 PM, Stephen Connolly wrote: On 26 November
Property namespaces Was: Changing JDK version without specifying maven-compiler-plugin version
Hello Laird, the only pity with using properties is that they are not namespaced most of the time (the maven.compiler.* ones being an exception here), output is claimed at least by three mojos IIRC. And skipTests is almost a general one but you may not easily specify that you do not want to run surefire but e.g. invoker tests nonetheless :-) I would have liked conventions like always prefix with plugin name. Regards Mirko -- Sent from my mobile On Nov 27, 2013 1:48 AM, Laird Nelson ljnel...@gmail.com wrote: On Tuesday, November 26, 2013, Malte Skoruppa wrote: is there some way for me to achieve the following three things at the same time: (1) have Maven compile my source files with -source 1.4 (or anything higher than 1.3) (2) *not* specify the maven-compiler-plugin version to use; instead, have Maven dynamically use the latest one available; (3) *not* have Maven bitch about my project being malformed ;-) Yes. In your pom.xml's properties section add this: maven.compiler.source1.6/maven.compiler.source maven.compiler.target1.6/maven.compiler.target No other configuration or verbiage needed. All of the other posters' words are good. But no one answered your question. Best, Laird -- http://about.me/lairdnelson
Re: maven-failsafe-plugin: what is it actually intended for?
Almost same here, Russel. I always execute `mvn test` on my workstation, where these should be executed in less than a minute and let failsafe via `mvn deploy` (which comes after `verify`) in our CI system (for the Jenkins jobConfigHistory-plugin this takes about 10 minutes). I do not use failsafe:verify because Jenkins is able to set the build to unstable when integration tests fail. So a breaking unit test fails the build (Red in Jenkins) and a breaking integration test sets the build to unstable. I even would defer tests involving spring to the integration test phase, as spring will delay results as well :-). I prefer tests which create and start a container (e.g. Tomcat) as well as integration tests. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ (http://osrc.dfm.io/mfriedenhagen) https://bitbucket.org/mfriedenhagen/ On Fri, Nov 15, 2013 at 2:31 PM, Russell Gold r...@gold-family.us wrote: It appears that there are multiple use cases for failsafe. I tend to use it for slow tests that don’t necessarily need to pass at the moment, but for which I want to know the percentage passing. Accordingly, I bind the integration-test goal but NOT the verify goal. On Nov 15, 2013, at 1:57 AM, Vincent Latombe vincent.lato...@gmail.com wrote: maven-failsafe-plugin implies some specific steps are required *before* (pre-integration-test) and *after* (post-integration-test) the test execution, which allows to do fire up a container then turn it off after the tests (for example). Then, only after these, the test results are evaluated during 'verify' phase and will fail the build if needed. This is unlike maven-surefire-plugin, that performs both the tests execution and verification in the same step, which prevents you from doing any kind of cleanup outside of test execution. So, using failsafe or surefire boils down to a single question : do you need to perform any set up/teardown outside of the test execution framework? If yes, use failsafe, if no, use surefire Cheers, Vincent Vincent 2013/11/15 Vincent Latombe vincent.lato...@gmail.com you mean 'verify', not 'validate' Vincent 2013/11/14 Matthew Adams matt...@matthewadams.me Here's a bit less philosophical, more practical description of Surefire v. Failsafe. Remember that if you use the maven-surefire-plugin, it's going to execute during the Maven test phase by default, and fail the build on errors _during that phase_ if any tests fail. The maven-failsafe-plugin executes during Maven's integration-test and validate phases. *Remember to specify both goals!* See http://maven.apache.org/surefire/maven-failsafe-plugin/usage.html and notice that _both_ goals, integration-test validate, need to be specified. This allows the integration tests to execute possibly fail without _immediately_ failing the build. The failing of the build happens via maven-failsafe-plugin during the validate phase, so that other plugins can clean things up during Maven's post-integration-test phase, which precedes validate. HTH, Matthew On Thu, Nov 14, 2013 at 4:30 PM, Matthew Adams matt...@matthewadams.me wrote: On Wed, Nov 13, 2013 at 10:39 AM, Ron Wheeler rwhee...@artifact-software.com wrote: On 13/11/2013 11:16 AM, Matthew Adams wrote: I don't think timing should be the heuristic here. The fact that unit tests take less is a result of the fact that what you're testing, aka the unit, tends to be small. After all, a unit test should test a unit. So what is your definition? A unit test is test code that tests a unit in isolation. It's intentionally ambiguous, because a unit is relative and may differ. An integration test, then, if I were defining it strictly, would be anything that's not a unit test. In practice, this usually means replacing any mocks and/or stubs in your unit tests with the real implementations, plus using any other supporting infrastructure, like databases, dependency injection contexts, etc. Not sure that this is true for all integration tests. You may be able to test the integration of two projects (a web service and a database access layer) while still using mocks and stubs (mock of a database persistence layer). People frequently test with Jetty when the final project will run on Tomcat. It all depends on what part of the system integration is being tested. I didn't say it had to be what's used in production. The key difference is that you're using _something_, in addition to the unit. -matthew -- mailto:matt...@matthewadams.me matt...@matthewadams.me skype:matthewadams12 googletalk:matt...@matthewadams.me http://matthewadams.me http://www.linkedin.com/in/matthewadams - Author, Getting Started with Apache Maven http://www.packtpub.com/getting-started-with-apache-maven/video Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio
Override reportSets via combine.self=override?
Hello, say I have a parent pom, which defines: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId version2.16/version reportSets reportSet reports reportreport/report /reports /reportSet /reportSets /plugin I now do not want to override these with: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-report-plugin/artifactId version2.16/version reportSets reportSet reports combine.self=override reportreport-only/report reportfailsafe-report-only/report /reports /reportSet /reportSets /plugin so tests are not executed again during site generation. This does not work, the effective pom still shows: plugin artifactIdmaven-surefire-report-plugin/artifactId version2.16/version reportSets reportSet reports reportreport-only/report reportfailsafe-report-only/report reportreport/report /reports /reportSet /reportSets /plugin So combine.self=override seems not to work here. Is this intended? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: How to deal with checksum errors on public artifacts?
David, you should open a bug for this on issues.sonatype.org. They will fix the checksums. Regards Mirko -- Sent from my mobile On Oct 31, 2013 5:34 PM, KARR, DAVID dk0...@att.com wrote: -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Thursday, October 31, 2013 9:04 AM To: Maven Users List Subject: Re: How to deal with checksum errors on public artifacts? It's the sha1 checksum. The file pax-runner-no-jcl-1.4.0.pom.sha1 says the checksum is e52cedb3dba50c26877a6b3d88a08f98703d82a4. This could be wrong. There are several newer versions, try one of them and see if they have correct metadata. Ah, the pom. I was checking the jar. How do I tell what checksum is expected? Can I see that on MavenCentral ( http://search.maven.org)? You could also configure Maven to ignore checksum errors. That is the default, so I assume you have reconfigured that? You're suggesting I turn off checksum validation for artifacts downloaded from the public internet? :) Yes, we have checksum validation on. On Thu, Oct 31, 2013 at 4:44 PM, KARR, DAVID dk0...@att.com wrote: I was building a toy application that we're using to start work on a prototype for something, and a build failed with an error like the following: Could not transfer artifact org.ops4j.pax.runner:pax-runner-no-jcl:pom:1.4.0 from/to central ( http://repo1.maven.org/maven2/): Checksum validation failed, expected e52cedb3dba50c26877a6b3d88a08f98703d82a4 but is 2406c868ae24a7f15c78aa362346afd6ba44ec22 - [Help 1] This seems like it's saying that the artifact on Maven Central is corrupted. I tried manually downloading this artifact from Maven Central, but the md5 sum (I don't know if the algorithm used above is md5 or something else) comes out to neither of those values. I could use some more background on this, including what I should do to fix this (if I can do anything). - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven bootstrap/surefire:test performance
Mark, I like the decision to use Maven whenever possible as well, nonetheless I could imagine being even more happy should the execution times decrease. I use a very small maven projects for tests[0] with Maven 3.1.1, turned on timestamps and it takes Maven about 2 seconds when running mvn -o surefire:test. Even with option -X I do not see what is happening in the first 1300ms, the first output line 1775 [INFO] Scanning for projects... starts after 1800ms. Regards Mirko [0] https://github.com/mfriedenhagen/pastebin/tree/surefire-speed-test -- Sent from my mobile On Sep 13, 2013 9:49 PM, Mark Eggers its_toas...@yahoo.com wrote: On 9/13/2013 12:38 PM, Milos Kleint wrote: with Compile on Save enabled, the test-compile phase should be skipped and only surefire:test should be executed. However even with that, there's overhead of jvm startup + maven startup before the mojo gets executed. Obviously the overhead is biggest when you run just a single test. Unfortunately not much that can be done here. We've used to execute Compile on Save stuff with internal nb execution (via ant in IDE-jvm) but the devil is in the detail there, it's not 100% exactly the same execution as surefire. The current design decision is to be 100% equal to what cmd line executes. The downside is speed. Milos On Fri, Sep 13, 2013 at 9:25 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get stuff done. While it is nice that I do not encounter problems as I did with Eclipse when dealing with dependency scoping I am slowed down when running single test files or methods. Netbeans invokes test-compile surefire:test -Dtest= Now even from the CLI it takes Maven some time to reach surefire:test. Even when I do not invoke test-compile 3 seconds are spent before surefire:test starts it's work and another 3 seconds afterwards. The tests of a single testcase themselves only take 0.3 seconds. With Eclipse or Intellij the execution happens in less than 1 second while with Maven or Netbeans this will take up to 10 seconds even in offline mode. Any hints for speeding up things would be appreciated (except of changing the IDE ;-)). Regards Mirko -- Sent from my mobile Yep, with Compile on Save and an external Maven (using 3.1) and a reasonably recent NetBeans 7.4 build I get about 3 seconds for executing a focused test method. In short, it's not the 10 seconds you're seeing, but it's not the 0.3 seconds you're expecting. I can certainly live with (and in fact applaud) the design decision to be 100% equal to what the command line executes. . . . . just my two cents /mde/ --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven bootstrap/surefire:test performance
Hello everybody, I use Netbeans 7.4 as IDE and mostly like how it uses Maven to get stuff done. While it is nice that I do not encounter problems as I did with Eclipse when dealing with dependency scoping I am slowed down when running single test files or methods. Netbeans invokes test-compile surefire:test -Dtest= Now even from the CLI it takes Maven some time to reach surefire:test. Even when I do not invoke test-compile 3 seconds are spent before surefire:test starts it's work and another 3 seconds afterwards. The tests of a single testcase themselves only take 0.3 seconds. With Eclipse or Intellij the execution happens in less than 1 second while with Maven or Netbeans this will take up to 10 seconds even in offline mode. Any hints for speeding up things would be appreciated (except of changing the IDE ;-)). Regards Mirko -- Sent from my mobile
RE: artifact attached by plugin not appearing in subsequent plugins
Richard, AFAIK attachArtifact just tells Maven to install an additional binary to it's local cache resp. to deploy it to the distribution repository. What you want, as far as I understand, is to create an artifact which will be picked up later on and included in a war? You should probably create a separate module project, which creates the jar and just include this jar as runtime dependency in your war project. Regards Mirko -- Sent from my mobile On Aug 20, 2013 7:42 AM, Richard Sand rs...@idfconnect.com wrote: I concluded that this was a missing feature of maven-war-plugin, where it simply wasn't looking to see if there were attached resources. I supplied a simple patch to the handleArtifacts() method to have that method also handle attached artifacts, You can see the report here. https://jira.codehaus.org/browse/MWAR-304 -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Monday, August 19, 2013 6:19 PM To: 'Maven Users List' Subject: artifact attached by plugin not appearing in subsequent plugins Hi all - I've been stuck for a while trying to get an artifact injected by a plugin to apply to subsequent plugins/goals in a project. I have a project which generates a web application. My use case here is the obfuscator plugin which I wrote, which creates a jar file called projectname-small.jar. The plugin creates jar file using MavenProjectHelper.attachArtifact(). The plugin executes during the packaging phase, before the maven-war-plugin. The jar file is created successfully, and the call to attachArtifact() returns with no errors, but the maven-war-plugin does not see the jar file and therefore doesn't include it in the results. When I turn on debugging I can see maven-war-plugin copying the other project artifacts into target/projectname/WEB-INF/lib. Have I missed a step? I know I can explicitly configure maven-war-plugin to grab the new artifact, but I thought the point of attachArtifact was to inject the new artifact into the flow. Appreciate any insight into what I'm doing wrong... Thanks! -Richard - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: artifact attached by plugin not appearing in subsequent plugins
Hello Richard, x-posted to dev, as the war-plugin is a core-plugin: - IMO attaching would be the wrong term as it has another meaning. - This is more of a generated jar (as generated sources, classes etc.) - IMO packages should go in Maven modules of their own. Regards Mirko -- Sent from my mobile On Aug 20, 2013 5:13 PM, Richard Sand rs...@idfconnect.com wrote: Is there any merit to the idea of having a configuration option in maven-war-plugin to include attached artifacts in the webapp in the same way it includes dependent artifacts? -Richard -Original Message- From: Mirko Friedenhagen [mailto:mfriedenha...@gmail.com] Sent: Tuesday, August 20, 2013 6:20 AM To: Maven Users List Subject: RE: artifact attached by plugin not appearing in subsequent plugins Richard, AFAIK attachArtifact just tells Maven to install an additional binary to it's local cache resp. to deploy it to the distribution repository. What you want, as far as I understand, is to create an artifact which will be picked up later on and included in a war? You should probably create a separate module project, which creates the jar and just include this jar as runtime dependency in your war project. Regards Mirko -- Sent from my mobile On Aug 20, 2013 7:42 AM, Richard Sand rs...@idfconnect.com wrote: I concluded that this was a missing feature of maven-war-plugin, where it simply wasn't looking to see if there were attached resources. I supplied a simple patch to the handleArtifacts() method to have that method also handle attached artifacts, You can see the report here. https://jira.codehaus.org/browse/MWAR-304 -Richard -Original Message- From: Richard Sand [mailto:rs...@idfconnect.com] Sent: Monday, August 19, 2013 6:19 PM To: 'Maven Users List' Subject: artifact attached by plugin not appearing in subsequent plugins Hi all - I've been stuck for a while trying to get an artifact injected by a plugin to apply to subsequent plugins/goals in a project. I have a project which generates a web application. My use case here is the obfuscator plugin which I wrote, which creates a jar file called projectname-small.jar. The plugin creates jar file using MavenProjectHelper.attachArtifact(). The plugin executes during the packaging phase, before the maven-war-plugin. The jar file is created successfully, and the call to attachArtifact() returns with no errors, but the maven-war-plugin does not see the jar file and therefore doesn't include it in the results. When I turn on debugging I can see maven-war-plugin copying the other project artifacts into target/projectname/WEB-INF/lib. Have I missed a step? I know I can explicitly configure maven-war-plugin to grab the new artifact, but I thought the point of attachArtifact was to inject the new artifact into the flow. Appreciate any insight into what I'm doing wrong... Thanks! -Richard - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: release prepare with git doesn't finish
I would suggest using msysgit with plink and pageant for ssh authentication, worked like a charmed for me. On Jul 23, 2013 4:38 PM, Adrien Ruffié adriennolar...@hotmail.fr wrote: Same thing maven chain parameter like ssh://git:adryen31:mypassword@rd1 /myapp.git Just stupid parameters I think ... -Message d'origine- De : Francesco Mari [mailto:mari.france...@gmail.com] Envoyé : mardi 23 juillet 2013 14:02 À : Maven Users List Objet : Re: release prepare with git doesn't finish Try to use -Dusername to specify a user name, too. 2013/7/23 Adrien Ruffié adriennolar...@hotmail.fr Operation does not work very well ... C:\Java\Workspaces\Indigo\myappcrm5mvn -Darguments=-Dmaven.test.skip=true -Pdistribution-packaging release:prepare release:perform -Dtag=Spring2013 /005 -Dcom.myapp.frontline:myapp-webapp=Spring2013/005 -Dcom.myapp.frontline:myapp-install-wizard=Spring2013/005 -DreleaseVersion=Spring2013-005 -Ddev elopmentVersion=Spring2013-006-SNAPSHOT -Dpassword=mypassword -X it try to push with following url git push ssh://git:mypassword@rd1/myapp.git release/Spring2013:release/Spring2013 I think it confuses the password with the login ... therefore the url does not work -Message d'origine- De : Francesco Mari [mailto:mari.france...@gmail.com] Envoyé : mardi 23 juillet 2013 12:17 À : Maven Users List Objet : Re: release prepare with git doesn't finish Please retry the same command line with -Dpassword=... outside of -Darguments= Moreover, -Dpassphrase is not a valid argument for the goals you used. 2013/7/23 Adrien Ruffié adriennolar...@hotmail.fr No sorry I have try following command : mvn -Darguments=-Dmaven.test.skip=true -Pdistribution-packaging -Dpassword=mypassword release:prepare release:perform --batch-mode -Dtag=Spring2013/005 -Dcom.myapp.frontline:myapp-webapp=Spring2013/005 -Dcom.myapp.frontline:myapp-install-wizard=Spring2013/005 -DreleaseVersion=Spring2013-005 -DdevelopmentVersion=Spring2013-006-SNAPSHOT -Dpassword=mypassword I also try with passphrase like: mvn -Darguments=-Dmaven.test.skip=true -Pdistribution-packaging -Dpassphrase=mypassword release:prepare release:perform --batch-mode -Dtag=Spring2013/005 -Dcom.myapp.frontline:myapp-webapp=Spring2013/005 -Dcom.myapp.frontline:myapp-install-wizard=Spring2013/005 -DreleaseVersion=Spring2013-005 -DdevelopmentVersion=Spring2013-006-SNAPSHOT -Dpassphrase=mypassword but nothing was released ... also where do you put the specify the argument ? into mvn -Darguments=... or outside mvn -Darguments=... ? -Message d'origine- De : Francesco Mari [mailto:mari.france...@gmail.com] Envoyé : mardi 23 juillet 2013 11:49 À : Maven Users List Objet : Re: release prepare with git doesn't finish The release:prepare goal has a password parameter which you can use from the command line [1]. [1]: http://maven.apache.org/maven-release/maven-release-plugin/prepare-m oj o.html#password 2013/7/23 Adrien Ruffié adriennolar...@hotmail.fr Ok I have try without batch mode (on windows) and I have try to run the previous command before it block ... git push ssh://git@rd1/myapp.git release/Spring2013:release/Spring2013 and when I tried the following git line was prompt: Enter passphrase for key '/c/Users/a.ruffie/.ssh/id_rsa': After enter my passphrase the commit will be push correctly: Counting objects: 26, done. Delta compression using up to 4 threads. Compressing objects: 100% (15/15), done. Writing objects: 100% (18/18), 327.80 KiB | 0 bytes/s, done. Total 18 (delta 13), reused 4 (delta 3) To ssh://git@rd1/myapp.git 200c7f1..3f5cd17 release/Spring2013 - release/Spring2013 So I suppose the commit of git push ssh://git@rd1/myapp.git release/Spring2013:release/Spring2013 remains idle because the passphrase cannot be provided. Do you not a means to avoid this problem ? Like provide passphrase into maven command line ? like release:perform -Dgit.password=mypassword Great thank and best regards. Adrien -Message d'origine- De : Francesco Mari [mailto:mari.france...@gmail.com] Envoyé : mardi 23 juillet 2013 10:54 À : Maven Users List Objet : Re: release prepare with git doesn't finish I had a lot of issues using Git on Windows, especially combined with the Maven Release Plugin. It looks like that the issue is related to long path names. It may be that your project has long nested paths (usually Java applications have this problem). Try to move your project to a shorter path, e.g. C:\prj. This will not fix the issue, but it works sometimes. By the way, I use a Linux VM to release stuff. Working on Windows is sad, overall. 2013/7/23
Re: Accessing *reactor* build path in an Ant-Maven-plugin
Hello Russel, thanks, but how do I specify this in Ant-Mojos? Regards Mirko -- Sent from my mobile On Jul 10, 2013 2:37 PM, Russell Gold r...@gold-family.us wrote: Hi Mirko. If you want the compile class path for the pom executing a plugin, you can do this: 1. Configure the plugin to require compile and runtime dependency resolution: @Mojo( ... requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME) 2. Specify a parameter configured to receive project.compileClassElements /** * Compile classpath of the maven project. */ @Parameter(defaultValue = ${project.compileClasspathElements}) private ListString projectCompileClasspathElements; On Jul 10, 2013, at 1:12 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I inherited a Maven plugin written by an Ant-master which currently execs mvn dependency:build-classpath to inspect files. (Rewrite almost impossible as there are no tests). This leads to problems during the first run of verify (e.g. while release:prepare). Any hint how to get the *reactor* class path would be appreciated :-). Regards Mirko -- Sent from my mobile - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html!
Re: How to get an instance of MavenProjectHelper in a Maven3.0 plugin?
Hello, I think @Component without a role is sufficient. Besides, I guess role should be an interface and not the concrete class. DefaultMavenProjectHelper is the implementation of MavenProjectHelper :-). Regards Mirko -- Sent from my mobile On Jul 9, 2013 6:18 PM, Richard Sand rs...@idfconnect.com wrote: Hi all - I'm trying to write a Maven 3.0 plugin and cannot figure out how to get an instance of MavenProjectHelper. First, just taking a stab in the dark, I tried to get it the same way I got MavenProject, e.g. as a parameter populated by Maven: @Parameter(defaultValue=${projecthelper}, required = true, readonly = true) private MavenProjectHelper mavenProjectHelper; That gave me the typical error message that the parameters 'mavenProjectHelper' are missing or invalid. I also tried values projectHelper and project.helper. Just stabs in the dark. Next I tried using DefaultMavenProjectHelper as a component: /** * The Maven project helper component * */ @Component(role=org.apache.maven.project.DefaultMavenProjectHelper.class) private MavenProjectHelper mavenProjectHelper; But that gave me this error: ERROR] 1) No implementation for org.apache.maven.project.DefaultMavenProjectHelper was bound. Any advice? Thanks! Richard Sand | CEO IDF Connect, Inc. 2207 Concord Ave, #359 Wilmington | Delaware 19803 | USA Office: +1 302 425 0516 | Fax: +1 856 866 1899 Mobile: +1 267 984 3651 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Accessing *reactor* build path in an Ant-Maven-plugin
Hello, I inherited a Maven plugin written by an Ant-master which currently execs mvn dependency:build-classpath to inspect files. (Rewrite almost impossible as there are no tests). This leads to problems during the first run of verify (e.g. while release:prepare). Any hint how to get the *reactor* class path would be appreciated :-). Regards Mirko -- Sent from my mobile
Re: The Maven way for delivery pipelines
Stephen, Russel, thanks for your suggestions so far. I will take a look into the plugins you mentioned. Our operations department is using puppet and I did some tiny steps with. I agree it feels a bit like Maven because it is declarative as well. Now Ruby is IMO Python's perlish brother, so I am not very fond of it :-). Regards Mirko -- Sent from my mobile On Jul 6, 2013 12:24 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: On Friday, 5 July 2013, Mirko Friedenhagen wrote: Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I should proceed or do something completely different. What I want to achieve: - We have loads of web-applications (WARs with a homegrown configuration tooling) - Some are single module projects, some are multi-module. - All should be deployed to an adhoc tomcat instance after the WAR is built to see whether configurations are solid and to do some integrative tests. - Right now we invoke a shell-script which runs several maven goals (not phases) directly: mvn clean verify mvn internal:create-tomcat (special packaging with logback as logger etc.) mvn internal:start-tomcat mvn internal:deploy-war (this one will _modify_ the war's configuration on the fly before deployment) mvn webtest:test mvn internal:stop-tomcat Now, shell scripts are not very portable and so I thought about two solutions: Solution 1: Create a custom lifecycle called webtest - My first idea was to create a custom lifecycle[1] which will invoke some standard standard goals[2], so the complete vodoo could be done with: mvn clean verify verify-webtest - I tried this with a tiny IT project, where I configured failsafe to do special stuff during the phase webtest of lifecycle webtest. - However, now failsafe is invoked twice: --- snip --- [INFO] --- maven-failsafe-plugin:2.15:integration-test (default-integration-test-1) @ foss-jar-maven-plugin-test-foss-war --- [INFO] --- maven-failsafe-plugin:2.15:integration-test (webtest-integration-test) @ foss-jar-maven-plugin-test-foss-war --- --- snap --- - As the tomcat plugins are invoked as well with the wrong lifecycle default, I guess this will not work out. Solution 2: Would be to create a special packaging webtest and have a module in a multi-module project, one creating the war and the webtest module picking up the war as dependency and do the vodoo (on demand). Then I could imagine having two jobs in Jenkins, one deploying/installing the WAR and another Jenkins-Job running the shell equivalent from above by only executing module webtest. Now, I read a lot about Maven being a tool for *building only*, but in some way I like Maven and developing plugins is quite easy, so I thought it might be nonetheless a good way. What do you think, do I have a hammer and now everything looks like a nail to me? I have been down your road several times... It feels like a bit of a siren's call to me... The most public thing I did down this road is mojo's ship-maven-plugin... Which does things a, IMHO, more maven way *if* I were to imagine a maven way for things that take place beyond the (standard) lifecycle My current thinking is to use chef/puppet/etc for these tasks... But: 1. I am disappointed by how difficult these toolchains make things 2. Puppet is more maven in philosophy but at work our ops team voted for chef, so harder to try the tool I feel should be best 3. Lab42's module framework for puppet feels better but puppet labs module framework is closer to puppet as its by the main devs... I wish they can find a way to interop better. Or could I use one of the proposed solutions without abusing Maven to much? Or is invoking the shell script as we do now a much better solution? I actually like shell scripts for this type of thing... If it ain't broke... Regards and thank you very much for reading up to here! Mirko [1] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml#L103 [2] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml#L77 [3] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/it/test-foss-war/pom.xml#L31 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:; For additional commands, e-mail: users-h...@maven.apache.org javascript:; -- Sent from my phone
Switching Lifecycles on other things than packaging
Hello there, is there a way to switch to a different lifecycle depending on e.g. a path/file etc? Or is the agreed way to just have another packaging? Regards Mirko -- Sent from my mobile
Lifecycles and configuration of plugins
Hello, I see that versions of plugins are either manageable in the pom or in the lifecycle. Now what about configurations of plugins? May these be hidden as well in an extension/plugin? I want to hide this because a lot of application developers look at our company POM and shudder because of it's shere size :-) Regards Mirko -- Sent from my mobile
Re: Switching Lifecycles on other things than packaging
Hello Barrie, I know that :-) Our parent pom defines literally dozens of plugins, configures them *and* adds a few profiles which change the configuration and the plugins called on the existence of files, the environment (running in Jenkins?) and I hoped I could split stuff a bit. Regards Mirko -- Sent from my mobile On Jul 6, 2013 8:17 AM, Barrie Treloar baerr...@gmail.com wrote: On 6 July 2013 15:39, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello there, is there a way to switch to a different lifecycle depending on e.g. a path/file etc? Or is the agreed way to just have another packaging? The lifecycle for the pom comes from packaging. The plugins that pom declares then attach themselves to the lifecycle stages. You can always use a pom packaging to essentiallly do nothing, and have all the work done via plugins. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
The Maven way for delivery pipelines
Hello, now after some trial and error with custom packaging and lifecycles I ask myself whether I should proceed or do something completely different. What I want to achieve: - We have loads of web-applications (WARs with a homegrown configuration tooling) - Some are single module projects, some are multi-module. - All should be deployed to an adhoc tomcat instance after the WAR is built to see whether configurations are solid and to do some integrative tests. - Right now we invoke a shell-script which runs several maven goals (not phases) directly: mvn clean verify mvn internal:create-tomcat (special packaging with logback as logger etc.) mvn internal:start-tomcat mvn internal:deploy-war (this one will _modify_ the war's configuration on the fly before deployment) mvn webtest:test mvn internal:stop-tomcat Now, shell scripts are not very portable and so I thought about two solutions: Solution 1: Create a custom lifecycle called webtest - My first idea was to create a custom lifecycle[1] which will invoke some standard standard goals[2], so the complete vodoo could be done with: mvn clean verify verify-webtest - I tried this with a tiny IT project, where I configured failsafe to do special stuff during the phase webtest of lifecycle webtest. - However, now failsafe is invoked twice: --- snip --- [INFO] --- maven-failsafe-plugin:2.15:integration-test (default-integration-test-1) @ foss-jar-maven-plugin-test-foss-war --- [INFO] --- maven-failsafe-plugin:2.15:integration-test (webtest-integration-test) @ foss-jar-maven-plugin-test-foss-war --- --- snap --- - As the tomcat plugins are invoked as well with the wrong lifecycle default, I guess this will not work out. Solution 2: Would be to create a special packaging webtest and have a module in a multi-module project, one creating the war and the webtest module picking up the war as dependency and do the vodoo (on demand). Then I could imagine having two jobs in Jenkins, one deploying/installing the WAR and another Jenkins-Job running the shell equivalent from above by only executing module webtest. Now, I read a lot about Maven being a tool for *building only*, but in some way I like Maven and developing plugins is quite easy, so I thought it might be nonetheless a good way. What do you think, do I have a hammer and now everything looks like a nail to me? Or could I use one of the proposed solutions without abusing Maven to much? Or is invoking the shell script as we do now a much better solution? Regards and thank you very much for reading up to here! Mirko [1] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml#L103 [2] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml#L77 [3] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/it/test-foss-war/pom.xml#L31 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problems setting up a custom package type II - plugin/mojo versions in components.xml
Hello Vincent, thanks for your answer. Just so I get this right: I am looking at my IT-pom [1] and it has no parent defined. I am running Apache Maven 3.0.5. In my output I *do not* see the plugin-versions defined in the super POM from Maven-core (this are the ones defined in default-bindings.xml[2], right?) but newer ones as they are defined in the parent-pom of the plugin/extension project. * Say I have an extension (should be almost the same with a plugin) with version 2.13 of surefire in the pluginManagement of it's POM. * I include this extension in a parent pom PP and define 2.14.1 in the pluginManagement section. build pluginManagement plugins plugin artifactIdmaven-surefire-plugin/artifactId version2.14.1/version /plugin /plugins /pluginManagement extensions extension groupIdg/groupId artifacta/artifactId version1.0/version /extension /extensions /build * In project A inheriting this parent pom I define 2.15 as version. * Now should I expect the run of 2.15 for A, 2.14.1 for projects just having PP as parent and all projects not using the PP but the extension to use 2.13, right? [1] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/it/test-foss-jar/pom.xml [2] https://github.com/apache/maven/blob/master/maven-core/src/main/resources/META-INF/plexus/default-bindings.xml Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Thu, Jul 4, 2013 at 8:33 AM, Vincent Latombe vincent.lato...@gmail.com wrote: These are taken from the parent pom (super POM coming from maven core, any parent pom that you define) Regards, Vincent 2013/7/4 Mirko Friedenhagen mfriedenha...@gmail.com: Hello everyone, now I am getting greedy :-). I see that you may specify versions for the goals being executed during phases in components.xml for custom package types. Is there a way to convince the versions-maven-plugin etc. to update these versions as well? Or. where are the versions for the plugins in components taken from? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Problems setting up a custom package type
Hello, I am playing with a custom package type[0], mainly to enforce execution of check goals. I read in the mvnref[1] and looked at some samples [2,3]. Now every time I run my integration test[4], the build fails because the packaging type is not found. --- snip --- [DEBUG] Populating class realm extensionnet.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT [DEBUG] Included: net.oneandone.maven.plugins:foss-jar-maven-plugin:jar:1.0-SNAPSHOT [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:2.3.0 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.13.1 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2 [DEBUG] Included: com.google.guava:guava:jar:14.0.1 [DEBUG] Extension realms for project net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:foss-jar:1.0-SNAPSHOT: [ClassRealm[extensionnet.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@2ed4a1d3]] [DEBUG] Created new class realm projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT [DEBUG] Populating class realm projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT [DEBUG] Looking up lifecyle mappings for packaging foss-jar from ClassRealm[projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] [ERROR] The build could not read 1 project - [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [ERROR] Unknown packaging: foss-jar @ line 7, column 16 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636) at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR] [ERROR] The project net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT (/Users/mirko/workspace/foss/foss-jar/target/it/test-foss-jar/pom.xml) has 1 error [ERROR] Unknown packaging: foss-jar @ line 7, column 16 [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException --- snap --- I do not understand what I am doing wrong here. Any hints welcome :-). Regards Mirko [0] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml [1] http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html#ex-override-lifecycle [2] https://github.com/jayway/maven-android-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml [3] https://code.google.com/p/israfil-mojo/source/browse/trunk/maven-flex2-plugin/src/main/resources/META-INF/plexus/components.xml [4] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/it/test-foss-jar/pom.xml -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problems setting up a custom package type
Hello Robert, thanks for the quick answer, however I still get the same error :-(. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Jul 3, 2013 at 10:50 PM, Robert Scholte rfscho...@apache.org wrote: Hi Mirko, you're missing an org.apache.maven.artifact.handler.ArtifactHandler, which you can find in [2] Robert Op Wed, 03 Jul 2013 22:46:04 +0200 schreef Mirko Friedenhagen mfriedenha...@gmail.com: Hello, I am playing with a custom package type[0], mainly to enforce execution of check goals. I read in the mvnref[1] and looked at some samples [2,3]. Now every time I run my integration test[4], the build fails because the packaging type is not found. --- snip --- [DEBUG] Populating class realm extensionnet.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT [DEBUG] Included: net.oneandone.maven.plugins:foss-jar-maven-plugin:jar:1.0-SNAPSHOT [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:2.3.0 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.13.1 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2 [DEBUG] Included: com.google.guava:guava:jar:14.0.1 [DEBUG] Extension realms for project net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:foss-jar:1.0-SNAPSHOT: [ClassRealm[extensionnet.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@2ed4a1d3]] [DEBUG] Created new class realm projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT [DEBUG] Populating class realm projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT [DEBUG] Looking up lifecyle mappings for packaging foss-jar from ClassRealm[projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] [ERROR] The build could not read 1 project - [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [ERROR] Unknown packaging: foss-jar @ line 7, column 16 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636) at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR] [ERROR] The project net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT (/Users/mirko/workspace/foss/foss-jar/target/it/test-foss-jar/pom.xml) has 1 error [ERROR] Unknown packaging: foss-jar @ line 7, column 16 [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException --- snap --- I do not understand what I am doing wrong here. Any hints welcome :-). Regards Mirko [0] https://github.com/mfriedenhagen/foss-jar-maven-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml [1] http://books.sonatype.com/mvnref-book/reference/writing-plugins-sect-plugins-lifecycle.html#ex-override-lifecycle [2] https://github.com/jayway/maven-android-plugin/blob/master/src/main/resources/META-INF/plexus/components.xml [3] https://code.google.com/p/israfil-mojo/source/browse/trunk/maven-flex2-plugin/src/main/resources/META-INF/plexus/components.xml [4
Re: Problems setting up a custom package type
Hello Stuart, thanks! That did the trick. I do not know why Netbeans did not mark the XML as invalid :-(. Now the IT still fails because rules are missing for enforcer, but this is a trivial problem to tackle. Thx again Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Jul 3, 2013 at 11:37 PM, Stuart McCulloch mccu...@gmail.com wrote: On 3 Jul 2013, at 22:05, Mirko Friedenhagen wrote: Hello Robert, thanks for the quick answer, however I still get the same error :-(. It looks like you have mismatched tags on line 27 of your components.xml: validateorg.apache.maven.plugins:maven-enforcer-plugin:enforce/package Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Jul 3, 2013 at 10:50 PM, Robert Scholte rfscho...@apache.org wrote: Hi Mirko, you're missing an org.apache.maven.artifact.handler.ArtifactHandler, which you can find in [2] Robert Op Wed, 03 Jul 2013 22:46:04 +0200 schreef Mirko Friedenhagen mfriedenha...@gmail.com: Hello, I am playing with a custom package type[0], mainly to enforce execution of check goals. I read in the mvnref[1] and looked at some samples [2,3]. Now every time I run my integration test[4], the build fails because the packaging type is not found. --- snip --- [DEBUG] Populating class realm extensionnet.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT [DEBUG] Included: net.oneandone.maven.plugins:foss-jar-maven-plugin:jar:1.0-SNAPSHOT [DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:2.3.0 [DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.0 [DEBUG] Included: org.sonatype.aether:aether-util:jar:1.13.1 [DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14 [DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:3.0.10 [DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5 [DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3 [DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4 [DEBUG] Included: org.apache.maven.plugin-tools:maven-plugin-annotations:jar:3.2 [DEBUG] Included: com.google.guava:guava:jar:14.0.1 [DEBUG] Extension realms for project net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:foss-jar:1.0-SNAPSHOT: [ClassRealm[extensionnet.oneandone.maven.plugins:foss-jar-maven-plugin:1.0-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@2ed4a1d3]] [DEBUG] Created new class realm projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT [DEBUG] Populating class realm projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT [DEBUG] Looking up lifecyle mappings for packaging foss-jar from ClassRealm[projectnet.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]] [ERROR] The build could not read 1 project - [Help 1] org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [ERROR] Unknown packaging: foss-jar @ line 7, column 16 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636) at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [ERROR] [ERROR] The project net.oneandone.maven.plugins:foss-jar-maven-plugin-test-foss-jar:1.0-SNAPSHOT (/Users/mirko/workspace/foss/foss-jar/target/it/test-foss-jar/pom.xml) has 1 error [ERROR] Unknown packaging: foss-jar @ line 7, column 16 [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display
Problems setting up a custom package type II - plugin/mojo versions in components.xml
Hello everyone, now I am getting greedy :-). I see that you may specify versions for the goals being executed during phases in components.xml for custom package types. Is there a way to convince the versions-maven-plugin etc. to update these versions as well? Or. where are the versions for the plugins in components taken from? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Versions plugin for plugin updates only
Hello org, you may perhaps define a configuration section in which you define an include with groupId/artifactId for your plugins, then only those are updated. Regards Mirko -- Sent from my mobile On Jul 1, 2013 12:01 AM, org.apache.maven.u...@io7m.com wrote: Hello. Is it possible to get the Versions plugin to only update the version numbers of plugins? When running versions:use-latest-releases, the plugin immediately folds all my dependencies version ranges into the latest version, which is a huge pain as I then have to go back and reset them. I'd rather have it manage my plugin versions and not touch anything else. I could specify various excludes according to the plugin's usage page, but this then requires that I know about the contents of each POM and therefore can't be automated reliably. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] extra-enforcer-rules 1.0-alpha-5 Released
Hi, The Mojo team is pleased to announce the release of the 1.0-alpha-5 version of the extra-enforcer-rules. Extra Enforcer Rules. These are extra rules for Apache Maven's Enforcer Plugin. http://mojo.codehaus.org/extra-enforcer-rules/ To get this update, simply specify the version in your project's plugin configuration: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-enforcer-plugin/artifactId version1.0/version dependencies dependency groupIdorg.codehaus.mojo/groupId artifactIdextra-enforcer-rules/artifactId version1.0-alpha-5/version /dependency /dependencies /plugin /plugins /pluginManagement /build Release Notes We solved 3 issues: http://jira.codehaus.org/issues/?jql=fixVersion%20%3D%20%22extra-enforcer-rules-1.0-alpha-5%22%20AND%20project%20%3D%20MOJO ** Bug * [MOJO-1929] - NullPointerException in requirePropertyDiverges if configuration is put in execution * [MOJO-1931] - RequirePropertyDiverges fails if configuration elements are in wrong order ** Improvement * [MOJO-1930] - RFE: RequirePropertyDiverges: Extend the rule to include a custom message Enjoy, The Mojo team. Mirko Friedenhagen - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Problem with multi-module site
If I remember correctly, one problem is, when the name/directory of the module does not equal the artifactId of the module. Regards Mirko -- Sent from my mobile On Jun 20, 2013 1:04 AM, Russell Gold r...@gold-family.us wrote: I am using the site-maven-plugin (version 3.3) and cannot seem to get it to work. Using the exact same site.xml and additional files (faq, apt and xhtml types) that worked fine in a single project site, I am not getting breadcrumbs or custom menu items. I do get the submodules with their own sites, each of which is inheriting the reports from the parent, but that's it. My (58K) project is at http://russgold.github.io/russgold/maven-video/sample10.zip Thanks Russ - Come read my webnovel, Take a Lemon http://www.takealemon.com, and listen to the Misfile radio play http://www.gold-family.us/audio/misfile.html!
Re: Multiple invocation of report goal with different configurations?
Hello, I now opened a pull request for jacoco[1] and somehow there seems to be a change between maven-site-plugin-3.2 and maven-site-plugin-3.3, the latter one allows to define multiple reportSets like in the example below resp. on github[2] [1] https://github.com/jacoco/jacoco/pull/105 [2] https://github.com/mfriedenhagen/jacoco/blob/5718ea545a9ad17ae057ebc224062d1e0cf7d0a1/jacoco-maven-plugin.test/it/it-site-failsafe/pom.xml#L103 Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Sun, May 19, 2013 at 8:37 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, configuring-reports[1] states: If you want to choose only some reports from a plugin, or if you want to run a report *multiple times with a different configuration*, you need to configure report sets: I now tried this with the jacoco-maven-plugin to differentiate between unit and integration tests like this: reporting plugins plugin groupIdorg.jacoco/groupId artifactIdjacoco-maven-plugin/artifactId version 0.6.2.201302030002/version reportSets reportSet idunit-tests/id reports reportreport/report /reports configuration dataFile${project.build.directory}/jacoco.exec/dataFile /configuration /reportSet reportSet idintegration-tests/id reports reportreport/report /reports configuration dataFile${project.build.directory}/jacoco-it.exec/dataFile /configuration /reportSet /reportSets /plugin /plugins /reporting However, this does not work, as the configuration of the second reportSet will always override the first one. Looking into the plugin's code, this seems quite obvious: getOutputName[2] will always return jacoco/index and setReportOutputDirectory[3] will always just append jacoco to given parameter reportOutputDirectory. And in my sample project, the report goal will only be executed once. So my question: is there an example, where the same report mojo configured twice will be executed twice and return two different reports? Regards Mirko [1] http://maven.apache.org/plugins/maven-site-plugin/examples/configuring-reports.html [2] https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportMojo.java#L131 [3] https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportMojo.java#L182 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Multiple invocation of report goal with different configurations?
Hello, configuring-reports[1] states: If you want to choose only some reports from a plugin, or if you want to run a report *multiple times with a different configuration*, you need to configure report sets: I now tried this with the jacoco-maven-plugin to differentiate between unit and integration tests like this: reporting plugins plugin groupIdorg.jacoco/groupId artifactIdjacoco-maven-plugin/artifactId version 0.6.2.201302030002/version reportSets reportSet idunit-tests/id reports reportreport/report /reports configuration dataFile${project.build.directory}/jacoco.exec/dataFile /configuration /reportSet reportSet idintegration-tests/id reports reportreport/report /reports configuration dataFile${project.build.directory}/jacoco-it.exec/dataFile /configuration /reportSet /reportSets /plugin /plugins /reporting However, this does not work, as the configuration of the second reportSet will always override the first one. Looking into the plugin's code, this seems quite obvious: getOutputName[2] will always return jacoco/index and setReportOutputDirectory[3] will always just append jacoco to given parameter reportOutputDirectory. And in my sample project, the report goal will only be executed once. So my question: is there an example, where the same report mojo configured twice will be executed twice and return two different reports? Regards Mirko [1] http://maven.apache.org/plugins/maven-site-plugin/examples/configuring-reports.html [2] https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportMojo.java#L131 [3] https://github.com/jacoco/jacoco/blob/master/jacoco-maven-plugin/src/org/jacoco/maven/ReportMojo.java#L182 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Automatically remove version overrides from child POMs
Hello Robert, you could use the enforcer-plugin to enforce specific versions, then at least you have an easy way to identify those projects. We exclude all versions of spring and then include the latest version again, e.g. Regards Mirko -- Sent from my mobile On May 4, 2013 12:54 AM, Enyedi, Robert reny...@ebay.com wrote: Hi, We're using a parent POM which manages the versions of tens of dependencies. I occasionally encounter modules within my group that override some of those managed versions. Assuming the overrides are not legit, is there an automatic way to remove them from the child POMs? I was hoping that the versions:update-child-modules mojo would help, but it doesn't seem to do what I need. Thanks, Robert
Re: Lightweight maven-releases, or an alternative to the maven-release-plugin
Hello there, I. find prepare and perform quite heavyweight my self. After prepare did build everything successfully, it throws away everything, just tags the source and starts over again during perform. prepare already checks with scm means, that there are no modifications and in my experience tagging is the most harmless operation in the whole process (well, would I still use CVS that could be different). So running prepare with prepareGoals set to -DperformRelease=true clean deploy does what *I* want. - checks I have everything in SCM - does modify POMs for release. - deploys to staging - only on success of this tags the sources - go back to SNAPSHOT. git and svn (when not doing the strange remoteTagging) are capable of tagging always. Worst thing that might happen: bad stuff in staging for a short time. Regards Mirko -- Sent from my mobile On May 1, 2013 9:15 PM, Robert Scholte rfscho...@apache.org wrote: Graham, well said. Although the pom.xml is the easiest way to discover the version, it is not the best location, since it would require a commit. The solution must be found in a generated file which will be added to the artifact during packaging. Here you could add a timestamp or revision. Robert Op Wed, 01 May 2013 12:44:19 +0200 schreef Graham Leggett minf...@sharp.fm: On 30 Apr 2013, at 11:21 PM, Roger Brechbühl rotscher...@gmail.com wrote: Maybe somebody is interested in how a release could be built in a more lightweight and safe way than with the maven-release-plugin. Especially recommended for nightly releases. It's not yet released, but basically fully working: *mvn clean install -Dversion.override=1.2.3-S-5* https://github.com/rotscher/**emerging/tree/version.** override-with_maven_install-2.**4https://github.com/rotscher/emerging/tree/version.override-with_maven_install-2.4 Maven has a very clear definition of a release, being an artefact that can traced back to the precise code via a tag, and a build that can be repeated. This is as opposed to a snapshot, which has no well defined origin. You might approach this two ways, you might create nightly snapshots and have them deployed somewhere suitable, using mvn deploy. Alternatively if you want to create proper nightly releases (in the maven sense), you could feed a custom version number into the release plugin to represent your release, but this starts to smell like that's what a snapshot is for. Regards, Graham -- --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Problems
Hello Benjamin, settings are from /home/gen3builder, maven looks for security in /root. Do you now run bamboo as user root and did you run it as gen3builder before? Regards Mirko -- Sent from my mobile On Apr 20, 2013 10:17 AM, benjamin_joy...@ao.uscourts.gov wrote: I have been having an issue with a deploy through maven. I migrated our copy of bamboo to a new server recently and for one of our plans we use Maven and its cargo plugin to connect to JBoss and pull and install a .war file. however, on the new install this command always fails with a invokerlocater socket error. I will lpost the stack trace below. both systems are running RHEL and while they are running different versions I have attempted to move it to a server running the same version and it still fails. SO that rules out that as an issue. I have verified that ssh, scp, ftp, Get, and ping all work between the servers, and there are no active firewalls. I have also tried modifying the hostname and that change the hostname on my server in the error, but did not affect the problem itself. This is the Command run that fails. If I run the same command from the old server it succeeds. Everything down to where it says ERROR] FATAL ERROR is identical to the successful run accept that instead of the ERROR] FATAL ERROR I get a success. Any help or ideas will be much apreciated as I am running out of things to try. [root@fppsappdev pacts-gen3-view-war]# /opt/devl/apache-maven-2.2.1/bin/mvn clean install org.codehaus.cargo:cargo-maven2-plugin:redeploy -s /home/gen3builder/.m2/settings_fppsint.xml -e + Error stacktraces are turned on. [WARNING] Not decrypting password for server 'fppsint.gtwy.dcn' due to exception in security handler. Ensure that you have configured your master password file (and relocation if appropriate) See the installation instructions for details. Cause: /root/.m2/settings-security.xml (No such file or directory) [WARNING] Not decrypting password for server 'ao.opps.releases' due to exception in security handler. Ensure that you have configured your master password file (and relocation if appropriate) See the installation instructions for details. Cause: /root/.m2/settings-security.xml (No such file or directory) [WARNING] Not decrypting password for server 'ao.opps.snapshots' due to exception in security handler. Ensure that you have configured your master password file (and relocation if appropriate) See the installation instructions for details. Cause: /root/.m2/settings-security.xml (No such file or directory) [INFO] Scanning for projects... [INFO] [INFO] Building pacts-gen3-view-war [INFO]task-segment: [clean, install, org.codehaus.cargo:cargo-maven2-plugin:redeploy] [INFO] [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory /home/gen3builder/client-data-transfer/pacts-gen3-view-war/target [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 3 resources [INFO] snapshot gov.usc.codex:codex-core:1.4.12-SNAPSHOT: checking for updates from public-snapshots [INFO] snapshot gov.usc.codex:codex:1.4.12-SNAPSHOT: checking for updates from public-snapshots [INFO] snapshot gov.usc.ao:pacts-gen3-controller-jar:0.1.10-SNAPSHOT: checking for updates from public-snapshots [INFO] snapshot gov.usc.codex:codex-converter:1.4.12-SNAPSHOT: checking for updates from public-snapshots [INFO] snapshot gov.usc.codex:codex-uspps-v1:1.4.12-SNAPSHOT: checking for updates from public-snapshots [INFO] snapshot gov.usc.commons:esb-http-util:2.13.0-SNAPSHOT: checking for updates from public-snapshots [INFO] snapshot gov.usc.commons:usc-commons-esb:2.13.0-SNAPSHOT: checking for updates from public-snapshots [INFO] [compiler:compile {execution: default-compile}] [INFO] No sources to compile [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /home/gen3builder/client-data-transfer/pacts-gen3-view-war/src/test/resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [war:war {execution: default-war}] [INFO] Packaging webapp [INFO] Assembling webapp [pacts-gen3-view-war] in [/home/gen3builder/client-data-transfer/pacts-gen3-view-war/target/pacts-gen3] [INFO] Processing war project [INFO] Copying webapp webResources [/home/gen3builder/client-data-transfer/pacts-gen3-view-war/src/main/webapp] to
Re: String index out of range: -12 in ReleaseUtils.loadResolvedDependencies() when using Parent-Module-Layout
Hello, I probably found the cause: in our Jenkins instance we had set MAVEN_OPTS=-Ddependency.locations.enabled=false. This caused no problems during normal SNAPSHOT runs but we could not get the release-plugin working. Nothing was seen even with -X, release.properties is not even started. Removing the property above from MAVEN_OPTS solved the proplem. I am not sure whether and where to create an issue for this (maybe it just works as intended :-)). Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Jan 18, 2013 at 5:13 PM, Wayne Fay wayne...@gmail.com wrote: Looks like a section of code that could benefit from some debug-level logging. Then OP could just turn on -X and send us more useful output. Wayne On Fri, Jan 18, 2013 at 8:26 AM, Robert Scholte rfscho...@apache.org wrote: http://maven.apache.org/maven-release/maven-release-manager/xref/org/apache/maven/shared/release/config/ReleaseUtils.html#256 I'm interested in your release.properties as well. It looks like there's a property starting with 'dependency.' which doesn't end with '.development' or '.release' This should not be possible. thanks, Robert Op Fri, 18 Jan 2013 09:11:39 +0100 schreef thorsten.h...@vkb.de: Hi, maven-release-plugin:2.4:prepare failed: String index out of range: -12 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:225) *snip* Have you tried running mvn -e -X ...? Perhaps there's something missing in your pom.xml, such as an invalid property that is referenced somewhere, an empty or missing plugin configuration section etc.pp. HTH Thorsten - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: String index out of range: -12 in ReleaseUtils.loadResolvedDependencies() when using Parent-Module-Layout
Hello Robert, I created http://jira.codehaus.org/browse/MRELEASE-834 (release:prepare fails when a system property starting with dependency is given). Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Apr 12, 2013 at 6:39 PM, Robert Scholte rfscho...@apache.org wrote: Hi Mirko, Hmmm, just noticed I answered the wrong message of this thread :S But this is interesting. I can't find a JIRA issue for it, so feel free to create one. Robert Op Fri, 12 Apr 2013 17:44:29 +0200 schreef Mirko Friedenhagen mfriedenha...@gmail.com: Hello, I probably found the cause: in our Jenkins instance we had set MAVEN_OPTS=-Ddependency.locations.enabled=false. This caused no problems during normal SNAPSHOT runs but we could not get the release-plugin working. Nothing was seen even with -X, release.properties is not even started. Removing the property above from MAVEN_OPTS solved the proplem. I am not sure whether and where to create an issue for this (maybe it just works as intended :-)). Regards Mirko Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven-release-plugin error
Hello, my first guess would be the spaces in your workspace path, you could try to check out to C:/tmp/myprj and retry. Second guess: on windows path names must not be longer than 255 characters (at least Mercurial had problems with this), again, a checkout to C:/tmp/myprj could help. Regards Mirko -- Sent from my mobile On Apr 12, 2013 8:59 PM, Zanzerkia, Robert robert.zanzer...@fmr.com wrote: Hi, I am getting below error (SCM is Jazz RTC). Is there some convention about workspace name and snapshot name has to match? Is there a switch to override it? I also noticed that the original workspace I had specified get's changed as follows... RTCURL:PORT are replaced with real ones in my POM. scm connectionscm:jazz:https://RTCURL:PROT /jazz:uCMDB-PatternDev-0.0.6/connection developerConnectionscm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6 /developerConnection urlhttps://RTCURL:PROT/jazz:uCMDB-PatternDev-0.0.6/url /scm build Thanks, Robert [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6... [INFO] Executing: cmd.exe /X /C scm status --username a408072 --password * --wide [INFO] Working directory: C:\Documents and Settings\a408072.DMN1\workspace301\EI AS-ITAM uCMDB Pattern DEV [INFO] Executing: cmd.exe /X /C scm create snapshot --repository-uri https://RTCURLHERE/jazz --username x --password * --name uCMDB-PatternDev-0 .0.6 --description [maven-release-plugin] copy for tag uCMDB-PatternDev-0.0.6 uCMDB-PatternDev-0.0.6 [INFO] Working directory: C:\Documents and Settings\a408072.DMN1\workspace301\EI AS-ITAM uCMDB Pattern DEV [ERROR] Error: Selector uCMDB-PatternDev-0.0.6 did not match any workspaces Problem running 'create snapshot': Could not find workspace or stream specified by selector uCMDB-PatternDev-0.0.6 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2:09.255s [INFO] Finished at: Fri Apr 12 11:33:22 EDT 2013 [INFO] Final Memory: 9M/247M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4 .1:prepare (default-cli) on project uCMDB-PatternDev: Unable to tag SCM [ERROR] Provider message: [ERROR] Error code for Jazz SCM tag (SNAPSHOT) command - 9 [ERROR] Command output: [ERROR] Selector uCMDB-PatternDev-0.0.6 did not match any workspaces [ERROR] Problem running 'create snapshot': [ERROR] Could not find workspace or stream specified by selector uCMDB-PatternD ev-0.0.6 [ERROR] - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption
Re: Maven-release-plugin error
Third guess, on Windows upper and lower case are ignored, so C:/tm/ucmdb and naming the tag ucmdb-patterndev-0.6.6 could help. Regards Mirko -- Sent from my mobile On Apr 12, 2013 8:59 PM, Zanzerkia, Robert robert.zanzer...@fmr.com wrote: Hi, I am getting below error (SCM is Jazz RTC). Is there some convention about workspace name and snapshot name has to match? Is there a switch to override it? I also noticed that the original workspace I had specified get's changed as follows... RTCURL:PORT are replaced with real ones in my POM. scm connectionscm:jazz:https://RTCURL:PROT /jazz:uCMDB-PatternDev-0.0.6/connection developerConnectionscm:jazz:https://RTCURL:PROT:uCMDB-PatternDev-0.0.6 /developerConnection urlhttps://RTCURL:PROT/jazz:uCMDB-PatternDev-0.0.6/url /scm build Thanks, Robert [INFO] Tagging release with the label uCMDB-PatternDev-0.0.6... [INFO] Executing: cmd.exe /X /C scm status --username a408072 --password * --wide [INFO] Working directory: C:\Documents and Settings\a408072.DMN1\workspace301\EI AS-ITAM uCMDB Pattern DEV [INFO] Executing: cmd.exe /X /C scm create snapshot --repository-uri https://RTCURLHERE/jazz --username x --password * --name uCMDB-PatternDev-0 .0.6 --description [maven-release-plugin] copy for tag uCMDB-PatternDev-0.0.6 uCMDB-PatternDev-0.0.6 [INFO] Working directory: C:\Documents and Settings\a408072.DMN1\workspace301\EI AS-ITAM uCMDB Pattern DEV [ERROR] Error: Selector uCMDB-PatternDev-0.0.6 did not match any workspaces Problem running 'create snapshot': Could not find workspace or stream specified by selector uCMDB-PatternDev-0.0.6 [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 2:09.255s [INFO] Finished at: Fri Apr 12 11:33:22 EDT 2013 [INFO] Final Memory: 9M/247M [INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.4 .1:prepare (default-cli) on project uCMDB-PatternDev: Unable to tag SCM [ERROR] Provider message: [ERROR] Error code for Jazz SCM tag (SNAPSHOT) command - 9 [ERROR] Command output: [ERROR] Selector uCMDB-PatternDev-0.0.6 did not match any workspaces [ERROR] Problem running 'create snapshot': [ERROR] Could not find workspace or stream specified by selector uCMDB-PatternD ev-0.0.6 [ERROR] - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption
Re: release:perform goal fails on multi-module project
Hello Ryan, another option would be not to aggregate your javadoc, then the javadoc-jars include only the doc for the single module. Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Apr 10, 2013 at 5:00 PM, Ryan Baxter rbaxte...@gmail.com wrote: Ah OK thanks for clarifying Wayne. What I am hearing then is that the only way to solve the problem right now is to remove the javadoc plugin, correct? I can open a JIRA for this if there isn't already one out there. On Wed, Apr 10, 2013 at 10:25 AM, Wayne Fay wayne...@gmail.com wrote: causing the problem. I didn't find any goal called aggregateAtEnd, are you referring to the aggregate parameter [1]? Read what he said again... Another option would be to add a parameter to this goal like 'aggregateAtEnd', something I've added recently to the maven-install-plugin and maven-deploy-plugin. This is not currently available in the plugin. He is suggesting it could be added. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can I force a plugin to not run during parent pom execution phase?
Hello Dave, you could try to activate this profile depending on the existence of a given file in your modules, e.g. the existence of a src/test/resources/liquibase.properties (see http://www.liquibase.org/manual/liquibase.properties). Regards Mirko Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Tue, Apr 2, 2013 at 8:07 PM, laredotornado-3 laredotorn...@gmail.comwrote: Hi, I'm using Maven 3.0.3. I've included this plugin in a profile in my parent pom, however, when I run my parent pom, I don't want this to be executed as part of the parent pom being built (I do want it executed for each of the child modules). How can I make this plugin not run during the parent execution phase? modelVersion4.0.0/modelVersion groupIdorg.mainco.subco/groupId artifactIdsubco/artifactId version12.0.0-SNAPSHOT/version modules modulemoduleA/module modulemoduleB/module modulemoduleC/module packagingpom/packaging profiles profile ... plugin groupIdorg.liquibase/groupId artifactIdliquibase-maven-plugin/artifactId version2.0.1/version dependencies dependency groupIdmysql/groupId artifactIdmysql-connector-java/artifactId version5.1.18/version /dependency /dependencies executions execution idbuild-database/id phaseprocess-test-resources/phase configuration drivercom.mysql.jdbc.Driver/driver urljdbc:mysql://${test.mysql.db.host}:${test.mysql.db.port}/${test.mysql.db.sid}/url username${test.mysql.db.user}/username password${test.mysql.db.password}/password changeLogFile${project.build.directory}/db.changelog-master.xml/changeLogFile promptOnNonLocalDatabasefalse/promptOnNonLocalDatabase /configuration goals goalupdate/goal /goals /execution /executions /plugin Thanks, - Dave -- View this message in context: http://maven.40175.n5.nabble.com/Can-I-force-a-plugin-to-not-run-during-parent-pom-execution-phase-tp5752479.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Preferred way of deploying sites to GitHub Pages
I use scm-publish and it works like a charme: - stage your site locally - invoke scm-publish Really fast! Regards Mirko -- Sent from my mobile On Mar 25, 2013 11:54 AM, Thomas Broyer t.bro...@gmail.com wrote: Hi everyone, I've seen many ways of deploying a site to GitHub Pages (some old, some newer) and I wonder which should be considered the preferred one, and/or which are the pros and cons of each: * wagon-gitsite: there are a few forks, anyone knows the differences between them? * GitHub's own site-maven-plugin (apparently doesn't work well with multi-module builds) * Deploying locally and then using scm-publish: http://java.dzone.com/articles/how-publish-maven-site-docs -- Thomas Broyer /tɔ.ma.bʁwa.je/ http://xn--nna.ma.xn--bwa-xxb.je/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Preferred way of deploying sites to GitHub Pages
https://github.com/1and1/testlink-junit There you find a small shell script for publishing as well. The definition of scm-publish is done in the foss-parent project. Regards Mirko -- Sent from my mobile On Mar 25, 2013 6:00 PM, Ryan Baxter rbaxte...@apache.org wrote: Does anyone have a good example POM that uses scm-publish to deploy a site to GitHub pages? It would be great if it was a POM for a multi-module project ;) On Mon, Mar 25, 2013 at 9:23 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: I use scm-publish and it works like a charme: - stage your site locally - invoke scm-publish Really fast! Regards Mirko -- Sent from my mobile On Mar 25, 2013 11:54 AM, Thomas Broyer t.bro...@gmail.com wrote: Hi everyone, I've seen many ways of deploying a site to GitHub Pages (some old, some newer) and I wonder which should be considered the preferred one, and/or which are the pros and cons of each: * wagon-gitsite: there are a few forks, anyone knows the differences between them? * GitHub's own site-maven-plugin (apparently doesn't work well with multi-module builds) * Deploying locally and then using scm-publish: http://java.dzone.com/articles/how-publish-maven-site-docs -- Thomas Broyer /tɔ.ma.bʁwa.je/ http://xn--nna.ma.xn--bwa-xxb.je/ http://xn--nna.ma.xn--bwa-xxb.je/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Git settings for maven release plugin...
You may try replacing the colon between host and orgname with a slash /. Regards Mirko -- Sent from my mobile On Mar 22, 2013 12:11 AM, Jeff predato...@gmail.com wrote: My release:prepare is failing when it tries the following: git push ssh://g...@github.com:MyOrg/apps-thor.git releaseBranch:releaseBranch With the following error: ssh: Could not resolve hostname github.com:MyOrg: Name or service not known It also fails on the command line. If i remove the ssh:// it works. I think it is one of the values in my scm/ section but I think I'm following the pattern correctly based on http://maven.apache.org/scm/git.html . Here are my settings. scm connectionscm:git:ssh://g...@github.com: MyOrg/apps-thor.git/connection developerConnectionscm:git:ssh://g...@github.com: MyOrg/apps-thor.git/developerConnection urlg...@github.com:MyOrg/apps-thor.git/url /scm Am I missing something obvious? Regards! -- Jeff Vincent See my LinkedIn profile at: http://www.linkedin.com/in/rjeffreyvincent I ♥ DropBox http://db.tt/9O6LfBX !!
And now for something completely different: was: Re: Hmmmm
And on the python-list you even had the chance to prolong the thread! Regards Mirko -- Sent from my mobile On Mar 20, 2013 11:28 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Lots of mails end up on the maven mailing list... Could be upwards of 3 such mails in te last 24hours... Perhaps they arrive here by accident... Perhaps (if you agree with Freud) there are no accidents and the mails arrive here on purpose... On Wednesday, 20 March 2013, Ansgar Konermann wrote: Am 20.03.2013 20:56, schrieb Stephen Connolly: Freud believed that slips of the tongue provided an insight into the unconscious mind and that there were no accidents, every behavior (including slips of the tongue) was significant (i.e. all behavior is determined). Source: http://www.simplypsychology.org/psychoanalysis.html Perhaps it is a good thing that I am biased towards CBT and humanistic schools of thinking... Psychoanalysis seems, to me, to be just a long and drawn out process for blaming all of your life's problems on Freud's mother. How is that related to Maven? I. e. why does it end up on the Maven Users mailing list? Wrong recipient address? Best regards Ansgar - To unsubscribe, e-mail: users-unsubscr...@maven.apache.orgjavascript:; For additional commands, e-mail: users-h...@maven.apache.org javascript:; -- Sent from my phone
Re: Release:perform failing on git ...
Hello Benson, when this repository is on a host of it's own adding an entry to ssh-config may help (http://linux.die.net/man/5/ssh_config) . Regards Mirko -- Sent from my mobile On Mar 8, 2013 2:53 AM, Benson Margulies bimargul...@gmail.com wrote: Actually, I know what's happening. To talk to this repo, I need to use a custom ssh key. At command level, I use a shell script: git clone --config ssh.key=/users/benson/.ssh/id_basis_rsa $@ THe question is, how do I get the m-r-p to do this? On Thu, Mar 7, 2013 at 8:49 PM, Tim Wu T tim.t...@ericsson.com wrote: I think it should better for you to provide more stacktrace. [ERROR] The git-clone command failed. This message is too limited to find the root cause. Br, Tim -Original Message- From: Benson Margulies [mailto:bimargul...@gmail.com] Sent: Friday, March 08, 2013 9:47 AM To: Maven Users List Subject: Release:perform failing on git ... release plugin 2.3.2 prepare does fine. perform fails with: [INFO] --- maven-release-plugin:2.3.2:perform (default-cli) @ find-jug-dist-dir-maven-plugin --- [INFO] Checking out the project to perform the release ... [INFO] Executing: /bin/sh -c cd /Users/benson/x/find-jug-dist-dir-maven-plugin/target git clone --branch find-jug-dist-dir-maven-plugin-1 g...@github.com:basis-technology-corp/find-jug-dist-dir-maven-plugin.git /Users/benson/x/find-jug-dist-dir-maven-plugin/target/checkout [INFO] Working directory: /Users/benson/x/find-jug-dist-dir-maven-plugin/target [ERROR] The git-clone command failed. scm looks like: scm connectionscm:git:g...@github.com: basis-technology-corp/find-jug-dist-dir-maven-plugin.git/connection developerConnectionscm:git:g...@github.com: basis-technology-corp/find-jug-dist-dir-maven-plugin.git/developerConnection url https://github.com/basis-technology-corp/find-jug-dist-dir-maven-plugin /url tagHEAD/tag /scm - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Suppress multiple execution of mojos while creating site?
Hello Martin, of course I could redefine some plugins to be run in a different phase, enforcer could run during verify etc. However some (as buildnumber-version) are mostly useful for filtering resources, so delaying this to later phases makes no sense IMO :-). Regards Mirko On Mon, Feb 25, 2013 at 12:57 AM, Martin Gainty mgai...@hotmail.com wrote: off the top of my head how about declaring your plugin to bind to another phase ? the second option is to create custom lifecycle https://community.jboss.org/wiki/CreatingACustomLifecycleInMaven Get your hip boots on ..custom lifecyles are 'unsupported' Viel Gluck Martin From: mfriedenha...@gmail.com Date: Sun, 24 Feb 2013 20:53:40 +0100 Subject: Re: Suppress multiple execution of mojos while creating site? To: users@maven.apache.org Hello Martin, thanks for your suggestion. However I think I did not make myself clear in my description. My problem is not with generated reports but that during report generation while building the site a bunch of the reporting mojos are starting a default lifecycle phase again hereby prolonging the time the site needs to build. Regards Mirko On Sun, Feb 24, 2013 at 5:36 PM, Martin Gainty mgai...@hotmail.com wrote: Mirko one way is to customise maven-clean plugin to exclude target folder and only include reports for example we can leave target alone and delete surefire with this example plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clean-plugin/artifactId version2.4.1/version configuration excludeDefaultDirectoriestrue/excludeDefaultDirectories filesets fileset directorysurefire/directory includes include**/*/include /includes followSymlinksfalse/followSymlinks /fileset /filesets /configuration /plugin HTH, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: mfriedenha...@gmail.com Date: Sat, 23 Feb 2013 22:00:39 +0100 Subject: Suppress multiple execution of mojos while creating site? To: users@maven.apache.org Hello, as I wrote before, a lot of the reporting mojos invoke a lifecycle phase before executing. Take a look at: http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html This will invoke generate-sources before executing itself. Now I think a common use case for maven (at least my preferred in Jenkins) is to execute: mvn clean deploy site site-deploy Now deploy has AFAIK already generated all necessary source files, nonetheless javadoc:javadoc will start this cycle again. This BTW even may lead to a complete compile run again, which slows down site generation. javadoc:test-javadoc will start this game again (as does surefire-report:report-only). I a small sample project I see these numbers (enforcer and buildnumber-maven-plugin are executed six times on mvn verify site!): [mirko@borg foss-parent]$ grep '\[INFO\] --- ' target/it/check-site-jacoco/build.log | sort | uniq -c | sort -nr 6 [INFO] --- maven-enforcer-plugin:1.2:enforce (default-enforce) @ sample-project-jacoco --- 6 [INFO] --- buildnumber-maven-plugin:1.2:create (foss-parent-create) @ sample-project-jacoco --- 4 [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (default-prepare-agent) @ sample-project-jacoco --- 3 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample-project-jacoco --- 3 [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ sample-project-jacoco --- 1 [INFO] --- velocity-maven-plugin:0.3.0:velocity (default-velocity) @ sample-project-jacoco --- 1 [INFO] --- maven-surefire-plugin:2.13:test (default-test) @ sample-project-jacoco --- 1 [INFO] --- maven-source-plugin:2.2.1:test-jar-no-fork (default-test-jar-no-fork) @ sample-project-jacoco --- 1 [INFO] --- maven-source-plugin:2.2.1:jar-no-fork
Re: Suppress multiple execution of mojos while creating site?
Hello Martin, thanks for your suggestion. However I think I did not make myself clear in my description. My problem is not with generated reports but that during report generation while building the site a bunch of the reporting mojos are starting a default lifecycle phase again hereby prolonging the time the site needs to build. Regards Mirko On Sun, Feb 24, 2013 at 5:36 PM, Martin Gainty mgai...@hotmail.com wrote: Mirko one way is to customise maven-clean plugin to exclude target folder and only include reports for example we can leave target alone and delete surefire with this example plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-clean-plugin/artifactId version2.4.1/version configuration excludeDefaultDirectoriestrue/excludeDefaultDirectories filesets fileset directorysurefire/directory includes include**/*/include /includes followSymlinksfalse/followSymlinks /fileset /filesets /configuration /plugin HTH, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: mfriedenha...@gmail.com Date: Sat, 23 Feb 2013 22:00:39 +0100 Subject: Suppress multiple execution of mojos while creating site? To: users@maven.apache.org Hello, as I wrote before, a lot of the reporting mojos invoke a lifecycle phase before executing. Take a look at: http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html This will invoke generate-sources before executing itself. Now I think a common use case for maven (at least my preferred in Jenkins) is to execute: mvn clean deploy site site-deploy Now deploy has AFAIK already generated all necessary source files, nonetheless javadoc:javadoc will start this cycle again. This BTW even may lead to a complete compile run again, which slows down site generation. javadoc:test-javadoc will start this game again (as does surefire-report:report-only). I a small sample project I see these numbers (enforcer and buildnumber-maven-plugin are executed six times on mvn verify site!): [mirko@borg foss-parent]$ grep '\[INFO\] --- ' target/it/check-site-jacoco/build.log | sort | uniq -c | sort -nr 6 [INFO] --- maven-enforcer-plugin:1.2:enforce (default-enforce) @ sample-project-jacoco --- 6 [INFO] --- buildnumber-maven-plugin:1.2:create (foss-parent-create) @ sample-project-jacoco --- 4 [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (default-prepare-agent) @ sample-project-jacoco --- 3 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample-project-jacoco --- 3 [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ sample-project-jacoco --- 1 [INFO] --- velocity-maven-plugin:0.3.0:velocity (default-velocity) @ sample-project-jacoco --- 1 [INFO] --- maven-surefire-plugin:2.13:test (default-test) @ sample-project-jacoco --- 1 [INFO] --- maven-source-plugin:2.2.1:test-jar-no-fork (default-test-jar-no-fork) @ sample-project-jacoco --- 1 [INFO] --- maven-source-plugin:2.2.1:jar-no-fork (default-jar-no-fork) @ sample-project-jacoco --- 1 [INFO] --- maven-site-plugin:3.2:site (default-site) @ sample-project-jacoco --- 1 [INFO] --- maven-site-plugin:3.2:attach-descriptor (default-attach-descriptor) @ sample-project-jacoco --- 1 [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sample-project-jacoco --- 1 [INFO] --- maven-javadoc-plugin:2.9:jar (default-jar) @ sample-project-jacoco --- 1 [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sample-project-jacoco --- 1 [INFO] --- maven-failsafe-plugin:2.13:verify (default-verify) @ sample-project-jacoco --- 1 [INFO] --- maven-failsafe-plugin:2.13:integration-test
Fwd: mvn verify site vs: mvn verify site:site
Hello, I started to try to improve the total runtime for our inhouse projects by eliminating unneeded aggregation goals or duplicate invocations of mojos in general. Most of our projects consume a lot of time during tests, so by declaring report-only and failsafe-report-only in the reporting section for the maven-surefire-report-plugin I could already halve the building time. Further on I removed the aggregation of javadoc as well. Now I started to investigate whether I could further improve stuff and detected the following (sample project[1]). This is a pom project with some invoker integration tests. While executing mvn clean verify -Dinvoker.test=check-site-jacoco [2] invoker executes verify site. The executed mojos are as follows: --- snip --- [INFO] --- maven-enforcer-plugin:1.2:enforce (foss-parent-junit-enforcer) @ sample-project-jacoco --- [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sample-project-jacoco --- [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (default-prepare-agent) @ sample-project-jacoco --- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample-project-jacoco --- [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ sample-project-jacoco --- [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ sample-project-jacoco --- [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ sample-project-jacoco --- [INFO] --- maven-surefire-plugin:2.13:test (default-test) @ sample-project-jacoco --- [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sample-project-jacoco --- [INFO] --- maven-javadoc-plugin:2.9:jar (attach-javadoc) @ sample-project-jacoco --- [INFO] --- maven-source-plugin:2.2.1:jar-no-fork (attach-sources) @ sample-project-jacoco --- [INFO] --- maven-source-plugin:2.2.1:test-jar-no-fork (attach-sources) @ sample-project-jacoco --- [INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ sample-project-jacoco --- [INFO] --- maven-failsafe-plugin:2.13:integration-test (foss-parent-integration-test) @ sample-project-jacoco --- [INFO] --- velocity-maven-plugin:0.3.0:velocity (foss-parent-create-jenkins-description) @ sample-project-jacoco --- [INFO] --- maven-dependency-plugin:2.6:analyze-only (foss-parent-analyze-only) @ sample-project-jacoco --- [INFO] --- maven-failsafe-plugin:2.13:verify (foss-parent-integration-test) @ sample-project-jacoco --- [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:report (default-report) @ sample-project-jacoco --- site starts here [INFO] --- maven-site-plugin:3.2:site (default-cli) @ sample-project-jacoco --- [INFO] --- maven-enforcer-plugin:1.2:enforce (foss-parent-junit-enforcer) @ sample-project-jacoco --- [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sample-project-jacoco --- [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (default-prepare-agent) @ sample-project-jacoco --- [INFO] --- maven-enforcer-plugin:1.2:enforce (foss-parent-junit-enforcer) @ sample-project-jacoco --- [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sample-project-jacoco --- [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (default-prepare-agent) @ sample-project-jacoco --- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample-project-jacoco --- [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ sample-project-jacoco --- [INFO] --- maven-enforcer-plugin:1.2:enforce (foss-parent-junit-enforcer) @ sample-project-jacoco --- [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sample-project-jacoco --- [INFO] --- maven-enforcer-plugin:1.2:enforce (foss-parent-junit-enforcer) @ sample-project-jacoco --- [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sample-project-jacoco --- [INFO] --- maven-enforcer-plugin:1.2:enforce (foss-parent-junit-enforcer) @ sample-project-jacoco --- [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ sample-project-jacoco --- [INFO] --- jacoco-maven-plugin:0.6.2.201302030002:prepare-agent (default-prepare-agent) @ sample-project-jacoco --- [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ sample-project-jacoco --- [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ sample-project-jacoco --- --- snap --- As can be seen some mojos are executed repeatedly during the site lifecycle. I now tried verify site:site as well, but this did not help. Could anyone shed a light why this happens? In this parent-pom I only have quick mojos, but in our inhouse version, some of them are taking 20 seconds, which results in much prolonged building times. Regards Mirko [1] https://github.com/1and1/foss-parent/tree/foss-parent-1.3.6 [2] https://github.com/1and1/foss-parent/tree/foss-parent-1.3.6/src/it/check-site-jacoco/invoker.properties - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands,
Re: mvn verify site vs: mvn verify site:site - how to suppress duplicate lifecycle phase invocations?
Hello, sorry for the self-reply. On further inspection, reporting plugins like javadoc:javadoc or surefire-report-plugin:report-only always fork a lifecycle and invoke the execution of a lifecycle phase. Is there any way to get rid of this? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Run unit tests before commiting
Alberto, you could bind to the phase verify as well, which will package your artifacts and runs integration-tests (e.g. started with the failsafe-plugin) additionally. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Feb 15, 2013 at 5:12 PM, Alberto Ivo alberto...@gmail.com wrote: Thanks, everyone! Ivo On Fri, Feb 15, 2013 at 2:10 PM, Baptiste MATHUS m...@batmat.net wrote: True. The hard part, you did, Luke ;-) 2013/2/15 Stephen Connolly stephen.alan.conno...@gmail.com OT. this blind man on a galloping horse cannot tell the exact scm goal names ;-) On 15 February 2013 15:41, Baptiste MATHUS m...@batmat.net wrote: Just bind the maven-scm-plugin with that goalconf (which actually seems to be checkin instead of commit) onto the right phase (here it may be test). Look at the Maven lifecycle to understand what a phase is http://maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#message(search for default lifecycle). Cheers 2013/2/15 Alberto Ivo alberto...@gmail.com I'm sorry.. I'm noob.. I didn't get it. Is there a way to do it inside the pom.xml? Ivo On Fri, Feb 15, 2013 at 11:15 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: mvn clean test scm:commit -Dmessage=I am great On 15 February 2013 12:51, Alberto Ivo alberto...@gmail.com wrote: Hello, Nowadays When I change the code, I manually run the unit test (suite) and then commit using Eclipse IDE. But I would like to do it via Maven. The code can be committed only after the unit tests and they all have passed. Is that possible? if so, could I do that? Thanks in advance! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! nbsp;! -- Baptiste Batmat MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor ! nbsp;! - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: New Maven idea: include (import++)?
Hello everyone, I see that, by including a pom in compile scope, the project has the dependencies defined as transitive dependencies in it's classpath. Two things come to my mind, which could make a scope include sensible: 1) dependency:analyze AKA define what you depend on for compilation - we use dependency:analyze and have a policy that projects should depend directly on stuff they need for compilation. - I have not checked this but by (ab)using a pom with compile scope, dependencies defined in there will trigger warnings from dependency:analyze, do they not? 2) using dependencies for other scopes - I think only dependencies declared in compile scope will be transitively in compile of the including project. - What if you always want to include junit, hamcrest and mockito (easymock ...) in scope test? Regards Mirko On Tue, Feb 5, 2013 at 4:29 PM, Laird Nelson ljnel...@gmail.com wrote: On Tue, Feb 5, 2013 at 6:10 AM, Matthew Adams matt...@matthewadams.mewrote: What I was looking for was a way to define a new artifact in a pom that, if used in a consuming artifact's dependencies, would include all of the dependencies in the referenced artifact. Hello; you can do this today by simply declaring a normal dependency on an artifact of type pom. So: dependency groupIdyour.datanucleus.pom.groupId/groupId artifactIdyour.datanucleus.pom.artifactId/artifactId versionwhatever/version scopecompile/scope typepom/type /dependency You should not feel like you missed something; this is not really explained well anywhere. You kind of have to infer it from other parts of the Maven documentation. There are several side effects to doing things this way, which may or may not matter to you. First, the dependencies are one level down--that is, you didn't include your pom artifact's dependencies directly, you included them transitively. This might have a bearing on what versions of a given dependency win in a complex inherited pom scenario. Second, I'm just frankly not sure how (or if) the dependencyManagementsection in the pom-as-dependency will work, if at all. I hope this helps. Best, Laird -- http://about.me/lairdnelson - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: What's better, properties or configuration
I use properties a lot especially in parent poms and especially for versions of dependencies and plugins. By this testing new versions in real projects is much easier. Regards Mirko -- Sent from my mobile On Jan 26, 2013 9:10 AM, Joachim Durchholz j...@durchholz.org wrote: E.g. properties maven.compiler.source1.7/**maven.compiler.source maven.compiler.target1.7/**maven.compiler.target /properties vs. build plugins plugin groupIdorg.apache.maven.**plugins/groupId artifactIdmaven-compiler-**plugin/artifactId version3.0/version configuration source1.7/source target1.7/target /configuration /plugin /plugins /build I can see several points that might factor into a decision, but I'm not sure which of them are relevant in practice: - Configuration can be varied on a per-execution level, properties cannot. Not so relevant for compiling where you typically split each compiler run into a separate pom, more for other plugins. - Properties can be varied using profiles, configuration cannot. - At least for the compiler plugin, examples in the tutorials and docs invariably show the configuration approach. (Is there a reason why properties are generally not as good as configuration?) - Properties are FAR more compact. - When configuring a plugin, only a subset of its configuration is usually taken from properties, so once you need to configure, using properties does not give an advantage anymore. - Anything else? Regards, Jo --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Site plugin to document properties in the pom?
Hello Graham, I once was successful with referencing injected properties in velocity by using the get method. Maybe something like: ${project.properties.get(tomcat.port.http.confluence43.live)} will work? Regards Mirko On Mon, Jan 14, 2013 at 5:40 PM, Graham Leggett minf...@sharp.fm wrote: On 14 Jan 2013, at 6:36 PM, Olivier Lamy ol...@apache.org wrote: maybe http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html#Filtering Doesn't seem to fit, alas, as you have to come up with your own template and manually add the new properties to the template. In addition, my properties contain dots: properties tomcat.port.http.confluence43.live7999/tomcat.port.http.confluence43.live tomcat.port.shutdown.confluence43.live7998/tomcat.port.shutdown.confluence43.live httpd.port.http.repo.core7997/httpd.port.http.repo.core httpd.address.http.repo.core127.0.0.1/httpd.address.http.repo.core /properties Regards, Graham -- - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Surefire 2.13 close to release, last chance to give feedback !
Hello Kristian, I tried 2.13-SNAPSHOT and the stacktraces are not indented anymore and the at is missing. Netbeans (7.3 Beta 2) does not recognize these stacktraces when pasted into the analyze window nor when clicking into the console output. This is IMO a regression compared to 2.12.4. When invoking test runs only in Netbeans, however, it uses the XML output, so reporting and running tests from the still works. For humans the stacktraces look IMO better, though :-). Should I open an issue? Regards Mirko On Tue, Dec 11, 2012 at 5:02 PM, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: The current 2.13-SNAPSHOT is functionally pretty close to what will be the staged version for release. Most users (especially JUnit 4.x users) should appreciate the heavily revised summary of which tests failed during a test run and improved stacktrace trimming. So if you want to give this version a spin, this is effectively the last chance for feedback before we stage the 2.13 release. If you do test it, make sure you break some tests to check the new output ;) Feedback/problems here or at https://jira.codehaus.org/browse/SUREFIRE Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Surefire 2.13 close to release, last chance to give feedback !
Thanks for the fix, works like a charme :-). Regards Mirko On Thu, Dec 13, 2012 at 2:18 PM, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: Thanks for testing ! No need for an issue this time, I will fix real soon. Kristian 2012/12/13 Mirko Friedenhagen mfriedenha...@gmail.com: Hello Kristian, I tried 2.13-SNAPSHOT and the stacktraces are not indented anymore and the at is missing. Netbeans (7.3 Beta 2) does not recognize these stacktraces when pasted into the analyze window nor when clicking into the console output. This is IMO a regression compared to 2.12.4. When invoking test runs only in Netbeans, however, it uses the XML output, so reporting and running tests from the still works. For humans the stacktraces look IMO better, though :-). Should I open an issue? Regards Mirko On Tue, Dec 11, 2012 at 5:02 PM, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: The current 2.13-SNAPSHOT is functionally pretty close to what will be the staged version for release. Most users (especially JUnit 4.x users) should appreciate the heavily revised summary of which tests failed during a test run and improved stacktrace trimming. So if you want to give this version a spin, this is effectively the last chance for feedback before we stage the 2.13 release. If you do test it, make sure you break some tests to check the new output ;) Feedback/problems here or at https://jira.codehaus.org/browse/SUREFIRE Kristian - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: access password in settings.xml
/** Imports */ import java.util.List; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Component; import org.apache.maven.settings.Server; import org.apache.maven.settings.Settings; import org.apache.maven.settings.crypto.DefaultSettingsDecryptionRequest; import org.apache.maven.settings.crypto.SettingsDecrypter; import org.apache.maven.settings.crypto.SettingsDecryptionRequest; import org.apache.maven.settings.crypto.SettingsDecryptionResult; Note that I use guava in other parts as well so I did exclude it in the maven-plugin-api. /* POM */ dependencies dependency groupIdorg.apache.maven/groupId artifactIdmaven-plugin-api/artifactId version3.0.4/version exclusions exclusion!-- provided by com.google.guava:guava directly -- artifactIdsisu-guava/artifactId groupIdorg.sonatype.sisu/groupId /exclusion /exclusions /dependency dependency groupIdorg.apache.maven.plugin-tools/groupId artifactIdmaven-plugin-annotations/artifactId version3.1/version exclusions exclusion groupIdorg.apache.maven/groupId artifactIdmaven-artifact/artifactId /exclusion /exclusions /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-settings/artifactId version3.0.4/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-settings-builder/artifactId version3.0.4/version /dependency dependency groupIdorg.apache.maven/groupId artifactIdmaven-compat/artifactId version3.0.4/version /dependency dependency groupIdcom.google.guava/groupId artifactIdguava/artifactId version13.0-rc2/version /dependency /dependencies Regards Mirko On Mon, Aug 27, 2012 at 4:20 PM, Michael Hüttermann mich...@huettermann.net wrote: Hi Mirko, thanks! What are the necessary imports and the POM dependencies for that? Thanks. Michael Hello Michael, reading your Agile ALM book right now :-): Here is an example how to get all servers with password decrypted: public class MyMojo extends AbstractMojo { /** * Maven settings. */ @Component private Settings settings; /** * The decrypter for passwords. */ @Component private SettingsDecrypter settingsDecrypter; /** * Returns the list of servers with decrypted passwords. * * @return list of servers with decrypted passwords. */ ListServer getDecryptedServers() { final SettingsDecryptionRequest settingsDecryptionRequest = new DefaultSettingsDecryptionRequest(); settingsDecryptionRequest.setServers(settings.getServers()); final SettingsDecryptionResult decrypt = settingsDecrypter.decrypt(settingsDecryptionRequest); return decrypt.getServers(); } } Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ https://twitter.com/mfriedenhagen On Fri, Aug 24, 2012 at 11:36 AM, Michael Hüttermann mich...@huettermann.net wrote: Hello, how can I (e.g. programmatically, in an own Maven plugin) access the serverpassword element of settings.xml, to re-use the value. Is there any chance to do so? Thanks! Michael - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: access password in settings.xml
Hello Michael, reading your Agile ALM book right now :-): Here is an example how to get all servers with password decrypted: public class MyMojo extends AbstractMojo { /** * Maven settings. */ @Component private Settings settings; /** * The decrypter for passwords. */ @Component private SettingsDecrypter settingsDecrypter; /** * Returns the list of servers with decrypted passwords. * * @return list of servers with decrypted passwords. */ ListServer getDecryptedServers() { final SettingsDecryptionRequest settingsDecryptionRequest = new DefaultSettingsDecryptionRequest(); settingsDecryptionRequest.setServers(settings.getServers()); final SettingsDecryptionResult decrypt = settingsDecrypter.decrypt(settingsDecryptionRequest); return decrypt.getServers(); } } Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ https://twitter.com/mfriedenhagen On Fri, Aug 24, 2012 at 11:36 AM, Michael Hüttermann mich...@huettermann.net wrote: Hello, how can I (e.g. programmatically, in an own Maven plugin) access the serverpassword element of settings.xml, to re-use the value. Is there any chance to do so? Thanks! Michael - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Request For Enhancements
Hello Nambi, I would suggest you split your RFEs one by one and send the text of each separately to the mailing list. By means of this, we will have only one source of information :-). And maybe the developer list would be a more appropriate place for these discussions. Regards Mirko -- Sent from my mobile On Aug 17, 2012 1:53 AM, Sankaran, Nambi nsanka...@ebay.com wrote: Hi, I am using maven for quite some time. It has helped our team tremendously over the years. Yet, there is a feeling among developers that there are many pain points. I have documented the pain-points, along with a proposed solution. http://nambisankaran.wordpress.com/2012/08/14/request-for-improvements-in-apache-maven/ Please take a look at it, you or someone in your team may be having these issues. If so, it would be great to know how you solve the problems or work around it. Thanks Nambi
Re: AW: A plugin to check the pomfiles for certain standards?
Hello! There are additional rules available called extra-enforcer-rules at mojo.codehaus.org. Regards Mirko -- Sent from my mobile Am 27.07.2012 07:56 schrieb Dünnebeil Gerhard gerhard.duenneb...@ait.ac.at: Thanks, this looks close to what I was looking for. I will need custom rules though but it seems to be a good starting point. Best regards Gerhard -Ursprüngliche Nachricht- Von: Wayne Fay [mailto:wayne...@gmail.com] Gesendet: Donnerstag, 26. Juli 2012 15:49 An: Maven Users List Betreff: Re: A plugin to check the pomfiles for certain standards? I am looking for a plugin that tests the pom-files of a project to adhere to certain standards...
Re: Executing a goal *after* install
Hello Brett, unfortunately, binding it to Lifecycle.INSTALL without a custom lifecycle seems not to be good enough. During the run of mvn install, install will be run in every module seperately (first parent, the reactor projects). Now after install:install succeeded in the parent, my goal foo:create-sha1-list runs but install:install did not run in the other reactor projects (probably they are even not yet compiled yet). I want to create exactly *one* bill-of-materials for *all* artifacts created in the multi-module project. I will take a look at the lifecycle stuff, though I fear I did not grasp the documentation right now :-). Regards Mirko On Wed, Jul 25, 2012 at 2:13 AM, Brett Porter br...@apache.org wrote: Binding the mojo in the install phase will run it after anything already executed in the install phase, which should be sufficient for your use case (you can probably even run it in the package phase since everything attaching artifacts will happen there). - Brett On 25/07/2012, at 7:08 AM, Mirko Friedenhagen wrote: Hello, in a multi-module project, I want to create a sha1 list of all artifacts created. For that I created a Mojo which collects all artifacts as well as attachedArtifacts from the executionRoot as well as the invoking parent. Now I probably need a way to execute a plugin *after* install ran in all projects. Is there a way to define that I want to run the mojo post-install? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter http://twitter.com/brettporter - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Executing a goal *after* install
Thank you very much for all your hints :-). Regards Mirko On Wed, Jul 25, 2012 at 10:28 AM, Tamás Cservenák ta...@cservenak.net wrote: Mirko, so, you want to have your mojo run at last reactor module being built (having your mojo defined)? Then take a peek at this: https://github.com/sonatype/nexus-maven-plugins/tree/master/nexus-staging-maven-plugin and (as it uses) this: https://github.com/sonatype/mojo-commons/blob/master/src/main/java/org/sonatype/maven/mojo/execution/MojoExecution.java The deploy mojo does exactly the same: it does something (in your case would do nothing), and kicks in in very last reactor module. Or, the build action(s), those literally skips themselves until invoked by Maven on last module in reactor build: https://github.com/sonatype/nexus-maven-plugins/blob/master/nexus-staging-maven-plugin/src/main/java/org/sonatype/nexus/maven/staging/workflow/AbstractStagingBuildActionMojo.java#L131 Hope helps, ~t~ On Wed, Jul 25, 2012 at 9:24 AM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello Brett, unfortunately, binding it to Lifecycle.INSTALL without a custom lifecycle seems not to be good enough. During the run of mvn install, install will be run in every module seperately (first parent, the reactor projects). Now after install:install succeeded in the parent, my goal foo:create-sha1-list runs but install:install did not run in the other reactor projects (probably they are even not yet compiled yet). I want to create exactly *one* bill-of-materials for *all* artifacts created in the multi-module project. I will take a look at the lifecycle stuff, though I fear I did not grasp the documentation right now :-). Regards Mirko On Wed, Jul 25, 2012 at 2:13 AM, Brett Porter br...@apache.org wrote: Binding the mojo in the install phase will run it after anything already executed in the install phase, which should be sufficient for your use case (you can probably even run it in the package phase since everything attaching artifacts will happen there). - Brett On 25/07/2012, at 7:08 AM, Mirko Friedenhagen wrote: Hello, in a multi-module project, I want to create a sha1 list of all artifacts created. For that I created a Mojo which collects all artifacts as well as attachedArtifacts from the executionRoot as well as the invoking parent. Now I probably need a way to execute a plugin *after* install ran in all projects. Is there a way to define that I want to run the mojo post-install? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Brett Porter br...@apache.org http://brettporter.wordpress.com/ http://au.linkedin.com/in/brettporter http://twitter.com/brettporter - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Using scope in dependencyManagement: good idea or bad?
Hello, we use this for dependencies which should go the test scope by default as well. This prevents stuff like junit or mockito to be part of WARs, e.g. The only drawback here are our integration test suites where a lot of the code resides in src/main. Same goes for logback-classic, which may be used in libraries in the scope test but should be explicitely declared as either provided (by our internal tomcat containers). As we use jcl-over-slf4j we define commons-logging as provided by jcl-over-slf4j as well, so we do not have to redeclare this in every application again. Regards Mirko On Fri, Jun 1, 2012 at 6:03 PM, Mark Struberg strub...@yahoo.de wrote: I sometimes use this for libraries (like e.g. openwebbeans-impl) which I normally only have a runtime dependency for (generally defined via dependencyManagement). But in some cases you need to access some internal details. Usually I move those parts to some 'utility' module which then has a compile time dependency to the needed library. LieGrue, strub - Original Message - From: Thiessen, Todd (Todd) tthies...@avaya.com To: Maven Users List users@maven.apache.org Cc: Sent: Friday, June 1, 2012 5:20 PM Subject: RE: Using scope in dependencyManagement: good idea or bad? +1 here. I find it valuable to changing scope to provided. -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Friday, June 01, 2012 10:53 AM To: Maven Users List Subject: Re: Using scope in dependencyManagement: good idea or bad? the subject say it all: Is declaring scopes in the dependencyManagement section of your parent POM a good idea or a bad idea? Unless you are employing an approach wherein all of those deps will be scope provided [because you are providing them in the application server's shared libs folder], I think it is a bad idea. So I guess specifically for provided-scoped things, I support it, but not for any others. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: override ciManagement from parent POM
Hello Martin, there is an extra-enforcer-rule (http://mojo.codehaus.org/extra-enforcer-rules/requirePropertyDiverges.html) which allows to enforce that ciManagement in children diverges from the one in the parent, maybe that could help you :-). Regards Mirko On Thu, May 24, 2012 at 9:44 AM, Martin Goldhahn martin.goldh...@uis.no wrote: Hi, I have a POM that has a ciManagement URL defined in its POM. One of my projects that uses this POM as parent doesn't have a ciManagement URL. Is there a way to blank out the ci Management section from the parent POM? -- Martin - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated
Hello Olivier, I assume I have to create the properties in afterSessionStart as afterProjectsRead will be to late again? Regards Mirko On Sun, Apr 29, 2012 at 21:22, Olivier Lamy ol...@apache.org wrote: Yup you can add properties to project.getProperties() But in your case you want to change distributionManagement urls using properties interpolation mechanism ? but it's too late using a plugin as model has been build. An option you have maybe it's to use maven3 lifecycle extension mechanism: http://maven.apache.org/examples/maven-3-lifecycle-extensions.html 2012/4/29 Mirko Friedenhagen mfriedenha...@gmail.com: Hm, so this seems to be true only for some elements of the pom but not plugin configurations. The http://mojo.codehaus.org/buildnumber-maven-plugin/ actually adds buildNumber and uses it in e.g. the maven-jar-plugin to add a field Implementation-Build. Regards Mirko On Sun, Apr 29, 2012 at 11:09, Hervé BOUTEMY herve.bout...@free.fr wrote: yes, property evaluations is done in the model interpolation step of the Maven model build: see [1] for a global view no, no plugin can add any property at any phase, sorry Regards, Hervé [1] http://maven.apache.org/ref/3.0.4/maven-model-builder/ Le dimanche 29 avril 2012 08:36:10 Anders Hammar a écrit : I think it is resolved even before the build lifecycle starts. /Anders On Sat, Apr 28, 2012 at 22:01, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I developed a plugin which creates an additional property during the validate phase and want to use it as part of the snapshotRepository/url. However the property is not resolved but the name of the property is inserted. I may access the calculated property and insert it into Could anybody tell me in which phase the urls in distributionManagement are resolved? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Lifecycle phase in which the url for distributionManagement/snapshotRepository is calculated
Hm, so this seems to be true only for some elements of the pom but not plugin configurations. The http://mojo.codehaus.org/buildnumber-maven-plugin/ actually adds buildNumber and uses it in e.g. the maven-jar-plugin to add a field Implementation-Build. Regards Mirko On Sun, Apr 29, 2012 at 11:09, Hervé BOUTEMY herve.bout...@free.fr wrote: yes, property evaluations is done in the model interpolation step of the Maven model build: see [1] for a global view no, no plugin can add any property at any phase, sorry Regards, Hervé [1] http://maven.apache.org/ref/3.0.4/maven-model-builder/ Le dimanche 29 avril 2012 08:36:10 Anders Hammar a écrit : I think it is resolved even before the build lifecycle starts. /Anders On Sat, Apr 28, 2012 at 22:01, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I developed a plugin which creates an additional property during the validate phase and want to use it as part of the snapshotRepository/url. However the property is not resolved but the name of the property is inserted. I may access the calculated property and insert it into Could anybody tell me in which phase the urls in distributionManagement are resolved? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] extra-enforcer-rules version 1.0-alpha-3 Released
Hi, The Mojo team is pleased to announce the release of the extra-enforcer-rules version 1.0-alpha-3. Apache's Maven Enforcer Plugin is used to apply and enforce rules on your Maven projects. The Enforcer plugin ships with a set of standard rules The Mojo project hosts this project to provide extra rules which are not part of the standard rule set. http://mojo.codehaus.org/extra-enforcer-rules/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-enforcer-plugin/artifactId version1.0/version dependencies dependency groupIdorg.codehaus.mojo/groupId artifactIdextra-enforcer-rules/artifactId version1.0-alpha-3/version /dependency /dependencies /plugin Release Notes We solved 3 issues: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11062version=18267 ** New Feature * [MOJO-1799] - Add configuration option to define which dependency scopes to include in the check * [MOJO-1828] - New rule to check that a property in a project diverges from one given in an ancestor project. * [MOJO-1829] - New rules to check that certain roles are represented in a project. Enjoy, The Mojo team. Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to get an URL encoded version of a property?
Hello Jörg, thanks for your suggestion. Though I always feel a litte bit like cheating when using ant inside of Maven ;-) . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Apr 25, 2012 11:46 PM, Jörg Hohwiller jo...@j-hohwiller.de wrote: Hi Mirko, you do not have to write a plugin: http://ant-contrib.sourceforge.net/tasks/tasks/urlencode.html http://maven.apache.org/plugins/maven-antrun-plugin/ Cheers Jörg On 04/24/2012 08:09 PM, Mirko Friedenhagen wrote: Hello, Hi Mirko, say I want to reuse some POM or system property as parameter in another place in the POM but need it URL encoded. Does anyone know a Maven magic to achieve this? Programming a plugin to encode a given list of properties and provide them under a different name seems no biggy, but I would like to know if there are other, better or easier options :-D . I also do not know any other way, but I might be missing something (e.g. new features invented in m3). Compared to jelly hacking in m1 I prefer writing a plugin though... Regards Mirko Regards Jörg - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to get an URL encoded version of a property?
Hello, say I want to reuse some POM or system property as parameter in another place in the POM but need it URL encoded. Does anyone know a Maven magic to achieve this? Programming a plugin to encode a given list of properties and provide them under a different name seems no biggy, but I would like to know if there are other, better or easier options :-D . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/
Re: Groovy - RPM
There is a thread on http://stackoverflow.com/questions/449983/create-rpm-package-from-ant-script-under-windows. Unless you are on Windows youl use popen. I did this in Python a while back, which worked quit good even for extracting information as you may configure the output easily. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Apr 14, 2012 1:53 PM, Karl Heinz Marbaise khmarba...@gmx.de wrote: Hi there, i would like to know if there is someone who knows about a Groovy library which can read the contents (files, folders, permissions etc.) out of an RPM ? Or maybe a library which can create an rpm? Kind regards Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029 Hauptstrasse 177 USt.IdNr: DE191347579 52146 Würselen http://www.soebes.de --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven deploy plugin: altDeploymentRepository: snapshots OK?
On Wed, Mar 21, 2012 at 19:18, Laird Nelson ljnel...@gmail.com wrote: On Wed, Mar 21, 2012 at 2:10 PM, Olivier Lamy ol...@apache.org wrote: Use something like distributionManagement snapshotRepository id${distMgmtSnapshotsId}/id name${distMgmtSnapshotsName}/name url${distMgmtSnapshotsUrl}/url /snapshotRepository /distributionManagement properties distMgmtSnapshotsIdSnapshot Repository/distMgmtSnapshotsId distMgmtSnapshotsNameSnapshot Repository/distMgmtSnapshotsName distMgmtSnapshotsUrlhttp://host:port /repository/snapshots//distMgmtSnapshotsUrl /properties You have correct default values and you can override with -D ... Oh, DUH, yes, that would do it. Thanks! For completeness, are you saying that if I tried to simply specify the altDeploymentRepository with a SNAPSHOT deployment it would fail? No, when your version is a SNAPSHOT *and* your provide the correct syntax this should work: Given you have something like this in your pom: distributionManagement snapshotRepository idsonatype-nexus-snapshots/id urlhttps://oss.sonatype.org/content/repositories/snapshots//url /snapshotRepository repository idsonatype-nexus-staging/id urlhttps://oss.sonatype.org/service/local/staging/deploy/maven2//url /repository /distributionManagement I use: mvn -e clean install deploy -DaltDeploymentRepository=ui-snapshots::default::http://localhost:8081/artifactory/libs-snapshot-local/ to deploy SNAPSHOTs into a locally running artifactory instance. The id of your repository should be matched by the username/password entries in your $HOME/.m2/settings.xml. Regards Mirko Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Which is the BEST Approach to define Global POM.XML
We have a rule for this :-). Regards Mirko On Thu, Mar 15, 2012 at 11:04, Mark Derricutt m...@talios.com wrote: I'm almost tempted to write an enforcer plugin to block repository declarations from ANY pom. Corporate or project On Thu Mar 15 22:09:24 2012, Anders Hammar wrote: You should NOT declare repositories (or plugin repositories) in a corporate pom. That should be handled in settings.xml. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Antwort: RE: offline not truly offline?
One good reason to always use . Or to hope for 2032 ;-) . Regards Mirko -- Sent from my phone On Feb 29, 2012 5:02 PM, Matt Walsh mwa...@chartwelltechnology.com wrote: Or it that 1 year old. Always get those yy/mm/dd vs dd/mm/yy confused. :-( -Original Message- From: Matt Walsh Sent: Wednesday, February 29, 2012 8:56 AM To: Maven Users List Subject: RE: Antwort: RE: offline not truly offline? Nice. 4 years old. -Original Message- From: Thorsten Heit [mailto:thorsten.h...@vkb.de] Sent: Wednesday, February 29, 2012 2:35 AM To: Maven Users List Subject: Antwort: RE: offline not truly offline? Hi, From my experience with the archetype plugin, it appears to ignore your company proxies and mirrors and always and only goes to repo1 unless you tell it otherwise using -DarchetypeCatalog=http://your.company.repo/ or -DarchetypeCatalog=local I don't have a proxy, but I do have everything redirecting via a mirror to our Nexus repository and I still have to do the above to get it to find my archetypes. http://jira.codehaus.org/browse/ARCHETYPE-283 http://jira.codehaus.org/browse/ARCHETYPE-358 HTH Thorsten __ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Spring context dependency not found..
Hello Stephane, - m2e is an Eclipse-plugin, *not* a Maven-plugin. - The configuration element in the pluginManagement section of pom.xml is only used to store information for the Eclipse plugin, so the Eclipse plugin knows which goals of the various not supported Maven plugin should run (or not), see http://wiki.eclipse.org/M2E_plugin_execution_not_covered - If you want to get rid of the warnings when running Maven, you may find my hack at http://stackoverflow.com/questions/7905501/get-rid-of-pom-not-found-warning-for-org-eclipse-m2elifecycle-mapping/8741403#8741403. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Thu, Feb 2, 2012 at 15:16, Stephane-3 mittiprove...@yahoo.se wrote: I am using the m2e Maven plugin for Eclipse. And so I guess I cannot run the goal mvn eclipse:eclipse but should run the goal mvn eclipse:m2eclipse As I was running Maven 2.2.1 and m2e requires Maven 2.4 I updated Maven. I could not find any 2.4 version on the download website though. So I downloaded and installed Maven 3.0.4 and got it running. But wen doing the goal eclipse:m2eclipse I get the following error: [ERROR] Could not find goal 'm2eclipse' in plugin org.apache.maven.plugins:maven-eclipse-plugin:2.8 among available goals to-maven, add-maven-repo, myeclipse-clean, configure-workspace, help, rad-clean, install-plugins, eclipse, myeclipse, rad, clean, remove-cache, make-artifacts - [Help 1] org.apache.maven.plugin.MojoNotFoundException: Could not find goal 'm2eclipse' in plugin org.apache.maven.plugins:maven-eclipse-plugin:2.8 among available goals to-maven, add-maven-repo, myeclipse-clean, configure-workspace, help, rad-clean, install-plugins, eclipse, myeclipse, rad, clean, remove-cache, make-artifacts at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:267) at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185) at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:235) at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:106) at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:86) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:98) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) -- View this message in context: http://maven.40175.n5.nabble.com/Spring-context-dependency-not-found-tp5444070p5450809.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: M2-Job: mvn clean install site chicken egg problem for multi-module project
Hello Stephen, @jenkins-users: Thanks for your answer. I tried that, unfortunately it will not work for M2-jobs but only for the Maven-Step of a freestyle project. @maven-users: However, the problem in this project now seems to be solved by updating maven-javadoc-plugin to the just released 2.8.1 :-) Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Jan 25, 2012 at 00:36, Stephen Connolly stephen.alan.conno...@gmail.com wrote: Try pipe. I think a long time ago i added support for pipe - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On Jan 24, 2012 8:40 p.m., Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello everybody, for a fresh multi-module maven project, invoking clean install site will not suceed, as site in the parent will fail due to missing javadoc parts from the modules, see: http://huschteguzzel.de/hudson/job/testlink-junit/14/console (the project may be found at https://github.com/1and1/testlink-junit/) --- snip --- mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project tljunit-parent: failed to get report for org.apache.maven.plugins:maven-javadoc-plugin cause : failed to get report for org.apache.maven.plugins:maven-javadoc-plugin Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project tljunit-parent: failed to get report for org.apache.maven.plugins:maven-javadoc-plugin at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) --- snap --- I have to: - execute clean install once and change it back to clean install site or - execute clean install in the M2 configuration and add a Maven Post Step site (this however will of course not show up in the Executed Mojo section. With a freestyle project this is not a biggy as I could just configure two Maven steps. This is of course consistent with the execution on command line, when the project was never installed before: mvn clean install site will fail and I have to fall back to something like: mvn clean install ; mvn site I think with CruiseControl invoking multiple, serial executions of Maven were available by separating the phases by a pipe (|) symbol. Does anyone know a solution for this chicken egg problem in Jenkins (or on the command line)? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
M2-Job: mvn clean install site chicken egg problem for multi-module project
Hello everybody, for a fresh multi-module maven project, invoking clean install site will not suceed, as site in the parent will fail due to missing javadoc parts from the modules, see: http://huschteguzzel.de/hudson/job/testlink-junit/14/console (the project may be found at https://github.com/1and1/testlink-junit/) --- snip --- mavenExecutionResult exceptions not empty message : Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project tljunit-parent: failed to get report for org.apache.maven.plugins:maven-javadoc-plugin cause : failed to get report for org.apache.maven.plugins:maven-javadoc-plugin Stack trace : org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.0:site (default-site) on project tljunit-parent: failed to get report for org.apache.maven.plugins:maven-javadoc-plugin at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) --- snap --- I have to: - execute clean install once and change it back to clean install site or - execute clean install in the M2 configuration and add a Maven Post Step site (this however will of course not show up in the Executed Mojo section. With a freestyle project this is not a biggy as I could just configure two Maven steps. This is of course consistent with the execution on command line, when the project was never installed before: mvn clean install site will fail and I have to fall back to something like: mvn clean install ; mvn site I think with CruiseControl invoking multiple, serial executions of Maven were available by separating the phases by a pipe (|) symbol. Does anyone know a solution for this chicken egg problem in Jenkins (or on the command line)? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-metadata.xml : release vs. latest
Hello, what is the difference between these two tags? Say I deploy two versions 1.1 and 1.2 in this order. What should I expect for release and latest? My expectation would be to see 1.2 for both. Say I deploy 1.2 and later on 1.1. Now my expectation would be 1.2 for latest and 1.1 for release. Do plugins like the versions-maven-plugin or requests for LATEST in e.g. Nexus read this information or do they use the natural order (1.2 1.1) for getting latest? Could someone please shed a light :-D . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/
Re: maven-metadata.xml : release vs. latest
OK, thanks for the answer. And what about the plugins-section in org/apache/maven/plugins/maven-metadata.xml? Deprecated as well? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Jan 17, 2012 11:39 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: 1. Both of these tags are deprecated because they are a load of crap and useless. 2. Here is what they mean: LATEST = The most recently deployed version RELEASE = The most recently deployed non -SNAPSHOT version Crappy aren't they! 3. Versions-maven-plugin does not pay any heed to those two tags 4. Maven 3.x does not pay any heed to those tags 5. They were meant for plugins only not regular dependencies. -Stephen On 17 January 2012 22:31, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, what is the difference between these two tags? Say I deploy two versions 1.1 and 1.2 in this order. What should I expect for release and latest? My expectation would be to see 1.2 for both. Say I deploy 1.2 and later on 1.1. Now my expectation would be 1.2 for latest and 1.1 for release. Do plugins like the versions-maven-plugin or requests for LATEST in e.g. Nexus read this information or do they use the natural order (1.2 1.1) for getting latest? Could someone please shed a light :-D . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: releasing a multi-modult project
Just guessing: One important thing: the branch given in //project/scm/connection *must* match the checked out workspace. So using Subversion when development happens in trunk and you have a release branch, you have to specify the release branch in the pom. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Jan 11, 2012 6:42 PM, Greg Babcock greg.babc...@testadvantagesoftware.com wrote: Thank you Stephen, The aggregator root is the project being that succeeds. I was suspicious about release:prepare because release:perform is failing with an error message that it can't find the pom for the aggregator root in target directory. The target directory is not getting created by release:perform which made me suspicious that it wasn't really passing. Does anyone have any sugestions for resolving the issue with the missing pom file. -Greg -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: Wednesday, January 11, 2012 3:27 AM To: Maven Users List Subject: Re: releasing a multi-modult project assuming that the project that succeeds is the aggregator root, everything is fine. prepare runs on the aggregator root and tags from that root. just run perform and it will check out all the modules and release them. if it is not the aggregator root, you may have to release each scm root separately. - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 11 Jan 2012 00:02, Greg Babcock greg.babc...@testadvantagesoftware.com wrote: I inherited a multi-module project from someone that is no-longer with the company. I have Maven experience, but not with multi-module projects. Release prepare is succeeding for the first module, and is skipping the remainder of the modules. How do I get release prepare to prepare all modules? NFO] -- -- [INFO] Reactor Summary: [INFO] [INFO] Production . SUCCESS [13.131s] [INFO] Hibernate Service .. SKIPPED [INFO] Production Commons . SKIPPED [INFO] Host Adapter ... SKIPPED [INFO] Web Service Host .. SKIPPED [INFO] Web Service Client SKIPPED [INFO] File Host Adapter Service .. SKIPPED [INFO] HostAdapterService SKIPPED [INFO] Socket Host Adapter Service SKIPPED [INFO] Engineering Client Service SKIPPED [INFO] Standard Service ... SKIPPED [INFO] High Availability Service .. SKIPPED [INFO] Production Web Application . SKIPPED [INFO] Step One ... SKIPPED [INFO] Production Utilities ... SKIPPED [INFO] Production License Creator . SKIPPED [INFO] Configuration Service .. SKIPPED [INFO] -- -- [INFO] BUILD SUCCESS [INFO] -- -- [INFO] Total time: 13.917s [INFO] Finished at: Tue Jan 10 17:51:03 EST 2012 [INFO] Final Memory: 5M/15M Thanks, GB - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven-release-plugin: using git where do I see the tag used to build the release in the pom?
I had a look :-D . The class code boils down to executing 'git tag -F messageFile' AFAICS. So there is no sign in a released POM how the tagname was. Would it be an useful enhancement to put either the hash or the tagname into the POM? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Dec 17, 2011 9:16 PM, Robert Scholte rfscho...@codehaus.org wrote: Hi Mirko, Did you have a look at the related code? http://maven.apache.org/scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/xref/org/apache/maven/scm/provider/git/gitexe/command/tag/GitTagCommand.html -Robert From: mfriedenha...@gmail.com Date: Sat, 17 Dec 2011 20:51:02 +0100 Subject: Re: maven-release-plugin: using git where do I see the tag used to build the release in the pom? To: users@maven.apache.org No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine because now I know which revision to checkout for building the release. With git there is no such possibility to realize this with rewriting the URL AFAIK. So I would have expected however, that maybe the tag element would be updated to reflect the fact, that the pom is the one of release, either to the symbolic name myproject-1.0 or to the hash of the tag. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: maven-release-plugin: using git where do I see the tag used to build the release in the pom?
OK, I will open an issue in the SCM plugin and give it a try :-D . Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Dec 18, 2011 11:14 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: yes - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 18 Dec 2011 17:41, Mirko Friedenhagen mfriedenha...@gmail.com wrote: I had a look :-D . The class code boils down to executing 'git tag -F messageFile' AFAICS. So there is no sign in a released POM how the tagname was. Would it be an useful enhancement to put either the hash or the tagname into the POM? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Dec 17, 2011 9:16 PM, Robert Scholte rfscho...@codehaus.org wrote: Hi Mirko, Did you have a look at the related code? http://maven.apache.org/scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/xref/org/apache/maven/scm/provider/git/gitexe/command/tag/GitTagCommand.html -Robert From: mfriedenha...@gmail.com Date: Sat, 17 Dec 2011 20:51:02 +0100 Subject: Re: maven-release-plugin: using git where do I see the tag used to build the release in the pom? To: users@maven.apache.org No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine because now I know which revision to checkout for building the release. With git there is no such possibility to realize this with rewriting the URL AFAIK. So I would have expected however, that maybe the tag element would be updated to reflect the fact, that the pom is the one of release, either to the symbolic name myproject-1.0 or to the hash of the tag. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven-release-plugin: using git where do I see the tag used to build the release in the pom?
No comments on this? How would a scm:bootstrap know which tag to build with git? Regards Mirko On Fri, Dec 16, 2011 at 22:58, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine because now I know which revision to checkout for building the release. With git there is no such possibility to realize this with rewriting the URL AFAIK. So I would have expected however, that maybe the tag element would be updated to reflect the fact, that the pom is the one of release, either to the symbolic name myproject-1.0 or to the hash of the tag. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-release-plugin: using git where do I see the tag used to build the release in the pom?
Hello, I know that with SVN the developerConnection and connection are updated to the real URL, that is when I invoke release:prepare with a URL like: https://SVNSERVER/svn/REPO/myproject/branches/release it will be replaced by https://SVNSERVER/svn/REPO/myproject/tags/myproject-1.0 which is fine because now I know which revision to checkout for building the release. With git there is no such possibility to realize this with rewriting the URL AFAIK. So I would have expected however, that maybe the tag element would be updated to reflect the fact, that the pom is the one of release, either to the symbolic name myproject-1.0 or to the hash of the tag. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-enforcer-plugin: requireProperty example with wrong regex for project.version?
Hello, I followed the instructions from http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html and put the example configuration into my pom: requireProperty propertyproject.version/property messageProject version must be specified./message regex(\d|-SNAPSHOT)$/regex regexMessageProject version must end in a number or -SNAPSHOT./regexMessage /requireProperty My project.version does end in -SNAPSHOT, however Maven keeps complaining: [DEBUG] Executing rule: org.apache.maven.plugins.enforcer.RequireProperty [DEBUG] Adding failure due to exception org.apache.maven.enforcer.rule.api.EnforcerRuleException: Project version must end in a number or -SNAPSHOT. at org.apache.maven.plugins.enforcer.RequireProperty.execute(RequireProperty.java:81) Looking at http://svn.apache.org/viewvc/maven/enforcer/tags/1.0.1/enforcer-rules/src/main/java/org/apache/maven/plugins/enforcer/RequireProperty.java?view=markup the rule uses String.matches in line 73. Changing to regex.*(\d|-SNAPSHOT)$/regex does succeed, so probabyl only the example is wrong. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
versions-maven-plugin: specfify to update only dependencies from a special, inhouse repository only
Hello, I would like to update the versions in the dependencyManagement section for our inhouse artifacts only, which are specified in our global parent pom. Is there a way to specify dependencies by groupId:artifactId which should (or should not) be updated automatically? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: versions-maven-plugin: specfify to update only dependencies from a special, inhouse repository only
I found the answer, should have looked at http://mojo.codehaus.org/versions-maven-plugin/examples/advancing-dependency-versions.html beforehand :-). Sorry for the noise. Regards Mirko On Thu, Dec 8, 2011 at 21:24, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I would like to update the versions in the dependencyManagement section for our inhouse artifacts only, which are specified in our global parent pom. Is there a way to specify dependencies by groupId:artifactId which should (or should not) be updated automatically? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Vote started for Apache Maven 3.0.4 (take 2)
Hello Olivier, I used the new 3.0.4 on a few projects and it seems to work fine. However the images at new ref page at http://maven.apache.org/ref/3.0.4/ are to big for my 1280x800 resolution in Chrome as they are spread on two rows, which makes me scroll a lot. Really like the new fluido-skin, though. Regards Mirko On Thu, Dec 1, 2011 at 10:23, Olivier Lamy ol...@apache.org wrote: Hello, FYI, a second vote has started for Apache Maven 3.0.4 see http://markmail.org/message/beso4bgthzk3i5ul Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: ANN: h2-maven-plugin 1.0
Nice, well documented plugin. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Nov 29, 2011 11:14 PM, Laird Nelson ljnel...@gmail.com wrote: My apologies if this is not the appropriate kind of list for this sort of thing, but I thought that other Maven users might be interested in my h2-maven-plugin: https://github.com/ljnelson/h2-maven-plugin. I asked on IRC if there was a better list but got no replies. Anyway, it should be available in Central shortly; feedback is welcome and encouraged. Thanks, Laird -- http://about.me/lairdnelson
Re: Vote started for Apache Maven 3.0.4
Hello, am I right: this version is withdrawn? I saw something about md5-hashes not being calculated, however with snapshots this seems to work. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Nov 25, 2011 at 10:22, Olivier Lamy ol...@apache.org wrote: Hello, For your information, a vote has started in order to release Apache Maven 3.0.4. The vote thread is available here: http://markmail.org/message/fpc6n2o72t4jcjar Feel free to test this candidate release and give us any feedback, Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Vote started for Apache Maven 3.0.4
BTW: What is the reason, why the vote is started in the surefire-dev list? Regards Mirko On Wed, Nov 30, 2011 at 20:32, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, am I right: this version is withdrawn? I saw something about md5-hashes not being calculated, however with snapshots this seems to work. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Nov 25, 2011 at 10:22, Olivier Lamy ol...@apache.org wrote: Hello, For your information, a vote has started in order to release Apache Maven 3.0.4. The vote thread is available here: http://markmail.org/message/fpc6n2o72t4jcjar Feel free to test this candidate release and give us any feedback, Thanks, -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.
I did not see immediately a solution how to do this. Would you shed the light :-)? Regards Mirko On Tue, Nov 29, 2011 at 09:38, Anders Hammar and...@hammar.net wrote: I believe that might have been a change in v2.8. It can be fixed by specifying that only the 'checkstyle' report should be used. /Anders On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find two reports for checkstyle: http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues) and http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html (423 issues) The latter one is (almost) duplicating the number of the checkstyle issues in the report. The POM might be found at https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml Any hints what is going wrong? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: checkstyle-plugin 2.8 aggregated duplicates number of issues.
Thanks Olivier, I now use `checkstyle` as reportSet in my non-module projects. I created a bug report at http://jira.codehaus.org/browse/MCHECKSTYLE-167 as I think it is unexpected, that I have to configure a reportSet at all for a non-module project and the number of reported issues in the aggregate report is wrong as well. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Tue, Nov 29, 2011 at 21:11, Olivier Lamy ol...@apache.org wrote: If you do reporting plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.8/version /plugin ... /plugins /reporting Maven will execute all mojos of type Report If you want only the aggregate one reporting plugins . plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-checkstyle-plugin/artifactId version2.8/version inheritedfalse/inherited reportSets reportSet reports reportcheckstyle-aggregate/report /reports /reportSet /reportSets /plugin ... /plugins /reporting HTH 2011/11/29 Mirko Friedenhagen mfriedenha...@gmail.com: I did not see immediately a solution how to do this. Would you shed the light :-)? Regards Mirko On Tue, Nov 29, 2011 at 09:38, Anders Hammar and...@hammar.net wrote: I believe that might have been a change in v2.8. It can be fixed by specifying that only the 'checkstyle' report should be used. /Anders On Mon, Nov 28, 2011 at 20:50, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find two reports for checkstyle: http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues) and http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html (423 issues) The latter one is (almost) duplicating the number of the checkstyle issues in the report. The POM might be found at https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml Any hints what is going wrong? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
checkstyle-plugin 2.8 aggregated duplicates number of issues.
Hello, I upgraded my maven-checkstyle-plugin from 2.6 to 2.8 and now a find two reports for checkstyle: http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle.html (213 issues) and http://huschteguzzel.de/hudson/job/HgKit/site/checkstyle-aggregate.html (423 issues) The latter one is (almost) duplicating the number of the checkstyle issues in the report. The POM might be found at https://bitbucket.org/mfriedenhagen/hgkit/src/06f53759650a/pom.xml Any hints what is going wrong? Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org