Managing module dependency in Maven parallel build

2012-01-20 Thread Ashish Srivastava
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

custom unique version

2012-01-20 Thread Thomas Scheffler
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

Re: Managing module dependency in Maven parallel build

2012-01-20 Thread Stephen Connolly
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

Re: Managing module dependency in Maven parallel build

2012-01-20 Thread Kristian Rosenvold
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

Re: custom unique version

2012-01-20 Thread Stephen Connolly
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

Re: Error deploying artifact: Resource to deploy not found: File

2012-01-20 Thread dodge
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

Re: custom unique version

2012-01-20 Thread Thomas Scheffler
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

Re: custom unique version

2012-01-20 Thread Stephen Connolly
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,

Re: mavem-war-plugin packagingExcludes regex not working

2012-01-20 Thread mschipperheyn
.*(?!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

SureFire Report Plugin - to write a content

2012-01-20 Thread muaazster
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

Re: mavem-war-plugin packagingExcludes regex not working

2012-01-20 Thread Guillaume Polet
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:

Sonatype RSO and Sonatype OSS

2012-01-20 Thread amaresh mourya
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

2012-01-20 Thread mschipperheyn
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

Re: Sonatype RSO and Sonatype OSS

2012-01-20 Thread Olivier Lamy
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

Re: mavem-war-plugin packagingExcludes regex not working

2012-01-20 Thread mschipperheyn
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

Re: custom unique version

2012-01-20 Thread Thomas Scheffler
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

how to check/change the jdk version used by maven

2012-01-20 Thread pranay agarwal
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

Re: Sonatype RSO and Sonatype OSS

2012-01-20 Thread Tamás Cservenák
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

Re: custom unique version

2012-01-20 Thread Thomas Scheffler
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

Re: custom unique version

2012-01-20 Thread Stephen Connolly
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

Re: custom unique version

2012-01-20 Thread Ron Wheeler
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

RE: war overrides webapp content from webapp resources

2012-01-20 Thread Matt Walsh
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,

Re: Release perform met exception because of strange project structure.

2012-01-20 Thread Wayne Fay
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:

deploying custom build artifact

2012-01-20 Thread Chad.Davis
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

Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Chad.Davis
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

Re: Sonatype RSO and Sonatype OSS

2012-01-20 Thread amaresh mourya
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.

RE: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Matt Walsh
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,

Re: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Ansgar Konermann
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

RE: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Matt Walsh
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

Re: deploying custom build artifact

2012-01-20 Thread Ansgar Konermann
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

RE: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Ansgar Konermann
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

[ANN] Apache Maven 3.0.4 released

2012-01-20 Thread Olivier Lamy
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

Re: Difference between compile and provided scope for jar artifacts

2012-01-20 Thread Martin Schayna
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

Removing some modules in a maven profile

2012-01-20 Thread Ashish Srivastava
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

RE: Removing some modules in a maven profile

2012-01-20 Thread Lyons, Roy
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

Re: [ANN] Apache Maven 3.0.4 released

2012-01-20 Thread Manfred Moser
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

Removing a module in a maven profile

2012-01-20 Thread Ashish
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

Re: Removing some modules in a maven profile

2012-01-20 Thread Wayne Fay
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

Re: [ANN] Apache Maven 3.0.4 released

2012-01-20 Thread Mark Derricutt
+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.

2012-01-20 Thread Daivish Shah
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

Re: Word Documents for Release Team and SET files of the application.

2012-01-20 Thread Wayne Fay
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

RE: Release perform met exception because of strange project structure.

2012-01-20 Thread Tim Wu T
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

Re: Word Documents for Release Team and SET files of the application.

2012-01-20 Thread Daivish Shah
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