Re: Release plugin when POM is not in root directory
You could try to add -Darguments=-DpomFile= as these are those used by release:perform AFAIK. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Nov 2, 2011 7:46 PM, Jim Cook nab...@visualxs.com wrote: I have found some addiitonal examples of people having this trouble, but no real solutions yet. http://stackoverflow.com/questions/5558785/maven-release-plugin-git-and-the-poms-not-at-the-top http://maven-users.828.n2.nabble.com/release-perform-with-pom-xml-in-relative-path-of-SCM-repository-td6340959.html I have tried specifying the name of my POM file using -DpomFileName=Development/pom.xml, but no success. It doesn't even seem that release:perform is even acknowledging this setting. If I was using SVN as my scm, I could specify the /Development directory as my checkout source. This would result in the pom.xml appearing in the root. However, I use git which I don't think I can specify a subdirectory in my git project for checkout. At least not using the SCM configuration in Maven. -- View this message in context: http://maven.40175.n5.nabble.com/Release-plugin-when-POM-is-not-in-root-directory-tp4956364p4958980.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
How to execute the maven-deploy-plugin:deploy-file from within a Java program
Hello, I want to execute deploy:deploy-file from within a Java program. While I know I could try to go way of using ProcessBuilder I want to have a bit more control over the process and be able to easily catch any errors during invocation. maven-embedder seems not to be the way to go here. 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 execute the maven-deploy-plugin:deploy-file from within a Java program
Thanks, that was very helpful :-). Regards Mirko On Sat, Oct 29, 2011 at 22:10, Robert Scholte rfscho...@codehaus.org wrote: Sounds like you want the Maven Invoker: http://maven.apache.org/shared/maven-invoker/ -Robert Date: Sat, 29 Oct 2011 22:05:58 +0200 Subject: How to execute the maven-deploy-plugin:deploy-file from within a Java program From: mfriedenha...@gmail.com To: users@maven.apache.org Hello, I want to execute deploy:deploy-file from within a Java program. While I know I could try to go way of using ProcessBuilder I want to have a bit more control over the process and be able to easily catch any errors during invocation. maven-embedder seems not to be the way to go here. 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
maven-repository-plugin: Automatically create bundle and deploy it to repository as well
Hello, I want to create and deploy the bundle for my artifacts. Right now I have this in my pom: plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-repository-plugin/artifactId /plugin /plugins All plugins are attached to the package phase. However I have encountered two problems: 1) The repository plugin keeps asking me which jars to bundle and I have to enter 0 (I may avoid this by running Maven in batch mode, so this seems to be no biggy). 2) However the bundle.jar is not uploaded to my repository. I tried putting: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId version2.7/version executions execution iddeploy-bundle/id phasedeploy/phase configuration files filebundle/file /files /configuration /execution /executions /plugin /plugins /pluginManagement but the bundle is not deployed. 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: maven-repository-plugin: Automatically create bundle and deploy it to repository as well
Hello, I now got a solution via the build-helper-plugin: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-repository-plugin/artifactId version2.3.1/version executions execution idattach-bundle/id phasepackage/phase goals goalbundle-create/goal /goals /execution /executions /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdbuild-helper-maven-plugin/artifactId version1.7/version executions execution idattach-artifacts-bundle/id phasepackage/phase goals goalattach-artifact/goal /goals configuration artifacts artifact file${project.build.directory}/${project.artifactId}-${project.version}-bundle.jar/file typejar/type classifierbundle/classifier /artifact /artifacts /configuration /execution /executions /plugin Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Tue, Oct 25, 2011 at 20:51, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I want to create and deploy the bundle for my artifacts. Right now I have this in my pom: plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-javadoc-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-repository-plugin/artifactId /plugin /plugins All plugins are attached to the package phase. However I have encountered two problems: 1) The repository plugin keeps asking me which jars to bundle and I have to enter 0 (I may avoid this by running Maven in batch mode, so this seems to be no biggy). 2) However the bundle.jar is not uploaded to my repository. I tried putting: pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-deploy-plugin/artifactId version2.7/version executions execution iddeploy-bundle/id phasedeploy/phase configuration files filebundle/file /files /configuration /execution /executions /plugin /plugins /pluginManagement but the bundle is not deployed. 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: Multi modules and profiles
Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Oct 8, 2011 10:43 AM, Stephane-3 mittiprove...@yahoo.se wrote: Hi Wayne, Sorry I missed the post update.. So, to answer your question, what am I trying to achieve here ? I have this project which originally has one child module, called the core module. This core module takes care of the Dao layer. And the setup for the dependencies are inherited from the parent module. That means I have Dao related dependencies listed in the parent module. Now, I need to have another view module, for the client side of the application. This view module should not be bothered by any Dao related dependencies. So my idea was to move all these Dao related dependencies from the parent module into the core child module, so that the view child module would not have to bother with them. By maybe there is a better way to go about this issue of separating dependencies concerns by modules.. -- View this message in context: http://maven.40175.n5.nabble.com/Multi-modules-and-profiles-tp4732786p4882403.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: Multi modules and profiles
Stephane I mostly never define dependencies directly in the parent pom but have a dependencyManagement section so versions will not differ between modules. Same goes for plugins and pluginManagement. Maybe you could add something like junit in test scope directly to the parent's dependencies. I think seperation of declaring the version in the parent and including a dependency in the modules is the way to go. Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Oct 8, 2011 10:43 AM, Stephane-3 mittiprove...@yahoo.se wrote:
Enhancing testcase elements in surefire xml reports with custom attributes specified by annotations?
Hello, we use Testlink for describing testcases, some of which are run as automatic tests using junit. Now to easily match junit tests to Testlink IDs I thought about adding an annotation like: @TestlinkID(12345) to tests run, which should result in something like: testcase time=0.001 classname=CLASSNAME name=testFromString[0] testlinkid=12345/ Right now we use an approach of suffixing out method names with the testlink ID and afterwards parse the results, which feels kind of clumsy. Looking into org.apache.maven.surefire.report.XMLReporter there seems no easy way to extend the reporter to include additional information like this. Any suggestions? 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: Http(s) transport layer change (call for early adopters users)
I did download the shaded jar, copied it to $M2_HOME/lib/ext and ran about 20 jobs without problem. I had deleted my localRepository beforehand. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Mon, Oct 3, 2011 at 10:24, Olivier Lamy ol...@apache.org wrote: Hello, In the current maven core dev trunk, we have recently replace the http(s) transport layer from lightweight wagon (based on default jdk http(s) mechanism) to the wagon http module based on Apache httpclient [1]. This change include two improvements: * connection pool mechanism (to avoid http(s) connection recreation for each artifacts download). * preemptive authz mechanism which will prevent uploading artifacts twice. As it's important change in the core distribution, we like to have some feedbacks from users a SNAPSHOT distribution (based on rev 1178324) is available here : http://people.apache.org/~olamy/core/maven-3-r1178324/ mvn -v display: Apache Maven 3.0.4-SNAPSHOT (r1178324; 2011-10-03 10:07:26+0200) An other way to test it with maven3 is to download the shaded jar [1] and copy it in $M2_HOME/lib/ext. Feel free to test it and report any issues you will have with this new default http(s) transport layer. Thanks in advance for your testing time! -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy [1] http://hc.apache.org/httpcomponents-client-ga/index.html [2] http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http/2.0/wagon-http-2.0-shaded.jar - 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: Accessing profiles via system properties etc.
Really no one? I would appreciate a negative answer as well ;-) . On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? I want to activate logging to Lilith in a Maven profile. Adding the required dependency is no problem, but for adding the appended conditionally seems not to be possible. Are the activated profile names exposed? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/
Re: Accessing profiles via system properties etc.
Well, I will try. I use slf4j for logging. I normally log using logback to stderrr. When de.huxhorn.lilith.logback.appender.multiplex-classic is available, I want to log to Lilith (http://lilith.huxhorn.de/), a graphical logviewer. I think the relevant parts are: !-- logging -- dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.6.1/version /dependency profile idlilith/id dependencies dependency· groupIdde.huxhorn.lilith/groupId· artifactIdde.huxhorn.lilith.logback.appender.multiplex-classic/artifactId· version0.9.41/version· scopetest/scope· /dependency /dependencies /profile And in my logback-test.xml I have: if condition='property(maven.profile).contains(lilith)' appender name=multiplex class=de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender Compressingtrue/Compressing !-- will automatically use correct default port -- !-- Default port for compressed is 1 and uncompressed 10001 -- ReconnectionDelay1/ReconnectionDelay IncludeCallerDatatrue/IncludeCallerData RemoteHostslocalhost/RemoteHosts /appender /if I think I could workaround this by specify a system property -Dlogback.configurationFile=src/test/resources/logback-with-lilith.xml in the surefire plugin but just wanted to know if there is an easier way to do this. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Sat, Sep 17, 2011 at 16:20, Martin Gainty mgai...@hotmail.com wrote: Mirko- Profiles allow or restrict what is visible to the project hierarchy ... *usually* based on current environment conditions For example developing in Scandanavia you may allow greater access to properties than you would say when you are running demonstrations in the US can you provide an brief example of the profiles you are implementing in a comprehensive pom.xml so we may suggest an appropriate solution? Takk, Martin __ do not alter or disrupt this transmission. Date: Sat, 17 Sep 2011 16:04:14 +0200 Subject: Re: Accessing profiles via system properties etc. From: mfriedenha...@gmail.com To: users@maven.apache.org Really no one? I would appreciate a negative answer as well ;-) . On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? I want to activate logging to Lilith in a Maven profile. Adding the required dependency is no problem, but for adding the appended conditionally seems not to be possible. Are the activated profile names exposed? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Accessing profiles via system properties etc.
I just implemented the solution with the system property for the location of the logfile (https://github.com/mfriedenhagen/sardine/commit/74f2736bce4bb7d599ab9cf003135b1212c77ea6). Still interested in better solutions, though :-). Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Sat, Sep 17, 2011 at 21:16, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Well, I will try. I use slf4j for logging. I normally log using logback to stderrr. When de.huxhorn.lilith.logback.appender.multiplex-classic is available, I want to log to Lilith (http://lilith.huxhorn.de/), a graphical logviewer. I think the relevant parts are: !-- logging -- dependency groupIdorg.slf4j/groupId artifactIdslf4j-api/artifactId version1.6.1/version /dependency profile idlilith/id dependencies dependency· groupIdde.huxhorn.lilith/groupId· artifactIdde.huxhorn.lilith.logback.appender.multiplex-classic/artifactId· version0.9.41/version· scopetest/scope· /dependency /dependencies /profile And in my logback-test.xml I have: if condition='property(maven.profile).contains(lilith)' appender name=multiplex class=de.huxhorn.lilith.logback.appender.ClassicMultiplexSocketAppender Compressingtrue/Compressing !-- will automatically use correct default port -- !-- Default port for compressed is 1 and uncompressed 10001 -- ReconnectionDelay1/ReconnectionDelay IncludeCallerDatatrue/IncludeCallerData RemoteHostslocalhost/RemoteHosts /appender /if I think I could workaround this by specify a system property -Dlogback.configurationFile=src/test/resources/logback-with-lilith.xml in the surefire plugin but just wanted to know if there is an easier way to do this. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Sat, Sep 17, 2011 at 16:20, Martin Gainty mgai...@hotmail.com wrote: Mirko- Profiles allow or restrict what is visible to the project hierarchy ... *usually* based on current environment conditions For example developing in Scandanavia you may allow greater access to properties than you would say when you are running demonstrations in the US can you provide an brief example of the profiles you are implementing in a comprehensive pom.xml so we may suggest an appropriate solution? Takk, Martin __ do not alter or disrupt this transmission. Date: Sat, 17 Sep 2011 16:04:14 +0200 Subject: Re: Accessing profiles via system properties etc. From: mfriedenha...@gmail.com To: users@maven.apache.org Really no one? I would appreciate a negative answer as well ;-) . On Sep 14, 2011 10:11 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? I want to activate logging to Lilith in a Maven profile. Adding the required dependency is no problem, but for adding the appended conditionally seems not to be possible. Are the activated profile names exposed? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Accessing profiles via system properties etc.
Hello, is there a possibility of accessing the activated Maven profile names during test runs programmatically or in configuration files? I want to activate logging to Lilith in a Maven profile. Adding the required dependency is no problem, but for adding the appended conditionally seems not to be possible. Are the activated profile names exposed? Regards Mirko -- Sent from my phone http://illegalstateexception.blogspot.com http://github.com/mfriedenhagen/
Re: Does release:stage work? What are id and layout in alternative repository specification ?
Take a look at the output of mvn help:effective-pom and http://maven.apache.org/pom.html#Distribution_Management You should use something like mvn -DstagingRepository=ID_OF_THE_RELEASE_REPO_DEFINED_IN_DISTRIBUTION_MANAGEMENT::default::http://internal-mvn-server.mycompany.net/repositories/our.staging.area release:stage Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Sep 9, 2011 at 20:52, Teruhiko Kurosaka k...@basistech.com wrote: Has anyone successfully used release:stage? I'm assuming that release:stage should be used after release:prepare, in place of release:perform. I tried using it like this: mvn -DstagingRepository=http://internal-mvn-server.mycompany.net/repositories/o ur.staging.area release:stage But maven says: [INFO] Invalid syntax for repository. [INFO] [INFO] Invalid syntax for alternative repository. Use id::layout::url. What id and layout, is it talking about? How does the correct repository specification look like? T. Kuro Kurosaka - 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: Does release:stage work? What are id and layout in alternative repository specification ?
AFAIK you overwrite your regular release repository with this. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Sep 9, 2011 at 21:29, Teruhiko Kurosaka k...@basistech.com wrote: Thank you, Mirko, for your response. The output from help:effective-pom doesn't include staging. We don't have repo ids for the staging repository in any of POMs or settings.xml. I thought that is why we specify -DstagingRepository on the command line. Do I need to pre-set the staging repo information in either POM or settings.xml ? On 9/9/11 12:18 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Take a look at the output of mvn help:effective-pom and http://maven.apache.org/pom.html#Distribution_Management You should use something like mvn -DstagingRepository=ID_OF_THE_RELEASE_REPO_DEFINED_IN_DISTRIBUTION_MANAGEM ENT::default::http://internal-mvn-server.mycompany.net/repositories/our.st aging.area release:stage Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Fri, Sep 9, 2011 at 20:52, Teruhiko Kurosaka k...@basistech.com wrote: Has anyone successfully used release:stage? I'm assuming that release:stage should be used after release:prepare, in place of release:perform. I tried using it like this: mvn -DstagingRepository=http://internal-mvn-server.mycompany.net/repositories /o ur.staging.area release:stage But maven says: [INFO] Invalid syntax for repository. [INFO] [INFO] Invalid syntax for alternative repository. Use id::layout::url. What id and layout, is it talking about? How does the correct repository specification look like? T. Kuro Kurosaka - 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: Determine what depends on artifact?
We have a plugin which writes a description of dependencies into a NFS share after a successful build in our Jenkins instance and an aggregation job which will report this once per day. I will see wether we may open source this. Regards Mirko -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ On Wed, Aug 31, 2011 at 19:59, Brown, Alex abr...@barclaycardus.com wrote: Agreed, none do it though to my knowledge (Was looking to see if someone knew of one I did not know about), perhaps there is no such tool. Perhaps I'll make one. Thanks! -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Wednesday, August 31, 2011 11:52 AM To: Maven Users List Subject: Re: Determine what depends on artifact? I am a Maven 3 user and I am looking for a tool that allows me to easily see the dependencies that an artifact has (dependency:tree) as well as what depends on it (??). This second element is apparently more difficult with the tools I have seen. I made a little tool to get this in xml form, but would love to see a more robust solution. I don't see this as a function of Maven itself. Instead, I see it as a function of a Maven Repo Manager like Nexus, Artifactory, Archiva et al. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org Barclays www.barclaycardus.com This e-mail and any files transmitted with it may contain confidential and/or proprietary information. It is intended solely for the use of the individual or entity who is the intended recipient. Unauthorized use of this information is prohibited. If you have received this in error, please contact the sender by replying to this message and delete this material from any system it may be on. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Error with maven-project-info-reports-plugin
Hello Alexander, maybe you are not allowed to write into the specified directory? Regards Mirko On Aug 3, 2011 10:02 AM, Alexander Vaysberg w...@vaisberg.de wrote:
Maven3: Best way to include dependencies not available from a maven repository (jython, jruby)
Hello there, jython and jruby do not seem to be accessible from a repository. I am inspecting a patch for a jenkins plugin and always get these warnings: [mirko@borg email-ext-plugin]$ mvn3 clean package 21 | tee log [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.jenkins-ci.plugins:email-ext:hpi:2.15-SNAPSHOT [WARNING] 'dependencies.dependency.systemPath' for org.python:jython-standalone:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/jython-standalone-2.5.2.jar will be unresolvable by dependent projects @ line 97, column 14 [WARNING] 'dependencies.dependency.systemPath' for org.ruby:jruby-complete:jar should not point at files within the project directory, ${basedir}/src/main/webapp/WEB-INF/lib/jruby-complete-1.6.0.jar will be unresolvable by dependent projects @ line 106, column 19 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. The complete URL is available at https://github.com/slide/email-ext-plugin/blob/3ea0063611a2396b163ddded421a9299758d477c/pom.xml What are the recommendations for this usecase? 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
Aggregating cobertura reports in a multi module build with Maven 3.0.3
Hello, I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's reports to be aggregated in a multi-module build What am I doing wrong? Looking at http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java it seems to me, that the cobertura goal should be invoked during the test phase. Right now, when I invoke mvn clean install site IMO this goal should be invoked automatically. But I do not see the html or xml report in the modules. The output of mvn clean install site may be found at http://pastebin.com/MrvWefeV, the source code for this was: https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d Thanks for your answers A confused 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: Aggregating cobertura reports in a multi module build with Maven 3.0.3
I tried this as well (had a look in the integration test). I now put the report plugins into the reportPlugins-Element as suggested in https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration and enabled aggregation in a seperate section for the corbertura plugin as well, see: https://github.com/mfriedenhagen/multi-module-sample/commit/fd784cfdb1d4c7543e298b1bc7d22a7718a234d8, the output from this may be seen at: http://pastebin.com/raw.php?i=YE0DcfKk. What is strange IMO: - generation of the cobertura report is skipped and in the project-reports.html of the modules I see: a href=index.html title=Cobertura Test CoverageCobertura Test Coverage/a So the cobertura/ part seems to be missing. Regards Mirko On Thu, Apr 21, 2011 at 22:20, Benson Margulies bimargul...@gmail.com wrote: From the integration test, I see this in the top-level pom. build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.5/version configuration aggregatetrue/aggregate /configuration /plugin /plugins /build On Thu, Apr 21, 2011 at 3:58 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's reports to be aggregated in a multi-module build What am I doing wrong? Looking at http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java it seems to me, that the cobertura goal should be invoked during the test phase. Right now, when I invoke mvn clean install site IMO this goal should be invoked automatically. But I do not see the html or xml report in the modules. The output of mvn clean install site may be found at http://pastebin.com/MrvWefeV, the source code for this was: https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d Thanks for your answers A confused 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 -- 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: Aggregating cobertura reports in a multi module build with Maven 3.0.3
BTW: when invoking mvn clean install cobertura:cobertura site I do see the aggregated report in the workspace (http://huschteguzzel.de/hudson/job/test-multimodule/ws/target/site/cobertura/index.html or http://huschteguzzel.de/hudson/job/test-multimodule/ws/core/target/site/cobertura/index.html), however site will not pick this up correctly. Regards Mirko On Thu, Apr 21, 2011 at 22:38, Mirko Friedenhagen mfriedenha...@gmail.com wrote: I tried this as well (had a look in the integration test). I now put the report plugins into the reportPlugins-Element as suggested in https://cwiki.apache.org/MAVEN/maven-3x-and-site-plugin.html#Maven3.xandsiteplugin-NewConfiguration and enabled aggregation in a seperate section for the corbertura plugin as well, see: https://github.com/mfriedenhagen/multi-module-sample/commit/fd784cfdb1d4c7543e298b1bc7d22a7718a234d8, the output from this may be seen at: http://pastebin.com/raw.php?i=YE0DcfKk. What is strange IMO: - generation of the cobertura report is skipped and in the project-reports.html of the modules I see: a href=index.html title=Cobertura Test CoverageCobertura Test Coverage/a So the cobertura/ part seems to be missing. Regards Mirko On Thu, Apr 21, 2011 at 22:20, Benson Margulies bimargul...@gmail.com wrote: From the integration test, I see this in the top-level pom. build plugins plugin groupIdorg.codehaus.mojo/groupId artifactIdcobertura-maven-plugin/artifactId version2.5/version configuration aggregatetrue/aggregate /configuration /plugin /plugins /build On Thu, Apr 21, 2011 at 3:58 PM, Mirko Friedenhagen mfriedenha...@gmail.com wrote: Hello, I am trying to use cobertura 2.5 with Maven 3.0.3 and want it's reports to be aggregated in a multi-module build What am I doing wrong? Looking at http://svn.codehaus.org/mojo/tags/cobertura-maven-plugin-2.5/src/main/java/org/codehaus/mojo/cobertura/CoberturaReportMojo.java it seems to me, that the cobertura goal should be invoked during the test phase. Right now, when I invoke mvn clean install site IMO this goal should be invoked automatically. But I do not see the html or xml report in the modules. The output of mvn clean install site may be found at http://pastebin.com/MrvWefeV, the source code for this was: https://github.com/mfriedenhagen/multi-module-sample/commit/d25db3666b4f9388ca0879378b4917a89062323d Thanks for your answers A confused 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 -- http://illegalstateexception.blogspot.com/ https://github.com/mfriedenhagen/ https://bitbucket.org/mfriedenhagen/ -- 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: Is maven3 repository safe for concurrent access
On Fri, Apr 15, 2011 at 19:39, Kristian Rosenvold kristian.rosenv...@gmail.com wrote: fr., 15.04.2011 kl. 11.54 -0400, skrev Sony Antony: Thank you Jason : If 3.x local repository is not safe for concurrent access, how does maven3 implement parallel builds ( -T switch ) ( maybe they decide on teh parallelism by making sure that there is no concurrent read/write access on teh repository *for the same* artifacts ? ) The first half you got right, there is no concurrent writes of the each individual artifact by design. When it comes to downloading from remote repositories it's all handled by a common (singleton) service anyway. This is only correct for one single instance of maven running, where multiple threads are downloading artifacts, isn't it? I guess the OP wanted to know wether it is safe to use Maven3 in a CI, where multiple processes download dependencies. To my understanding it is not safe, there was a patch for Maven2, if I remember right. 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: [ANN] Maven Findbugs plugin version 2.3.2 Released
Hm, the link points to 2.3.1, http://jira.codehaus.org/secure/ReleaseNote.jspa?version=16272projectId=11701 is for 2.3.2. Regards Mirko On Sun, Mar 20, 2011 at 23:52, Garvin LeClaire glecla...@insightbb.com wrote: Hi, The Mojo team is pleased to announce the release of the Maven FindBugs Plugin version 2.3.2. FindBugs uses static analysis to inspect Java bytecode for occurrences of bug patterns. You can see more about the plugin at: http://mojo.codehaus.org/findbugs-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdfindbugs-maven-plugin/artifactId version2.3.2/version /plugin Release Notes are at: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11701version=16025 Release Notes - Maven 2.x FindBugs Plugin - Version 2.3.2 ** Bug * [MFINDBUGS-109] - empty surefire report at the project site having findBugs in the reporting section * [MFINDBUGS-111] - Missing Bad Practice entries * [MFINDBUGS-112] - failOnError not being honored * [MFINDBUGS-113] - Inner classes are badly encoded in XML reports * [MFINDBUGS-122] - [Maven3] Could not find matching constructor for: org.codehaus.mojo.findbugs.FindbugsReportGenerator * [MFINDBUGS-126] - org.codehaus.mojo.findbugs.FindbugsReportGenerator(org.codehaus.doxia.module.xhtml.XhtmlSink * [MFINDBUGS-127] - Xref links are not generated with Maven 3 * [MFINDBUGS-128] - Empty classes in FindBugs report * [MFINDBUGS-132] - Findbugs doesn't run on projects containing only test classes * [MFINDBUGS-134] - Problems resolving pluginList ** Improvement * [MFINDBUGS-110] - Major performance degradation since FindBugs plugin 2.1 * [MFINDBUGS-119] - Update to GMaven 1.3 (to fix maven 3 build) * [MFINDBUGS-121] - The FindBugs documentation for parameters is verys sparse and should be improved * [MFINDBUGS-130] - Site doc pages refer to downlevel plugin version * [MFINDBUGS-133] - Add the ability to have multiple exclude filter files ** Wish * [MFINDBUGS-129] - maven3 Enjoy, The Mojo team. Garvin LeClaire glecla...@insightbb.com -- 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 multimodule creating additional subversion tags for each module
Hello, Dear all, in our company we have a policy that every released artifact should have a release tag in Subversion assuming tagging is a cheap operation in subversion. So given a standard multimodule project: foo/trunk/pom.xml (groupId=foo,artifactId=parent,version=1.0-SNAPSHOT) foo/trunk/core/pom.xml (groupId=foo,artifactId=core,parent=foo.parent:1.0-SNAPSHOT) foo/trunk/app1/pom.xml (groupId=foo,artifactId=app1,parent=foo.parent:1.0-SNAPSHOT) foo/trunk/app2/pom.xml (groupId=foo,artifactId=app2,parent=foo.parent:1.0-SNAPSHOT) I want to have the following tags after running mvn -B release:prepare release:perform foo/tags/parent-1.0 foo/tags/core-1.0 foo/tags/app1-1.0 foo/tags/app2-1.0 Currently only foo/tags/parent-1.0 is created. Any ideas on how to achieve this? 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: maven-release-plugin multimodule creating additional subversion tags for each module
On Tue, Jan 25, 2011 at 10:21 PM, Mark Struberg strub...@yahoo.de wrote: Hi Mirko! If you release the whole project at once, then you obviously only get exactly one tag! You'd need to run releases on each module on it's own to get the single tags. But I'm not sure if this is really a good thing... What is the goal you like to achieve? What's wrong for you with that tag? Well, let's say we deploy app1-1.8 and now want to fix a bug in this app. If we always copy the *whole trunk* beneath a tag called app1-1.8, we just have to checkout this tag and do not need to know, that version 1.8 of app1 is found in SVN beneath a tag called parent-1.8. I am just experimenting with the scm plugin attached to the deploy phase right know. It is our policy that all components beneath a common trunk are strongly coupled and should all be released newly if something changes beneath it. We have used this scheme for a couple of years now, not only with maven but with C++ and Python projects as well, where one Makefile could produce several RPMs and implemented automated checks for getting postings to a newsgroup with the last QA notes from the former release and doing a quick gatekeeper code review in our QA team examining the diff between the last releases to make sure hotfixes do really only fix the hot issue(s) :-). 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: maven-release-plugin multimodule creating additional subversion tags for each module
Well, I implemented a solution, which anyone interested can retrieve from github, see: https://github.com/mfriedenhagen/multi-module-svn. 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: Activating a profile in settings.xml based on a property set in pom.xml?
Am 02.07.2010 um 09:37 schrieb Søren Krogh Neigaard: Hi I would like to activate (or not) a profile in my settings.xml base don which profile is active in my pom.xml. The active profile is determined by either activated by default, or by setting a -P argument to maven. How can I do this? In my pom.xml I also set a envproduction/env in my production profile and so on, can I use this to activate profiles in settings.xml, or how do I do this? Hello, we sometimes use a trigger file or directory to achieve this, e.g. a profile is activated if the directory profiles or an empty file WITH_SSL exist in the project. By this means we need to set an environment variable. Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
maven-project-info-reports-plugin 2.2 - index page without links, empty navigation column?
Hello, after my project reported a failure (java.lang.ArrayIndexOutOfBoundsException: 1 at org.apache.maven.doxia.module.xhtml.XhtmlSink.tableCell(XhtmlSink.java:791)) without me changing anything I searched for a solution and changed the maven-project-info-reports-plugin to version 2.2 in the reporting section and the maven-site-plugin to 2.1 (see http://fisheye.hudson-ci.org/changelog/Hudson/?cs=31237). Now the build succeeds again, however the index page does not show any links and though the individual reports are generated (see http://s312195779.online.de/hudson/job/hudson-jobConfigHistory/site/? resp. http://s312195779.online.de/hudson/job/hudson-jobConfigHistory/site/findbugs.html e.g.) the navigation column on the left side is empty for the individual reports as well. Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to find out which parameters can be specified as command-line properties?
Am 13.03.2010 um 03:06 schrieb sebb: Some plugin parameters are settable as command-line properties. For example, the Surefire plugin accepts the parameter argLine in the POM and the property -DargLine on the command-line. Surefire also accepts skipTests and -DskipTests=true. However, Surefire accepts the skip parameter, but ignores -Dskip=true. How can one find out which parameters are settable as command-line properties for a given plugin other than by trial and error? Is there a rule for this? Or a help command? Hello Sebb, mvn help:describe -Dplugin=org.apache.maven.plugins:maven-surefire-plugin -Ddetail=true will show you the goals and their options. For the command line parameter version of the options refer to e.g.: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skip There you see, that skip translates to maven.test.skip on the command line. Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
How to invoke other mojos/lifecycles in a plugin
Hello, I want to create a meta plugin which should invoke lifecycles/mojos, so instead of issueing: mvn clean sources:jar deploy site I could invoke: mvn myplugin:go - How do I include other plugins in the dependency section of my plugin? - How do I invoke goals/lifecycles from a plugin? Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Generating an XPI file from maven2?
Am 13.01.2010 um 21:26 schrieb Andrew Robinson: I have looked over Google, and I have not seen a satisfactory answer to this extremely simple requirement. I am trying to produce an XPI file for a firefox extension. An XPI file is simply a zip file with a different extension. Hello, I used the ant-runner-plugin to package a xpi (extension for firebug), take a look at: http://bitbucket.org/mfriedenhagen/webdriverfirebug/src/2e94814e9107/pom.xml#cl-110 Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: AW: pom.xml : scm element
Am 14.12.2009 um 13:08 schrieb Mark Struberg: the scm element in the pom is used for every SCM action in maven, e.g. if you do a mvn release:prepare / mvn release:perform and stuff. Since Hudson and other CI environments often do not rely on the build system for updating the project, they have the ability to do this their self (otoh, some CI systems do use maven-scm internally, but get the scm URL parameter from the UI rather than the pom. Hm, just lately I tried the following with a project in Subversion: - Checked out a project from trunk scm connectionscm:svn:file:///Software/nobackup/svn/myproject/branches/stable/connection developerConnectionscm:svn:file:///Software/nobackup/svn/myproject/branches/stable/developerConnection /scm build plugins plugin artifactIdmaven-release-plugin/artifactId configuration tagBasefile:///Software/nobackup/svn/myproject/releases/tagBase /configuration /plugin - Both developerConnection and connection in the pom point to branches/stable - My goal was to have releases built from this stable branch and tags landing under releases. - When I issued mvn release:prepare from the trunk checkout not the branches/stable version was released but the (trunk) working copy was copied to releases. Best Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Maven Plugin to detect duplicate class files in a e.g. WAR
Am 09.12.2009 um 09:10 schrieb Stephen Connolly: Should be possible to add a mojo to the maven-dependency-plugin to scan for duplicate classes in scope XYZ... that would be the major indicator. Of course you'd need include/excludes... and ignores... and failure mode control probably want a report as well... can you file a JIRA for it... if nobody has implemented it by xmas, I'll take a bite http://jira.codehaus.org/browse/MDEP-245 (goal to check classpath for duplicate resources/classes) seems to be this ticket, right? I really would be happy to see this :-). Best Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Maven Plugin to detect duplicate class files in a e.g. WAR
Hello, sometimes dependencies change their groupId (e.g. commons-io and org.apache.commons or spring vs. org.springframwork). Maven now has no chance(?!) to detect duplicate JARs with different versions during dependency resolution and puts jars with different versions in a war. In the end you are not sure which class will be loaded in a webapp. Do you know a plugin which will detect such jar/class collisions? Best Regards Mirko - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Using Java-System-Properties in settings.localRepository
Hello, the documentation (http://maven.apache.org/settings.html#Simple_Values) states that the default for localRepository${user.dir}/.m2/repository/localRepository First of all this should propably be ${user.home}/.m2/repository as already stated in http://jira.codehaus.org/browse/MNG-2956. Now I tried to use Java-System-Properties like this: localRepository${java.io.tmpdir}/${user.name}/maven2repo/localReposit ory With maven-2.0.7 this resulted in a directory literally called `${java.io.tmpdir}/${user.name}/maven2repo` which was created directly in the project's directory. Is there an error in my approach? Best Regards Mirko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[M2] ckjm-mojo: extend classpath with the dependencies of the report project
Hello, - I am trying to extend the ckjm-mojo (http://mojo.codehaus.org/ckjm-maven-plugin/ckjm-mojo.html). - ckjm needs the dependencies of the project to report on - Right now I have the following: --- snip --- /** * The set of dependencies required by the project * * @parameter default-value=${project.dependencyArtifacts} * @required * @readonly */ private java.util.SetArtifact dependencyArtifacts; /** * Extends classpath with dependencies. This is needed, as bcel otherwise * will raise ClassNotFoundExceptions. */ void extendClassPathWithDependencies() { getLog().debug([ckjm:cjkm] dependencies: + dependencyArtifacts.toString()); StringBuilder classpath = new StringBuilder(System.getProperty( java.class.path, )); for (Artifact artifact : dependencyArtifacts) { classpath.append(File.pathSeparator); classpath.append(artifact.getFile().getAbsolutePath()); } getLog().info([ckjm:cjkm] Setting classpath to: + classpath.toString()); System.setProperty(java.class.path, classpath.toString()); } --- snap --- Is there an automated way to extend the classpath just for this mojo? Best Regards Mirko