Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Stephen Connolly
just use -DskipTests as that will skip running the tests but not compiling or packaging them... oh and it's shorter than its alias -Dmaven.skip.test.exec=true as well as the bigger skip that you are using -Dmaven.skip.test=true -Stephen On 3 September 2010 02:28, Andrew Hughes ahhug...@gmail.com

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Barrie Treloar
On Fri, Sep 3, 2010 at 4:15 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: just use -DskipTests as that will skip running the tests but not compiling or packaging them... oh and it's shorter than its alias -Dmaven.skip.test.exec=true as well as the bigger skip that you are using

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Stephen Connolly
and you don't need the =true for -DskipTests On 3 September 2010 08:17, Barrie Treloar baerr...@gmail.com wrote: On Fri, Sep 3, 2010 at 4:15 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: just use -DskipTests as that will skip running the tests but not compiling or packaging

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Andrew Hughes
Hi Guys, The problem is not that we're skipping the tests. I really don't want to run the tests... but I do want the jar:test-jar to still run and build... moduleA-0.0.0-test.jar so that other module dependencies still resolve this. On Fri, Sep 3, 2010 at 5:08 PM, Stephen Connolly

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Stephen Connolly
-DskipTests only skips running the tests not building the test-jar On 3 September 2010 09:58, Andrew Hughes ahhug...@gmail.com wrote: Hi Guys, The problem is not that we're skipping the tests. I really don't want to run the tests... but I do want the jar:test-jar to still run and build...

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Benson Margulies
There are a number of pitfalls with test jars. My entirely personal suggestion is this: any time you are tempted to put a test jar configuration into a POM, just go and make a new, ordinary, project with the shared test code in it, and use it with scopetest/scope. You won't regret it. On Fri, Sep

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Stephen Connolly
That is my personal preference as well, but sometimes people do what they want to do ;-) On 3 September 2010 15:14, Benson Margulies bimargul...@gmail.com wrote: There are a number of pitfalls with test jars. My entirely personal suggestion is this: any time you are tempted to put a test jar

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-03 Thread Andrew Hughes
I was avoiding this, but you're both only re-enforcing what I was thinking of doing. I have raised this as an issue (improvement) for the jar plugin http://jira.codehaus.org/browse/MJAR-138 at least it's on the radar that way. Please feel encouraged to comment/edit the issue if you can add

-Dmaven.test.skip=true jar:test-jar

2010-09-02 Thread Andrew Hughes
Hi Guys, When -Dmaven.test.skip=true the jar:test-jar goals are skipped. Other modules who have a dependency on the jar:test-jar artifact then fail (unresolved dependency). Is this a sensible default for the plugin and any idea's how I can override this? Thanks heaps (again) :) --Andrew

Re: -Dmaven.test.skip=true jar:test-jar

2010-09-02 Thread Barrie Treloar
On Fri, Sep 3, 2010 at 10:58 AM, Andrew Hughes ahhug...@gmail.com wrote: Hi Guys, When -Dmaven.test.skip=true the jar:test-jar goals are skipped. Other modules who have a dependency on the jar:test-jar artifact then fail (unresolved dependency). Is this a sensible default for the plugin and