Managing module dependency in Maven parallel build
Hi, (I just subscribed to the mailing list so would appreciate if you could reply directly to my email address too) I am trying out the parallel build feature of Maven 3. My project is divided into multiple modules and one of the module generates a deployable zip file. Another module takes this zip file and runs some deployment and performance tests. This worked with sequential build but with the parallel build the build fails because most of the time the module could not find the zip file because it is picked up before the zip could be created. As the module that generates the zip file does not produce a jar file having a dependency to this module would not work (or so as per my understanding). Is there a way in Maven 3 parallel build that such module dependency can be instructed? Appreciate your help, -Ashish
custom unique version
Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Managing module dependency in Maven parallel build
add a dependency of type zip and scope test On 20 January 2012 08:38, Ashish Srivastava ashis...@yahoo.com wrote: Hi, (I just subscribed to the mailing list so would appreciate if you could reply directly to my email address too) I am trying out the parallel build feature of Maven 3. My project is divided into multiple modules and one of the module generates a deployable zip file. Another module takes this zip file and runs some deployment and performance tests. This worked with sequential build but with the parallel build the build fails because most of the time the module could not find the zip file because it is picked up before the zip could be created. As the module that generates the zip file does not produce a jar file having a dependency to this module would not work (or so as per my understanding). Is there a way in Maven 3 parallel build that such module dependency can be instructed? Appreciate your help, -Ashish - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Managing module dependency in Maven parallel build
The maven-module creating the zip file (the one with assembly) needs to have dependency on the modules that produce the required jar files. Kristian 2012/1/20 Ashish Srivastava ashis...@yahoo.com: Hi, (I just subscribed to the mailing list so would appreciate if you could reply directly to my email address too) I am trying out the parallel build feature of Maven 3. My project is divided into multiple modules and one of the module generates a deployable zip file. Another module takes this zip file and runs some deployment and performance tests. This worked with sequential build but with the parallel build the build fails because most of the time the module could not find the zip file because it is picked up before the zip could be created. As the module that generates the zip file does not produce a jar file having a dependency to this module would not work (or so as per my understanding). Is there a way in Maven 3 parallel build that such module dependency can be instructed? Appreciate your help, -Ashish - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: custom unique version
It cannot. That is part of the spec for the layout of a Maven repository. -Stephen 2012/1/20 Thomas Scheffler thomas.scheff...@uni-jena.de: Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - 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: Error deploying artifact: Resource to deploy not found: File
Hi, well it IS a problem because the deploy fails in fact. [ERROR] BUILD ERROR [INFO] [INFO] Error deploying artifact: Resource to deploy not found: File: http://vm-h anks:8081/artifactory/groupId/laksdjfalsdf.jar does not exist which is weird because i want to obviously DEPLOY it, not retrieve it. thanks for any help -- View this message in context: http://maven.40175.n5.nabble.com/Error-deploying-artifact-Resource-to-deploy-not-found-File-tp5157656p5159976.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: custom unique version
Am 20.01.2012 10:32, schrieb Stephen Connolly: It cannot. That is part of the spec for the layout of a Maven repository. Is there a way to embed the unique version string into the JAR manifest then? If I test an application with a snapshot jar I want stick with that specific version when deploying the application later. This should be done automatically. 1. Do some automatic test, if they succeed gather the unique version number. 2. At deploy time use the last successful timestamp. Maybe someone could help me with that... :-) regards Thomas -Stephen 2012/1/20 Thomas Schefflerthomas.scheff...@uni-jena.de: Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: custom unique version
You can stuff what ever you want in tge manifest. Google is your friend: maven jar plugin manifest customization - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On Jan 20, 2012 10:45 a.m., Thomas Scheffler thomas.scheff...@uni-jena.de wrote: Am 20.01.2012 10:32, schrieb Stephen Connolly: It cannot. That is part of the spec for the layout of a Maven repository. Is there a way to embed the unique version string into the JAR manifest then? If I test an application with a snapshot jar I want stick with that specific version when deploying the application later. This should be done automatically. 1. Do some automatic test, if they succeed gather the unique version number. 2. At deploy time use the last successful timestamp. Maybe someone could help me with that... :-) regards Thomas -Stephen 2012/1/20 Thomas Schefflerthomas.scheffler@**uni-jena.dethomas.scheff...@uni-jena.de : Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas --**--**- To unsubscribe, e-mail: users-unsubscribe@maven.**apache.orgusers-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: mavem-war-plugin packagingExcludes regex not working
.*(?!min)\.js does the trick. Why didn't I find this sooner? lt;smiley image=quot;anim_confused.gifquot;/ -- View this message in context: http://maven.40175.n5.nabble.com/mavem-war-plugin-packagingExcludes-regex-not-working-tp5139981p5160145.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
SureFire Report Plugin - to write a content
Guys , i am generating a HTML Surefire report be executing automation suite , most of the test cases being passed , but actually there number of errors didnt mentioned in the report i have put assertion in a try catch block. if i remove the try catch block my automation suite wiill stop by mentioning a error in the HTML report , So is there a way to write a content in HTML reports within the try catch block. Thank u , -- View this message in context: http://maven.40175.n5.nabble.com/SureFire-Report-Plugin-to-write-a-content-tp5160204p5160204.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: mavem-war-plugin packagingExcludes regex not working
Isn't that what I told you? Cheers, Guillaume Le 20/01/2012 12:41, mschipperheyn a écrit : .*(?!min)\.js does the trick. Why didn't I find this sooner?lt;smiley image=quot;anim_confused.gifquot;/ -- View this message in context: http://maven.40175.n5.nabble.com/mavem-war-plugin-packagingExcludes-regex-not-working-tp5139981p5160145.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
Sonatype RSO and Sonatype OSS
Hi All, What's difference between https://repository.sonatype.org - Sonatype RSO And https://oss.sonatype.org/ - Sonatype OSS Thanks, Amaresh
war:war overrides webapp content from webapp resources
Hi, I'm running into a little issue in war:war that has a workaround but I'm still bothered by it: I'm trying to filter stuff from src/main/webapp/ This works However, my filtered result is overwritten in the last part of resource copying [INFO] Processing war project [INFO] Copying webapp webResources [d:\projects\project\web\src/main/webapp] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp webResources [d:\projects\project\web\target/classes] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp webResources [d:\projects\project\web\src/main/webapp/WEB-INF] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp webResources [d:\projects\project\web\../core/target] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp resources [d:\projects\project\web\src\main\webapp] It's the last line that is the problem because it overwrites the filtered webResources copy in an unfiltered way. I'm just wondering where it comes from and how to change it plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.2-SNAPSHOT/version configuration webResources resource directorysrc/main/webapp/directory excludes exclude**/Thumbs.db/exclude exclude**/.svn/**/exclude exclude**/*-min.js/exclude exclude**/*-min.css/exclude /excludes /resource resource directorytarget/classes/directory targetPathWEB-INF/classes/targetPath /resource resource directory../core/target/directory includes include${parent.artifactId}-core-${version}.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources packagingExcludes/packagingExcludes warSourceExcludes**/Thumbs.db,*.js,*.css/warSourceExcludes /configuration /plugin resources resource directorysrc/main/resources/directory excludes excludeApplicationResources_*.properties/exclude excludeapplicationContext-*.xml/exclude /excludes filteringtrue/filtering /resource resource directorysrc/main/resources/directory includes includeapplicationContext-resources.xml/include /includes /resource /resources Cheers, Marc -- View this message in context: http://maven.40175.n5.nabble.com/war-war-overrides-webapp-content-from-webapp-resources-tp5160326p5160326.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: Sonatype RSO and Sonatype OSS
Hello, Ask Sonatype. 2012/1/20 amaresh mourya amaresh.mou...@gmail.com: Hi All, What's difference between https://repository.sonatype.org - Sonatype RSO And https://oss.sonatype.org/ - Sonatype OSS Thanks, Amaresh -- 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: mavem-war-plugin packagingExcludes regex not working
Yeah, I tried it though on regexplanet and it didn't seem to work. Maybe I copied and pasted wrong. In any case, thanks. Marc -- View this message in context: http://maven.40175.n5.nabble.com/mavem-war-plugin-packagingExcludes-regex-not-working-tp5139981p5160331.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: custom unique version
Am 20.01.2012 12:40, schrieb Stephen Connolly: You can stuff what ever you want in tge manifest. Google is your friend: maven jar plugin manifest customization Hi, yeah I know that. But how can I put the unique version number into the JAR manifest? Thomas Am 20.01.2012 10:32, schrieb Stephen Connolly: It cannot. That is part of the spec for the layout of a Maven repository. Is there a way to embed the unique version string into the JAR manifest then? If I test an application with a snapshot jar I want stick with that specific version when deploying the application later. This should be done automatically. 1. Do some automatic test, if they succeed gather the unique version number. 2. At deploy time use the last successful timestamp. Maybe someone could help me with that... :-) regards Thomas -Stephen 2012/1/20 Thomas Schefflerthomas.scheffler@**uni-jena.dethomas.scheff...@uni-jena.de : Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
how to check/change the jdk version used by maven
hi, i am using maven to compile some java classes .One of the classes has an annotation(@Override) so when i run mvn compile then i get errror that: annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @Override annotations are not supported in -source 1.3 (use -source 5 or higher to enable annotations) @Override Although the java version in my system is jdk 1.6.29 still i can't understand this error. So i there a way by which i can check the jdk version maven is using and perhaps change it. Or, is there any other solution? Thanks.
Re: Sonatype RSO and Sonatype OSS
RSO is Sonatype forge, it hosts Sonatype built/developed/patched artifacts. OSS is public forge meant for 3rd parties, offering simpler access to Central Repository (simpler deploy access), as a convenience, nothing more. Thanks, ~t~ On Fri, Jan 20, 2012 at 2:00 PM, Olivier Lamy ol...@apache.org wrote: Hello, Ask Sonatype. 2012/1/20 amaresh mourya amaresh.mou...@gmail.com: Hi All, What's difference between https://repository.sonatype.org - Sonatype RSO And https://oss.sonatype.org/ - Sonatype OSS Thanks, Amaresh -- 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: custom unique version
Am 20.01.2012 15:30, schrieb Stephen Connolly: 2012/1/20 Thomas Schefflerthomas.scheff...@uni-jena.de: Am 20.01.2012 12:40, schrieb Stephen Connolly: You can stuff what ever you want in tge manifest. Google is your friend: maven jar plugin manifest customization Hi, yeah I know that. But how can I put the unique version number into the JAR manifest? OK, let me put this in another form, so you might understand what I was asking you. I know how to put custom keys and values into a manifest. That's the yeah I know that above. The question should have been understand like this: How can I acquire the unique version number that makes of 1.0-SNAPSHOT locally 1.0-20120120.121003-6 remotely, so that I can put it into the JAR manifest of the JAR file that is deployed in a remote repository? Or in other words: The substring 20120120.121003-6 is changing at every deployment. I want that part in the manifest. Thomas http://bit.ly/zijlWA See the example on that screen... See how properties are substituted in? Then you need to go to http://to.justpitch.me/yiTp6D -Stephen Thomas Am 20.01.2012 10:32, schrieb Stephen Connolly: It cannot. That is part of the spec for the layout of a Maven repository. Is there a way to embed the unique version string into the JAR manifest then? If I test an application with a snapshot jar I want stick with that specific version when deploying the application later. This should be done automatically. 1. Do some automatic test, if they succeed gather the unique version number. 2. At deploy time use the last successful timestamp. Maybe someone could help me with that... :-) regards Thomas -Stephen 2012/1/20 Thomas Schefflerthomas.scheffler@**uni-jena.dethomas.scheff...@uni-jena.de : Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: custom unique version
2012/1/20 Thomas Scheffler thomas.scheff...@uni-jena.de: Am 20.01.2012 15:30, schrieb Stephen Connolly: 2012/1/20 Thomas Schefflerthomas.scheff...@uni-jena.de: Am 20.01.2012 12:40, schrieb Stephen Connolly: You can stuff what ever you want in tge manifest. Google is your friend: maven jar plugin manifest customization Hi, yeah I know that. But how can I put the unique version number into the JAR manifest? OK, let me put this in another form, so you might understand what I was asking you. I know how to put custom keys and values into a manifest. That's the yeah I know that above. The question should have been understand like this: How can I acquire the unique version number that makes of 1.0-SNAPSHOT locally 1.0-20120120.121003-6 remotely, so that I can put it into the JAR manifest of the JAR file that is deployed in a remote repository? That string is decided when deploy:deploy is invoked, so you cannot put that string in. Or in other words: The substring 20120120.121003-6 is changing at every deployment. I want that part in the manifest. Thomas http://bit.ly/zijlWA See the example on that screen... See how properties are substituted in? Then you need to go to http://to.justpitch.me/yiTp6D -Stephen Thomas Am 20.01.2012 10:32, schrieb Stephen Connolly: It cannot. That is part of the spec for the layout of a Maven repository. Is there a way to embed the unique version string into the JAR manifest then? If I test an application with a snapshot jar I want stick with that specific version when deploying the application later. This should be done automatically. 1. Do some automatic test, if they succeed gather the unique version number. 2. At deploy time use the last successful timestamp. Maybe someone could help me with that... :-) regards Thomas -Stephen 2012/1/20 Thomas Schefflerthomas.scheffler@**uni-jena.dethomas.scheff...@uni-jena.de : Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - 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: custom unique version
Of all of the developers that have built thousands of applications using Maven, you are the only one who wants to do this. Does that not raise any red flags? There must be a best practice for what you are trying to achieve. This is clearly not it. Ron On 20/01/2012 10:14 AM, Stephen Connolly wrote: 2012/1/20 Thomas Schefflerthomas.scheff...@uni-jena.de: Am 20.01.2012 15:30, schrieb Stephen Connolly: 2012/1/20 Thomas Schefflerthomas.scheff...@uni-jena.de: Am 20.01.2012 12:40, schrieb Stephen Connolly: You can stuff what ever you want in tge manifest. Google is your friend: maven jar plugin manifest customization Hi, yeah I know that. But how can I put the unique version number into the JAR manifest? OK, let me put this in another form, so you might understand what I was asking you. I know how to put custom keys and values into a manifest. That's the yeah I know that above. The question should have been understand like this: How can I acquire the unique version number that makes of 1.0-SNAPSHOT locally 1.0-20120120.121003-6 remotely, so that I can put it into the JAR manifest of the JAR file that is deployed in a remote repository? That string is decided when deploy:deploy is invoked, so you cannot put that string in. Or in other words: The substring 20120120.121003-6 is changing at every deployment. I want that part in the manifest. Thomas http://bit.ly/zijlWA See the example on that screen... See how properties are substituted in? Then you need to go to http://to.justpitch.me/yiTp6D -Stephen Thomas Am 20.01.2012 10:32, schrieb Stephen Connolly: It cannot. That is part of the spec for the layout of a Maven repository. Is there a way to embed the unique version string into the JAR manifest then? If I test an application with a snapshot jar I want stick with that specific version when deploying the application later. This should be done automatically. 1. Do some automatic test, if they succeed gather the unique version number. 2. At deploy time use the last successful timestamp. Maybe someone could help me with that... :-) regards Thomas -Stephen 2012/1/20 Thomas Schefflerthomas.scheffler@**uni-jena.dethomas.scheff...@uni-jena.de : Hi, I want to create a unique SNAPSHOT version that does not consist of timestamp and buildnumber but is created by a defined property. I read the docs and googled for a solution but found no way to alter the unique version string. How can this be achieved? regards Thomas - 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 -- 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
RE: war overrides webapp content from webapp resources
That's probably because your war's sourceDirectory is src/main/webapp. I always put filtered resources in src/main/webResources and non-filtered everything else goes in src/main/webapp. Matt -Original Message- From: mschipperheyn [mailto:m.schipperh...@gmail.com] Sent: Friday, January 20, 2012 6:00 AM To: users@maven.apache.org Subject: war:war overrides webapp content from webapp resources Hi, I'm running into a little issue in war:war that has a workaround but I'm still bothered by it: I'm trying to filter stuff from src/main/webapp/ This works However, my filtered result is overwritten in the last part of resource copying [INFO] Processing war project [INFO] Copying webapp webResources [d:\projects\project\web\src/main/webapp] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp webResources [d:\projects\project\web\target/classes] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp webResources [d:\projects\project\web\src/main/webapp/WEB-INF] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp webResources [d:\projects\project\web\../core/target] to [d:\projects\project\web\target\MyProject-webapp-1.0-SNAPSHOT] [INFO] Copying webapp resources [d:\projects\project\web\src\main\webapp] It's the last line that is the problem because it overwrites the filtered webResources copy in an unfiltered way. I'm just wondering where it comes from and how to change it plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId version2.2-SNAPSHOT/version configuration webResources resource directorysrc/main/webapp/directory excludes exclude**/Thumbs.db/exclude exclude**/.svn/**/exclude exclude**/*-min.js/exclude exclude**/*-min.css/exclude /excludes /resource resource directorytarget/classes/directory targetPathWEB-INF/classes/targetPath /resource resource directory../core/target/directory includes include${parent.artifactId}-core- ${version}.jar/include /includes targetPathWEB-INF/lib/targetPath /resource /webResources packagingExcludes/packagingExcludes warSourceExcludes**/Thumbs.db,*.js,*.css/warSourceExcludes /configuration /plugin resources resource directorysrc/main/resources/directory excludes excludeApplicationResources_*.properties/exclude excludeapplicationContext-*.xml/exclude /excludes filteringtrue/filtering /resource resource directorysrc/main/resources/directory includes includeapplicationContext-resources.xml/include /includes /resource /resources Cheers, Marc -- View this message in context: http://maven.40175.n5.nabble.com/war-war- overrides-webapp-content-from-webapp-resources-tp5160326p5160326.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 __ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Release perform met exception because of strange project structure.
Do you have any idea for this? If I should change the structure or if there is other method can solve this? Changing the structure seems like the most pragmatic solution to your problem. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
deploying custom build artifact
I'm using the maven-exec-plugin to run a process that produces a binary executable, let's call it myBin.run I would like to treat this as my maven artifact, i.e. have it deployed to my nexus repository during the deploy phase. What's the best way to do this? The deploy:deploy mojo seems like it might work, but it doesn't appear to have the configuration that would allow me to tell it about my custom artifact file. The deploy:deploy-file mojo has those configurations, but the docs make it sound as if it's to be used outside the scope of an actual maven build. Advice? Other options?
Difference between compile and provided scope for jar artifacts
When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a difference between compile and provided . . . am I missing something?
Re: Sonatype RSO and Sonatype OSS
thanks Tamás Cservenák 2012/1/20 Tamás Cservenák ta...@cservenak.net RSO is Sonatype forge, it hosts Sonatype built/developed/patched artifacts. OSS is public forge meant for 3rd parties, offering simpler access to Central Repository (simpler deploy access), as a convenience, nothing more. Thanks, ~t~ On Fri, Jan 20, 2012 at 2:00 PM, Olivier Lamy ol...@apache.org wrote: Hello, Ask Sonatype. 2012/1/20 amaresh mourya amaresh.mou...@gmail.com: Hi All, What's difference between https://repository.sonatype.org - Sonatype RSO And https://oss.sonatype.org/ - Sonatype OSS Thanks, Amaresh -- 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: Difference between compile and provided scope for jar artifacts
Makes more sense in terms of a WAR. Compile scope jars are copied to WEB-INF/lib. Provided scope jars aren't. For example, the servlet-api would be provided by the servlet container. Matt -Original Message- From: chad.da...@emc.com [mailto:chad.da...@emc.com] Sent: Friday, January 20, 2012 9:45 AM To: users@maven.apache.org Subject: Difference between compile and provided scope for jar artifacts When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a difference between compile and provided . . . am I missing something? __ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Difference between compile and provided scope for jar artifacts
Am 20.01.2012 17:44 schrieb chad.da...@emc.com: When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a difference between compile and provided . . . am I missing something? Yes. Dependency management capabilities of Maven. Maven will put compile-scoped dependencies on the compile classpath automatically, whereas for provided it does not. Regards Ansgar
RE: Difference between compile and provided scope for jar artifacts
Are you sure about that? I believe provided go on the compile classpath as well. To quote the maven docs: Provided This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive. -Original Message- From: Ansgar Konermann [mailto:ansgar.konerm...@googlemail.com] Sent: Friday, January 20, 2012 9:57 AM To: Maven Users List Subject: Re: Difference between compile and provided scope for jar artifacts Am 20.01.2012 17:44 schrieb chad.da...@emc.com: When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a difference between compile and provided . . . am I missing something? Yes. Dependency management capabilities of Maven. Maven will put compile-scoped dependencies on the compile classpath automatically, whereas for provided it does not. Regards Ansgar __ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: deploying custom build artifact
Maven build helper plugin. Goal attach-artifact. Am 20.01.2012 17:42 schrieb chad.da...@emc.com: I'm using the maven-exec-plugin to run a process that produces a binary executable, let's call it myBin.run I would like to treat this as my maven artifact, i.e. have it deployed to my nexus repository during the deploy phase. What's the best way to do this? The deploy:deploy mojo seems like it might work, but it doesn't appear to have the configuration that would allow me to tell it about my custom artifact file. The deploy:deploy-file mojo has those configurations, but the docs make it sound as if it's to be used outside the scope of an actual maven build. Advice? Other options?
RE: Difference between compile and provided scope for jar artifacts
Yay, mixed it up. provided scope breaks up transitivity, so direct dependencies are on compile classpath, transitive ones are not. Best regards Ansgar Am 20.01.2012 18:04 schrieb Matt Walsh mwa...@chartwelltechnology.com: Are you sure about that? I believe provided go on the compile classpath as well. To quote the maven docs: Provided This is much like compile, but indicates you expect the JDK or a container to provide the dependency at runtime. For example, when building a web application for the Java Enterprise Edition, you would set the dependency on the Servlet API and related Java EE APIs to scope provided because the web container provides those classes. This scope is only available on the compilation and test classpath, and is not transitive. -Original Message- From: Ansgar Konermann [mailto:ansgar.konerm...@googlemail.com] Sent: Friday, January 20, 2012 9:57 AM To: Maven Users List Subject: Re: Difference between compile and provided scope for jar artifacts Am 20.01.2012 17:44 schrieb chad.da...@emc.com: When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a difference between compile and provided . . . am I missing something? Yes. Dependency management capabilities of Maven. Maven will put compile-scoped dependencies on the compile classpath automatically, whereas for provided it does not. Regards Ansgar __ This message, including any attachments, is confidential and contains information intended only for the person(s) named above. Any other distribution, copying or disclosure is strictly prohibited. If you are not the intended recipient or have received this message in error, please notify us immediately by reply email and permanently delete the original transmission from all of your systems and hard drives, including any attachments, without making a copy. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven 3.0.4 released
Hello, The Apache Maven team is pleased to announce the release of Apache Maven 3.0.4 Release notes available: http://maven.apache.org/docs/3.0.4/release-notes.html . Maven is a project comprehension and build tool, designed to simplify the process of maintaining a healthy development lifecycle for your project. You can read more here: http://maven.apache.org/ Downloads of source and binary distributions are listed in our download section: http://maven.apache.org/download.html A major goal of Maven 3.0.x is to be compatible, to the extent possible, with existing plugins and projects designed for Maven 2.x. Users interested in upgrading to 3.x should have a glance at the compatibility notes for known differences between Maven 3.0 and Maven 2.x: http://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html Users who already use Maven 3.0.x are encouraged to update to this new maintenance release. If you encounter unexpected problems while using Maven 3.0.4, please feel free to contact us via the Maven developer list: http://maven.apache.org/mail-lists.html Release Notes - Maven 2 3 - Version 3.0.4 ** Bug * [MNG-4792] - Preemptive authentication doesn't work * [MNG-5064] - mvn -nsu (--no-snapshot-updates) should not download snapshots (and break local builds) * [MNG-5096] - exclusion on dependency with typetest-jar/type doesn't work in maven 3 * [MNG-5113] - NullPointerException on javadoc site generation * [MNG-5131] - Wrong encoding for encrypted passwords * [MNG-5135] - Regression: in some cases aggregator mojo is unable to resolve dependencies with custom packaging * [MNG-5137] - Reactor resolution does not work for forked multi module builds * [MNG-5149] - DefaultArtifactRepositoryFactory.createArtifactRepository overload w/ layoutId passes wrong (repo) id * [MNG-5153] - ModelMerger omits relativ path * [MNG-5155] - 'inherited' flag of report sets ignored. * [MNG-5157] - NPE stemming from DefaultModelBuilder.containsCoordinates * [MNG-5163] - MavenProject.getPluginRepositories misimplemented * [MNG-5164] - Odd name of central in superpom * [MNG-5165] - Problem with scp transport (wagon-maven-plugin 1.0-beta-3, Maven 2.2.1, Ubuntu 11.04) * [MNG-5192] - prevent ConcurrentModificationException in parallel mode -Tx when project have errors * [MNG-5221] - Default version of m-site-p does not work (no reports) * [MNG-5224] - REGRESSION: Injected Settings in a Mojo are missing the profiles from settings.xml * [MNG-5225] - The default version of the maven-site-plugin as defined in the site-lifecycle must be 3.x ** Improvement * [MNG-4112] - Set property containing the currently executing maven version. * [MNG-5073] - ProjectBuilder.build(File,ProjectBuildingRequest) returns null project if dependency version info is missing * [MNG-5076] - Improve SEO of documentation of lifecycle.xml * [MNG-5119] - improve site organization of core components * [MNG-5134] - Standard documentation for build-in properties * [MNG-5141] - Make MojoExecutor.ensureDependenciesAreResolved public * [MNG-5151] - use CNAME or repo to provide more stability * [MNG-5152] - upgrade wagon to the final 1.0 version * [MNG-5158] - Make loading of extensions from lib/ext more robust with regard to existence of ext directory * [MNG-5159] - Extend validation of settings.xml to check for uniqueness of id elements * [MNG-5175] - replace wagon http lightweight with wagon http 2.1 * [MNG-5200] - upgrade plugin versions in super pom * [MNG-5201] - upgrade aether to 1.13.1 and sisu to 2.3.0 ** Task * [MNG-5046] - Remove $Id$ from sources ** Test * [MNG-5114] - Handling unrecognized version qualifiers ** Wish * [MNG-5118] - add aggregated javadoc Have Fun! -- The Apache Maven Team. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Difference between compile and provided scope for jar artifacts
If you want to include all dependencies into jar, you can use maven assembly plugin. You can integrate it to build process, see: http://stackoverflow.com/a/589111/121143 I have done this for creating full-blown jar with test which can be easily uploaded to Amazon micro instance for load testing. Martin Schayna On 01/20/2012 05:45 PM, chad.da...@emc.com wrote: When I build a jar file, the compile dependencies are not packaged into the jar. So, this means that they are expected to be provided somewhere else in the run time environment, doesn't it? Which means that it doesn't seem like there's a difference between compile and provided . . . am I missing something? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Removing some modules in a maven profile
Hi, I have say a few modules defiled in the parent pom.xml as: modules modulea/module moduleb/module modulec/module /modules I want the default profile builds the entire module list but create a new profile that say only builds a and b but not c. I have seen a thread where adding a module is suggested in a profile instead of removing (excluding) one. I tried to give module a and b in the profile and still mvn built everything, I guess because it builds the parent list first (?). Is there a way to accomplish this? Thanks for your help, -Ashish
RE: Removing some modules in a maven profile
I have seen this accomplished through the use of profiles and defining the modules within the profile. -Original Message- From: Ashish Srivastava [mailto:ashis...@yahoo.com] Sent: Friday, January 20, 2012 12:27 PM To: users@maven.apache.org Subject: Removing some modules in a maven profile Hi, I have say a few modules defiled in the parent pom.xml as: modules modulea/module moduleb/module modulec/module /modules I want the default profile builds the entire module list but create a new profile that say only builds a and b but not c. I have seen a thread where adding a module is suggested in a profile instead of removing (excluding) one. I tried to give module a and b in the profile and still mvn built everything, I guess because it builds the parent list first (?). Is there a way to accomplish this? Thanks for your help, -Ashish - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Apache Maven 3.0.4 released
Great. Thanks to all involved for their efforts. manfred On 12-01-20 09:15 AM, Olivier Lamy wrote: Hello, The Apache Maven team is pleased to announce the release of Apache Maven 3.0.4 Release notes available: http://maven.apache.org/docs/3.0.4/release-notes.html . Maven is a project comprehension and build tool, designed to simplify the process of maintaining a healthy development lifecycle for your project. You can read more here: http://maven.apache.org/ Downloads of source and binary distributions are listed in our download section: http://maven.apache.org/download.html A major goal of Maven 3.0.x is to be compatible, to the extent possible, with existing plugins and projects designed for Maven 2.x. Users interested in upgrading to 3.x should have a glance at the compatibility notes for known differences between Maven 3.0 and Maven 2.x: http://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html Users who already use Maven 3.0.x are encouraged to update to this new maintenance release. If you encounter unexpected problems while using Maven 3.0.4, please feel free to contact us via the Maven developer list: http://maven.apache.org/mail-lists.html Release Notes - Maven 2 3 - Version 3.0.4 ** Bug * [MNG-4792] - Preemptive authentication doesn't work * [MNG-5064] - mvn -nsu (--no-snapshot-updates) should not download snapshots (and break local builds) * [MNG-5096] -exclusion ondependency with typetest-jar/type doesn't work in maven 3 * [MNG-5113] - NullPointerException on javadoc site generation * [MNG-5131] - Wrong encoding for encrypted passwords * [MNG-5135] - Regression: in some cases aggregator mojo is unable to resolve dependencies with custom packaging * [MNG-5137] - Reactor resolution does not work for forked multi module builds * [MNG-5149] - DefaultArtifactRepositoryFactory.createArtifactRepository overload w/ layoutId passes wrong (repo) id * [MNG-5153] - ModelMerger omits relativ path * [MNG-5155] - 'inherited' flag of report sets ignored. * [MNG-5157] - NPE stemming from DefaultModelBuilder.containsCoordinates * [MNG-5163] - MavenProject.getPluginRepositories misimplemented * [MNG-5164] - Oddname of central in superpom * [MNG-5165] - Problem with scp transport (wagon-maven-plugin 1.0-beta-3, Maven 2.2.1, Ubuntu 11.04) * [MNG-5192] - prevent ConcurrentModificationException in parallel mode -Tx when project have errors * [MNG-5221] - Default version of m-site-p does not work (no reports) * [MNG-5224] - REGRESSION: Injected Settings in a Mojo are missing the profiles from settings.xml * [MNG-5225] - The default version of the maven-site-plugin as defined in the site-lifecycle must be 3.x ** Improvement * [MNG-4112] - Set property containing the currently executing maven version. * [MNG-5073] - ProjectBuilder.build(File,ProjectBuildingRequest) returns null project if dependency version info is missing * [MNG-5076] - Improve SEO of documentation of lifecycle.xml * [MNG-5119] - improve site organization of core components * [MNG-5134] - Standard documentation for build-in properties * [MNG-5141] - Make MojoExecutor.ensureDependenciesAreResolved public * [MNG-5151] - use CNAME or repo to provide more stability * [MNG-5152] - upgrade wagon to the final 1.0 version * [MNG-5158] - Make loading of extensions from lib/ext more robust with regard to existence of ext directory * [MNG-5159] - Extend validation of settings.xml to check for uniqueness of id elements * [MNG-5175] - replace wagon http lightweight with wagon http 2.1 * [MNG-5200] - upgrade plugin versions in super pom * [MNG-5201] - upgrade aether to 1.13.1 and sisu to 2.3.0 ** Task * [MNG-5046] - Remove $Id$ from sources ** Test * [MNG-5114] - Handling unrecognized version qualifiers ** Wish * [MNG-5118] - add aggregated javadoc Have Fun! -- The Apache Maven Team. - 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
Removing a module in a maven profile
Hi, (sorry if this mail was sent twice) I have many modules in the parent pom.xml (a, b, c) and by default it should build all these modules. I want to create a new profile that should only build a subset of these modules (say only a and b but not c). I have read a similar thread on this forum where it was suggested to add a module in a profile but what I want is to exclude some. Is there a way to accomplish this? Thanks, -Ashish
Re: Removing some modules in a maven profile
I want the default profile builds the entire module list but create a new profile that say only builds a and b but not c. I have seen a thread where adding a module is suggested in a profile instead of removing (excluding) one. I tried to give module a and b in the profile and still mvn built everything, I guess because it builds the parent list first (?). Is there a way to accomplish this? You can do this if you merely think in opposite terms. Your parent should only include A and B. Your profile should include C. Then you build normal when you want to only build A and B, and activate the profile to include C. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: [ANN] Apache Maven 3.0.4 released
+1 Would vote again - Congrats on the release. -- Great artists are extremely selfish and arrogant things — Steven Wilson, Porcupine Tree On Sat, Jan 21, 2012 at 7:53 AM, Manfred Moser manf...@mosabuam.com wrote: Great. Thanks to all involved for their efforts.
Word Documents for Release Team and SET files of the application.
Hi Team, I have couple of questions as our application has some thing other then source code too. 1) How to manage Word Document which we usually provide to Release team in order to execute our work orders, Which is right now something like this. my_application --java/main/doc ? ( Is this the place to put those WORD documents ? ) --my-application-ejb pom.xml --my-application-client pom.xml --my-application-webservice pom.xml --pom.xml I don't see any guidelines in MAVEN STRCUTURE link. ( http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html) 2) How to manage .SET, JMS Queue XML files, SQL files, which we needs to deploy on different SERVER during our WORK order execution by release team. my_application --java/main/config ? ( Is this the place to put those .SET and JMS XML files ? ) --java/main/sql ? ( Is this the place to put those .SQL files ? ) --my-application-ejb pom.xml --my-application-client pom.xml --my-application-webservice pom.xml --pom.xml Looking for answers on these questions. Thanks.
Re: Word Documents for Release Team and SET files of the application.
1) How to manage Word Document which we usually provide to Release team in order to execute our work orders, Which is right now something like this. my_application --java/main/doc ? ( Is this the place to put those WORD documents ? ) If this is working for you, then it is a fine place to put them. 2) How to manage .SET, JMS Queue XML files, SQL files, which we needs to deploy on different SERVER during our WORK order execution by release team. my_application --java/main/config ? ( Is this the place to put those .SET and JMS XML files ? ) --java/main/sql ? ( Is this the place to put those .SQL files ? ) If this is working for you, this is a fine place to put them. Maven doesn't care where you put files such as these. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
RE: Release perform met exception because of strange project structure.
Hi Wayne, I had changed the project structure now, it works well. Thanks for your comments. Brs, Tim -Original Message- From: Wayne Fay [mailto:wayne...@gmail.com] Sent: Saturday, January 21, 2012 12:30 AM To: Maven Users List Subject: Re: Release perform met exception because of strange project structure. Do you have any idea for this? If I should change the structure or if there is other method can solve this? Changing the structure seems like the most pragmatic solution to your problem. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Word Documents for Release Team and SET files of the application.
So looks like there isn't any Standard defined by MAVEN for that.. We have to use maven-assembly-plugin in order to package it correct ? On Fri, Jan 20, 2012 at 5:46 PM, Wayne Fay wayne...@gmail.com wrote: 1) How to manage Word Document which we usually provide to Release team in order to execute our work orders, Which is right now something like this. my_application --java/main/doc ? ( Is this the place to put those WORD documents ? ) If this is working for you, then it is a fine place to put them. 2) How to manage .SET, JMS Queue XML files, SQL files, which we needs to deploy on different SERVER during our WORK order execution by release team. my_application --java/main/config ? ( Is this the place to put those .SET and JMS XML files ? ) --java/main/sql ? ( Is this the place to put those .SQL files ? ) If this is working for you, this is a fine place to put them. Maven doesn't care where you put files such as these. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org