RE: How to run parallel test suite files in Maven
It seems threadcount and parallel tag is not a correct choice, it only include method, classes and test. Try this: suitethreadpoolsize2/suitethreadpoolsize Br, Tim -Original Message- From: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no] On Behalf Of Kristian Rosenvold Sent: Tuesday, June 26, 2012 1:44 PM To: Maven Users List Subject: Re: How to run parallel test suite files in Maven Probably not; if you switch to classes there should be some threading. Is there any good reason why you choose the generally inferior methods threading ? Kristian 2012/6/26 sreekumar sreekumarthe...@gmail.com: Hi Team I am try to run parallel test suitesXML files from Maven as below plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.12/version configuration parallelmethods/parallel threadCount2/threadCount suiteXmlFiles suiteXmlFiletestng-vm1.xml/suiteXmlFile suiteXmlFiletestng-vm2.xml/suiteXmlFile /suiteXmlFiles /configuration /plugin When i execute with above code, the last testng xml file only (i.e testng-vm2.xml) is running. But i want to run both xml files parallel . Please let me know is it possible to run parallel suites through Maven? -- View this message in context: http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022.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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: How to run parallel test suite files in Maven
No i tried with 'classes' also. A separate thread is not creating for each xml file. My Requirement: I have 1000 automated test cases. i want to run in different machine with different browsers using selenium webdriver. I used TestNG.xml's to get all these test case details and plan to run in test case wise. I am dividing testng.xml's based on machine names. When i run parallel xml file's all test cases run in different machine with different browser. For this scenario i need to use the below one... On Tue, Jun 26, 2012 at 11:14 AM, Kristian Rosenvold-4 [via Maven] ml-node+s40175n5712024...@n5.nabble.com wrote: Probably not; if you switch to classes there should be some threading. Is there any good reason why you choose the generally inferior methods threading ? Kristian 2012/6/26 sreekumar [hidden email]http://user/SendEmail.jtp?type=nodenode=5712024i=0: Hi Team I am try to run parallel test suitesXML files from Maven as below plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.12/version configuration parallelmethods/parallel threadCount2/threadCount suiteXmlFiles suiteXmlFiletestng-vm1.xml/suiteXmlFile suiteXmlFiletestng-vm2.xml/suiteXmlFile /suiteXmlFiles /configuration /plugin When i execute with above code, the last testng xml file only (i.e testng-vm2.xml) is running. But i want to run both xml files parallel . Please let me know is it possible to run parallel suites through Maven? -- View this message in context: http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5712024i=1 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5712024i=2 - To unsubscribe, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5712024i=3 For additional commands, e-mail: [hidden email]http://user/SendEmail.jtp?type=nodenode=5712024i=4 -- If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022p5712024.html To unsubscribe from How to run parallel test suite files in Maven, click herehttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=5712022code=c3JlZWt1bWFydGhlc3VuQGdtYWlsLmNvbXw1NzEyMDIyfDEzMzYzODM2NDM= . NAMLhttp://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- Thanks and regards Sreekumar 9492330784 -- View this message in context: http://maven.40175.n5.nabble.com/How-to-run-parallel-test-suite-files-in-Maven-tp5712022p5712037.html Sent from the Maven - Users mailing list archive at Nabble.com.
WAR file always attached; suppress/skip deployment?
Hi I have a WAR project, but the plugin is currently driving me crazy :) What i want to archive: Do not install/deploy the generated SNAPSHOT-WAR file, just the packaged JAR file out of the classes. But of course it needs to be packaged/exploded for being local runnable per default. I thought i could use plugin artifactIdmaven-jar-plugin/artifactId executions execution phasepackage/phase goals goaljar/goal /goals /execution /executions /plugin plugin artifactIdmaven-war-plugin/artifactId executions execution phasepackage/phase goals goalwar/goal /goals configuration primaryArtifactfalse/primaryArtifact classifierlocal/classifier archiveClassestrue/archiveClasses!-- include the classes as JAR inside the WAR -- attachClassesfalse/attachClasses!-- package additional -classes.jar -- [...] /configuration /execution /executions /plugin But what i see is, that 1) the default-war goal is ALWAYS executed, and 2) the primaryArtifact=false does not work, always installing the file [INFO] --- maven-war-plugin:2.2:war (default-war) @ myproject --- -- always executed [INFO] Packaging webapp [INFO] Assembling webapp [myproject] in [C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp] [INFO] Webapp assembled in [25300 msecs] [INFO] Building war: C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.war [INFO] WEB-INF\web.xml already added, skipping [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default) @ myproject --- [INFO] Building jar: C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- maven-war-plugin:2.2:war (default) @ myproject ----- my specified configuration [INFO] Packaging webapp [INFO] Assembling webapp [myproject] in [C:\Users\myuser\myproject\target\WebRoot-local] [INFO] Processing war project [INFO] Copying webapp webResources [C:\Users\myuser\myproject\src/main/config] to [C:\Users\myuser\myproject\target\WebRoot-local] [INFO] Copying webapp webResources [C:\Users\myuser\myproject\src/main/webapp/WEB-INF] to [C:\Users\myuser\myproject\target\WebRoot-local] [INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp] [INFO] Building jar: C:\Users\myuser\myproject\target\WebRoot-local\WEB-INF\lib\myproject-1.0.0-SNAPSHOT.jar [INFO] Webapp assembled in [6390 msecs] [INFO] Building war: C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT-local.war [INFO] WEB-INF\web.xml already added, skipping With above config i get the classes jar and 2xWARs :/ Same for using no WAR execution; configuring on plugin level - 1xWAR (default-war) always installed Playing with archiveClasses attachClasses does not work either. Any other ideas to achieve this? There is no skip parameter, i guess? (or a buildhelper:detach-atrifacts?) So the WAR file is ALWAYS generated and attached b/c of typewar/type ?? The only workaround I've found so far is declaring the project as typejar/type. But executing the WAR plugin in package phase STILL attaches it TIA, Myron -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: compile plugin
Are you sure that you have specified the best jdk. Perhaps you point to the jre locaton Le 25 juin 2012 19:22, chad.da...@emc.com a écrit : Run whereis java (where java in Windows) to find out how many java executable you might have in PATH and which one is listed first. That's where I'd start. I'm beyond that phase already, but thanks. I'm on linux, and the mvn start up script checks JAVA_HOME to see which version of java to use. This works, but it doesn't seem to propogate down to the javac invocation by the compile plugin. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: maven compilation error
Make sure that you have the pom.xml file in the root of your maven project Le 26 juin 2012 00:54, mbb216 mbb@gmail.com a écrit : Build error Reason:cannot execute mojjo:it requires a project with an existing pom.xml but the build is not in use What is the reason for this erroe in maven. -- View this message in context: http://maven.40175.n5.nabble.com/maven-compilation-error-tp5711968.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
Importing poms and scoping dependencies
Hello Apache Maven community, Is there a way to import dependencies from dependencyManagement section of a pom artifact, but also configure default scope for all of the imported dependencies (without actually specifying all of them as dependencies)? Kind regards, Stevo.
Re: WAR file always attached; suppress/skip deployment?
It would appear that you really want 2 projects; one that makes a jar and one that makes a war. Ron On 26/06/2012 4:00 AM, myron0...@gmx.net wrote: Hi I have a WAR project, but the plugin is currently driving me crazy :) What i want to archive: Do not install/deploy the generated SNAPSHOT-WAR file, just the packaged JAR file out of the classes. But of course it needs to be packaged/exploded for being local runnable per default. I thought i could use plugin artifactIdmaven-jar-plugin/artifactId executions execution phasepackage/phase goals goaljar/goal /goals /execution /executions /plugin plugin artifactIdmaven-war-plugin/artifactId executions execution phasepackage/phase goals goalwar/goal /goals configuration primaryArtifactfalse/primaryArtifact classifierlocal/classifier archiveClassestrue/archiveClasses!-- include the classes as JAR inside the WAR -- attachClassesfalse/attachClasses!-- package additional -classes.jar -- [...] /configuration /execution /executions /plugin But what i see is, that 1) the default-war goal is ALWAYS executed, and 2) the primaryArtifact=false does not work, always installing the file [INFO] --- maven-war-plugin:2.2:war (default-war) @ myproject --- -- always executed [INFO] Packaging webapp [INFO] Assembling webapp [myproject] in [C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp] [INFO] Webapp assembled in [25300 msecs] [INFO] Building war: C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.war [INFO] WEB-INF\web.xml already added, skipping [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default) @ myproject --- [INFO] Building jar: C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT.jar [INFO] [INFO] --- maven-war-plugin:2.2:war (default) @ myproject ----- my specified configuration [INFO] Packaging webapp [INFO] Assembling webapp [myproject] in [C:\Users\myuser\myproject\target\WebRoot-local] [INFO] Processing war project [INFO] Copying webapp webResources [C:\Users\myuser\myproject\src/main/config] to [C:\Users\myuser\myproject\target\WebRoot-local] [INFO] Copying webapp webResources [C:\Users\myuser\myproject\src/main/webapp/WEB-INF] to [C:\Users\myuser\myproject\target\WebRoot-local] [INFO] Copying webapp resources [C:\Users\myuser\myproject\src\main\webapp] [INFO] Building jar: C:\Users\myuser\myproject\target\WebRoot-local\WEB-INF\lib\myproject-1.0.0-SNAPSHOT.jar [INFO] Webapp assembled in [6390 msecs] [INFO] Building war: C:\Users\myuser\myproject\target\myproject-1.0.0-SNAPSHOT-local.war [INFO] WEB-INF\web.xml already added, skipping With above config i get the classes jar and 2xWARs :/ Same for using no WAR execution; configuring on plugin level - 1xWAR (default-war) always installed Playing with archiveClasses attachClasses does not work either. Any other ideas to achieve this? There is no skip parameter, i guess? (or a buildhelper:detach-atrifacts?) So the WAR file is ALWAYS generated and attached b/c of typewar/type ?? The only workaround I've found so far is declaring the project as typejar/type. But executing the WAR plugin in package phase STILL attaches it TIA, Myron -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Can I do scm checkout from inside a plugin?
I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can I do scm checkout from inside a plugin?
Hi, Maybe will be more easy to have a look at the CheckoutMojo ? http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - 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
Re: Can I do scm checkout from inside a plugin?
Thanks! I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, but it may do what I want. I'm going to need to run a plugin on the checked out code, so I guess I can't avoid either embedding Maven or forking it. (I think I'll fork.) Part of me wonders if sticking to shell scripting for this might be easier. -K On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote: Hi, Maybe will be more easy to have a look at the CheckoutMojo ? http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - 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: Can I do scm checkout from inside a plugin?
2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: Thanks! I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, but it may do what I want. I'm going to need to run a plugin on the checked out code, so I guess I can't avoid either embedding Maven or forking it. (I think I'll fork.) Probably maven-invoker (http://maven.apache.org/shared/maven-invoker/) library can help you. If you use maven3 maybe you can have a look at https://github.com/jenkinsci/lib-jenkins-maven-embedder which is not prefect :-) embedder. Part of me wonders if sticking to shell scripting for this might be easier. -K On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote: Hi, Maybe will be more easy to have a look at the CheckoutMojo ? http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - 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 -- 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
Re: Can I do scm checkout from inside a plugin?
Inject a maven ScmManager into your Mojo. Checkout code is fairly simple. Can give example code later if desired. Sent on the go A Am 26.06.2012 15:26 schrieb Kathryn Huxtable kath...@kathrynhuxtable.org : I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can I do scm checkout from inside a plugin?
Thanks. I am using maven3, but I think the invoker looks simpler. If we were using Jenkins already I might think differently… -K On Jun 26, 2012, at 11:27 AM, Olivier Lamy wrote: 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: Thanks! I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, but it may do what I want. I'm going to need to run a plugin on the checked out code, so I guess I can't avoid either embedding Maven or forking it. (I think I'll fork.) Probably maven-invoker (http://maven.apache.org/shared/maven-invoker/) library can help you. If you use maven3 maybe you can have a look at https://github.com/jenkinsci/lib-jenkins-maven-embedder which is not prefect :-) embedder. Part of me wonders if sticking to shell scripting for this might be easier. -K On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote: Hi, Maybe will be more easy to have a look at the CheckoutMojo ? http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - 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 -- 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: truezip-maven-plugin fails when run on CI server
Thanks much for your help. Unfortunately I don't have access to our CI build server so there wasn't much I could do here. I changed the build to not use this plugin...I just unzip and then re-jar...solves this problem in this case. Thanks, -Dave On Mon, Jun 25, 2012 at 3:57 PM, Wayne Fay wayne...@gmail.com wrote: *[14:53:10]*Caused by: java.io.IOException: Failed to delete file F:\work\7832e3bc4d2f257b\dashboard-dev\target\dashboard-dev-4.4-SNAPSHOT.jar\rhinoDiff.txt. Reason is unknown. *[14:53:10]* at org.codehaus.mojo.truezip.internal.TrueZipFileSetManager.delete(TrueZipFileSetManager.java:353) Does that path exist? Does the CI server user have permissions to delete that file? The code you're running into is roughly here: http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.mojo/truezip-maven-plugin/1.0-beta-7/org/codehaus/mojo/truezip/util/TrueZipFileSetManager.java#349 If you have a specific change/patch to provide that might help solve this issue, please don't hesitate to provide it. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: truezip-maven-plugin fails when run on CI server
may want to try 'immediateUpdate=true' -D On Tue, Jun 26, 2012 at 12:05 PM, David Hoffer dhoff...@gmail.com wrote: Thanks much for your help. Unfortunately I don't have access to our CI build server so there wasn't much I could do here. I changed the build to not use this plugin...I just unzip and then re-jar...solves this problem in this case. Thanks, -Dave On Mon, Jun 25, 2012 at 3:57 PM, Wayne Fay wayne...@gmail.com wrote: *[14:53:10]*Caused by: java.io.IOException: Failed to delete file F:\work\7832e3bc4d2f257b\dashboard-dev\target\dashboard-dev-4.4-SNAPSHOT.jar\rhinoDiff.txt. Reason is unknown. *[14:53:10]* at org.codehaus.mojo.truezip.internal.TrueZipFileSetManager.delete(TrueZipFileSetManager.java:353) Does that path exist? Does the CI server user have permissions to delete that file? The code you're running into is roughly here: http://grepcode.com/file/repo1.maven.org/maven2/org.codehaus.mojo/truezip-maven-plugin/1.0-beta-7/org/codehaus/mojo/truezip/util/TrueZipFileSetManager.java#349 If you have a specific change/patch to provide that might help solve this issue, please don't hesitate to provide it. 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
[ANN] JAXB-2 Maven Plugin 1.4 Released
Hi, The Mojo team is pleased to announce the release of the JAXB-2 Maven Plugin version 1.4. http://mojo.codehaus.org/jaxb2-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxb2-maven-plugin/artifactId version1.4/version /plugin Release Notes ** Bug * [MJAXB-49] - Change the name of the plugin ** Improvement * [MJAXB-30] - Patch to add support for Ant-style wildcards to schemaFiles * [MJAXB-37] - Getters not being generated for Boolean fields * [MJAXB-39] - Document use of schemagen target * [MJAXB-48] - Make it possible to enable verbose from command line * [MJAXB-53] - add an encoding parameter and use ${project.build.sourceEncoding} as default value * [MJAXB-59] - SchemaGen should skip non-existent source directories * [MJAXB-60] - Improve m-compiler-p version lock-down in usage pages ** New Feature * [MJAXB-55] - Provide means to set the file name of generated XML schema ** Task * [MJAXB-50] - Document an example about having two (or more) bindings with different config Enjoy, The Mojo team. /Anders - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Can I do scm checkout from inside a plugin?
Okay, I have what I need. Thanks to everyone. The most useful advice (for me) was Olivier's pointer at the invoker plugin. I had never needed it and didn't really know about it. Knowing about it, I was able to find its uses in the release plugin, so I can make my use of it more robust. -K On Jun 26, 2012, at 1:56 PM, Kathryn Huxtable wrote: Thanks. I am using maven3, but I think the invoker looks simpler. If we were using Jenkins already I might think differently… -K On Jun 26, 2012, at 11:27 AM, Olivier Lamy wrote: 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: Thanks! I'm also checking out the mojo-executor plugin. It looks kind of squirrelly, but it may do what I want. I'm going to need to run a plugin on the checked out code, so I guess I can't avoid either embedding Maven or forking it. (I think I'll fork.) Probably maven-invoker (http://maven.apache.org/shared/maven-invoker/) library can help you. If you use maven3 maybe you can have a look at https://github.com/jenkinsci/lib-jenkins-maven-embedder which is not prefect :-) embedder. Part of me wonders if sticking to shell scripting for this might be easier. -K On Jun 26, 2012, at 8:29 AM, Olivier Lamy wrote: Hi, Maybe will be more easy to have a look at the CheckoutMojo ? http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckoutMojo.java 2012/6/26 Kathryn Huxtable kath...@kathrynhuxtable.org: I know the release plugin can do it, but the source is fairly complex. Is there an easy way? My goal is to check out an earlier version of the artifact, copy its resources (so I'll also be running the copy-resources plugin), which produces some data as side effects, and then compare that data to the current data. I'm trying to make an incremental updater. Obviously I can keep the earlier version around, but it would be nice not to have to depend on that. Any advice would be appreciated. -K - 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 -- 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 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] JAXB-2 Maven Plugin 1.4 Released
In general, how does this compare to the jvnet jaxb plugin? Why would I use one over the other? I do a certain amount of JAXB, and I'm curious. -K On Jun 26, 2012, at 3:20 PM, Anders Hammar wrote: Hi, The Mojo team is pleased to announce the release of the JAXB-2 Maven Plugin version 1.4. http://mojo.codehaus.org/jaxb2-maven-plugin/ To get this update, simply specify the version in your project's plugin configuration: plugin groupIdorg.codehaus.mojo/groupId artifactIdjaxb2-maven-plugin/artifactId version1.4/version /plugin Release Notes ** Bug * [MJAXB-49] - Change the name of the plugin ** Improvement * [MJAXB-30] - Patch to add support for Ant-style wildcards to schemaFiles * [MJAXB-37] - Getters not being generated for Boolean fields * [MJAXB-39] - Document use of schemagen target * [MJAXB-48] - Make it possible to enable verbose from command line * [MJAXB-53] - add an encoding parameter and use ${project.build.sourceEncoding} as default value * [MJAXB-59] - SchemaGen should skip non-existent source directories * [MJAXB-60] - Improve m-compiler-p version lock-down in usage pages ** New Feature * [MJAXB-55] - Provide means to set the file name of generated XML schema ** Task * [MJAXB-50] - Document an example about having two (or more) bindings with different config Enjoy, The Mojo team. /Anders - 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
can't verify tarball
I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: $ gpg --import KEYS ... gpg: Total number processed: 42 gpg: imported: 41 (RSA: 4) gpg: unchanged: 1 gpg: no ultimately trusted keys found $ gpg --verify apache-maven-3.0.4-bin.tar.gz.asc apache-maven-3.0.4-bin.tar.gz gpg: Signature made Tue 17 Jan 2012 03:47:55 AM EST using DSA key ID B4372146 gpg: BAD signature from Olivier Lamy ol...@apache.org The md5 checksum also doesn't match. I get $ md5sum apache-maven-3.0.4-bin.tar.gz bc6559d120933c27534200d7dc9e0d39 apache-maven-3.0.4-bin.tar.gz and the download page says e513740978238cb9e4d482103751f6b7 Obviously I'm not using this tarball until I know what's up! Whose mistake and/or compromise? Jay Scott http://satirist.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can't verify tarball
Hi, Do you remember from which mirror you download tar.gz ? Can you try to download from archive site ? http://www.us.apache.org/dist/maven/binaries/ 2012/6/26 Jay Scott j...@mathforum.org: I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: $ gpg --import KEYS ... gpg: Total number processed: 42 gpg: imported: 41 (RSA: 4) gpg: unchanged: 1 gpg: no ultimately trusted keys found $ gpg --verify apache-maven-3.0.4-bin.tar.gz.asc apache-maven-3.0.4-bin.tar.gz gpg: Signature made Tue 17 Jan 2012 03:47:55 AM EST using DSA key ID B4372146 gpg: BAD signature from Olivier Lamy ol...@apache.org The md5 checksum also doesn't match. I get $ md5sum apache-maven-3.0.4-bin.tar.gz bc6559d120933c27534200d7dc9e0d39 apache-maven-3.0.4-bin.tar.gz and the download page says e513740978238cb9e4d482103751f6b7 Obviously I'm not using this tarball until I know what's up! Whose mistake and/or compromise? Jay Scott http://satirist.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
RE: can't verify tarball
does Dick know? Date: Tue, 26 Jun 2012 16:43:13 -0400 From: j...@mathforum.org To: users@maven.apache.org Subject: can't verify tarball I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: $ gpg --import KEYS ... gpg: Total number processed: 42 gpg: imported: 41 (RSA: 4) gpg: unchanged: 1 gpg: no ultimately trusted keys found $ gpg --verify apache-maven-3.0.4-bin.tar.gz.asc apache-maven-3.0.4-bin.tar.gz gpg: Signature made Tue 17 Jan 2012 03:47:55 AM EST using DSA key ID B4372146 gpg: BAD signature from Olivier Lamy ol...@apache.org The md5 checksum also doesn't match. I get $ md5sum apache-maven-3.0.4-bin.tar.gz bc6559d120933c27534200d7dc9e0d39 apache-maven-3.0.4-bin.tar.gz and the download page says e513740978238cb9e4d482103751f6b7 Obviously I'm not using this tarball until I know what's up! Whose mistake and/or compromise? Jay Scott http://satirist.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can't verify tarball
On 06/26/2012 04:49 PM, Olivier Lamy wrote: Do you remember from which mirror you download tar.gz ? Hmm, I just clicked the link on http://maven.apache.org/download.html and got whatever I got. When I return to the page now the link is http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz which sounds like it's not telling me the ultimate source. Can you try to download from archive site ? http://www.us.apache.org/dist/maven/binaries/ Success: Signature verifies and md5 matches with that download. I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: ... Jay Scott http://satirist.org/ - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can't verify tarball
2012/6/26 Jay Scott j...@mathforum.org: On 06/26/2012 04:49 PM, Olivier Lamy wrote: Do you remember from which mirror you download tar.gz ? Hmm, I just clicked the link on http://maven.apache.org/download.html and got whatever I got. When I return to the page now the link is http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz Yup and some mirrors are proposed to you. It looks you used one with strange content. If you could report which mirror fail that could be lovely :-) which sounds like it's not telling me the ultimate source. Can you try to download from archive site ? http://www.us.apache.org/dist/maven/binaries/ Success: Signature verifies and md5 matches with that download. I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: ... Jay Scott http://satirist.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
Re: can't verify tarball
PS: Thanks, a fast and good answer! Jay Scott http://satirist.org/ On 06/26/2012 04:58 PM, Jay Scott wrote: On 06/26/2012 04:49 PM, Olivier Lamy wrote: Do you remember from which mirror you download tar.gz ? Hmm, I just clicked the link on http://maven.apache.org/download.html and got whatever I got. When I return to the page now the link is http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz which sounds like it's not telling me the ultimate source. Can you try to download from archive site ? http://www.us.apache.org/dist/maven/binaries/ Success: Signature verifies and md5 matches with that download. I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: ... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: can't verify tarball
On 06/26/2012 05:01 PM, Olivier Lamy wrote: 2012/6/26 Jay Scott j...@mathforum.org: On 06/26/2012 04:49 PM, Olivier Lamy wrote: Do you remember from which mirror you download tar.gz ? Hmm, I just clicked the link on http://maven.apache.org/download.html and got whatever I got. When I return to the page now the link is http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-3.0.4-bin.tar.gz Yup and some mirrors are proposed to you. It looks you used one with strange content. If you could report which mirror fail that could be lovely :-) O! Now I think I know what went wrong! I saw .tar.gz at the end of the URL and right-clicked it and downloaded the list of mirrors instead of the file I wanted. It had the right filename and somehow I never noticed that the size was much too small. Sorry for the false alarm! But that list page should have a different URL, I'm sure I'm not the only one it has confused. Jay Scott http://satirist.org/ which sounds like it's not telling me the ultimate source. Can you try to download from archive site ? http://www.us.apache.org/dist/maven/binaries/ Success: Signature verifies and md5 matches with that download. I just downloaded apache-maven-3.0.4-bin.tar.gz (and its checksum and signature) and can't verify the signature. I grabbed KEYS from http://www.apache.org/dist/maven/KEYS and: ... - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Problem with maven for php
Hi, I'm trying to build a new project using mvn archetype:generate -DarchetypeArtifactId=php5-zend-archetype -X It gives me the following error [DEBUG] Archetype org.apache.maven.archetypes:php5-zend-archetype:1.0 doesn't exist org.apache.maven.archetype.downloader.DownloadNotFoundException: Requested org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 download does not exist. at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:78) at org.apache.maven.archetype.common.DefaultArchetypeArtifactManager.exists(DefaultArchetypeArtifactManager.java:272) at org.apache.maven.archetype.ui.generation.DefaultArchetypeGenerationConfigurator.configureArchetype(DefaultArchetypeGenerationConfigurator.java:114) at org.apache.maven.archetype.mojos.CreateProjectFromArchetypeMojo.execute(CreateProjectFromArchetypeMojo.java:205) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) 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) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 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) Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in http://repo1.php-maven.org/release was cached in the local repository, resolution will not be reattempted until the update interval of release-repo1.php-maven.org has elapsed or updates are forced Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.maven.archetypes -DartifactId=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.apache.maven.archetypes -DartifactId=php5-zend-archetype -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 from the specified remote repositories: release-repo1.php-maven.org (http://repo1.php-maven.org/release, releases=true, snapshots=true), snapshot-repo1.php-maven.org (http://repo1.php-maven.org/snapshot, releases=false, snapshots=true), central (http://repo1.maven.org/maven2, releases=true, snapshots=false) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:219) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:157) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:525) at org.apache.maven.archetype.downloader.DefaultDownloader.download(DefaultDownloader.java:70) ... 24 more Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in http://repo1.php-maven.org/release was cached in the local repository, resolution will not be reattempted until the update interval of release-repo1.php-maven.org has elapsed or updates are forced at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220) at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:197) at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:323)
Re: Problem with maven for php
On Wed, Jun 27, 2012 at 1:04 PM, Fernanda Araújo fernanda.g.ara...@gmail.com wrote: Hi, I'm trying to build a new project using mvn archetype:generate -DarchetypeArtifactId=php5-zend-archetype -X It gives me the following error [DEBUG] Archetype org.apache.maven.archetypes:php5-zend-archetype:1.0 doesn't exist ... Failure to find org.apache.maven.archetypes:php5-zend-archetype:jar:1.0 in http://repo1.php-maven.org/release You would have better luck on a maven php mailing list than here as this is specific to that php plugin. The error message is telling you that this archetype does not exist. I dont really use archetypes, but you can see that this one does not exist in Maven Central. http://search.maven.org/#search|ga|1|%3Aphp5-zend-archetype A google finds this page, which I am assuming you are following: http://www.php-maven.org/tags/2.0.0/php-zend-5min.html Did you follow the Preparation Instructions (http://www.php-maven.org/prepare.html) as requested? This will configure maven with additional repos (like http://repos.php-maven.org/releases) which are unfortunately not browsable, if you try they redirect you the the underlying Nexus repos. You can see that the artifact is available here http://nexus.bghosting.de/content/repositories/php-maven-plugin-releases/org/phpmaven/php5-zend-archetype/2.0.0/php5-zend-archetype-2.0.0.jar Which is what http://repos.php-maven.org/releases/org/phpmaven/php5-zend-archetype/2.0.0/php5-zend-archetype-2.0.0.jar will get you as well. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org