Re: Maven release with sub modules have miss match version??

2015-09-01 Thread Dan Tran
Thanks Robert, if anyone has done this scenario, please share your experience :-) -Dan On Tue, Sep 1, 2015 at 8:51 AM, Robert Scholte wrote: > it should support separate versions, although it is not the best practice. > try running it with -DdryRun first to confirm. > >

What does the TODO refering to a "jarjar" format in the maven-assembly-plugin jar-with-dependencies example mean?

2015-09-01 Thread Timo
Hello everyone, a question on Stack Overflow made me curious about the following line in the jar-with-dependencies example descriptor file (http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies): What does this mean? Is it refering to jarjar

Re: maven jar versus ant jar

2015-09-01 Thread Wayne Fay
Greg T. sent you this reply a few days back when you asked this question previously: > jar tvf abc.jar That is (still) the answer to your question. Wayne On Tue, Sep 1, 2015 at 3:29 PM, Magnanao, Hector wrote: > I was finally able to build my snapshot jar using maven

Re: Can not build with Junit4.18

2015-09-01 Thread 建文
Junit is added in dependencies,and i can run Junit test in my Eclipse, but when run mvn clean install -DskipTests=true fail On 2015/9/1 23:56, Sandra Parsick wrote: Hi, You have to add the junit dependency in your section. But I would recommend you to move the tests to src/test/java. Best

Re: maven jar versus ant jar

2015-09-01 Thread Wayne Fay
Try "mvn clean" first to be sure you didn't accidentally put the contents of that jar file in target/ and forget about it. Then build again. If it is still large and includes those files, there must be something in your pom file that is causing it to occur. Very hard to debug your build without

maven jar versus ant jar

2015-09-01 Thread Magnanao, Hector
I was finally able to build my snapshot jar using maven after going thru all the missing dependencies. But what I noticed is that the maven jar is much larger than my ant jar. Can anybody tell me why this is so ? Should they be different in sizes after converting the build to maven ? what

RE: maven jar versus ant jar

2015-09-01 Thread Magnanao, Hector
I found out why my maven jar is much bigger. It looks like it's including a dependency jar inside the SNAPSHOT jar. I installed this jar locally so I can compile but now it's being included in the build itself. So how do I exclude it when I do a mvn package ? -Original Message- From:

Re: maven jar versus ant jar

2015-09-01 Thread Tobias Hochgürtel
You can unpack the jar files to see what they include. This should help you to find out what they makes fat or slimmer as the other one. HTH Tobias Am 01.09.2015 um 22:29 schrieb Magnanao, Hector: > I was finally able to build my snapshot jar using maven after going thru all > the missing

Re: What does the TODO refering to a "jarjar" format in the maven-assembly-plugin jar-with-dependencies example mean?

2015-09-01 Thread Wayne Fay
SVN says Brett posted that file (over 10 yrs ago), so maybe he can tell us more: "Added Mon Apr 18 07:07:58 2005 UTC (10 years, 4 months ago) by brett" http://svn.apache.org/viewvc/maven/plugins/tags/maven-assembly-plugin-2.5.5/src/main/resources/assemblies/jar-with-dependencies.xml?view=log I

Maven release with sub modules have miss match version??

2015-09-01 Thread Dan Tran
Hi, is it possible that release plugin can handle this situation? Or the entire release tree must use the same release version. Period Thanks -Dan

RE: Using build-helper-maven-plugin in bundle projects causing problems with in -SNAPSHOT builds

2015-09-01 Thread Robert.Blackard
All, This is resolved, though I don't much like the solution. It seems the problem was using the command "mvn clean deploy" rather than "mvn clean bundle:deploy". Multiple plugins were matching the deploy goal, and one of those was incrementing the buildNumber an extra time and

Re: Maven release with sub modules have miss match version??

2015-09-01 Thread Robert Scholte
it should support separate versions, although it is not the best practice. try running it with -DdryRun first to confirm. Robert Op Tue, 01 Sep 2015 17:04:16 +0200 schreef Dan Tran : Hi, is it possible that release plugin can handle this situation? Or the entire release

Re: Can not build with Junit4.18

2015-09-01 Thread Sandra Parsick
Hi, You have to add the junit dependency in your section. But I would recommend you to move the tests to src/test/java. Best regards, Sandra Am 30.08.2015 um 15:40 schrieb 建文: > I add junit4.8 in my project, and the test java classes are in > src/main/java not src/test/java(i know it's not