Discussion:
To Skip some execution with mvn install and mvn assembly:assembly
Laurent PELLEGRINO
2009-12-03 15:54:13 UTC
Permalink
Dear all,

I am looking for two things but I don't found how to do :

1/ How to indicate in pom file to skip tests and assembly execution
(by assembly execution I mean it handle my jar-with-dependency target)
when I execute mvn install ?

2/ How to indicate in pom file to skip tests when I execute mvn
assembly:assembly ?

Thanks.

Kind Regards
Laurent
Anders Hammar
2009-12-03 20:56:27 UTC
Permalink
Does this work:
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skipTests

/Anders

On Thu, Dec 3, 2009 at 16:54, Laurent PELLEGRINO <
Post by Laurent PELLEGRINO
Dear all,
1/ How to indicate in pom file to skip tests and assembly execution
(by assembly execution I mean it handle my jar-with-dependency target)
when I execute mvn install ?
2/ How to indicate in pom file to skip tests when I execute mvn
assembly:assembly ?
Thanks.
Kind Regards
Laurent
---------------------------------------------------------------------
Laurent PELLEGRINO
2009-12-04 17:29:56 UTC
Permalink
Thanks it works in order to skip tests :-)
However I don't found how to skip assembly target when I execute mvn install.

Is it possible ?
Post by Anders Hammar
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skipTests
/Anders
On Thu, Dec 3, 2009 at 16:54, Laurent PELLEGRINO <
Post by Laurent PELLEGRINO
Dear all,
1/ How to indicate in pom file to skip tests and assembly execution
(by assembly execution I mean it handle my jar-with-dependency target)
when I execute mvn install ?
2/ How to indicate in pom file to skip tests when I execute mvn
assembly:assembly ?
Thanks.
Kind Regards
Laurent
---------------------------------------------------------------------
Anders Hammar
2009-12-04 22:56:57 UTC
Permalink
Not sure what you mean by "assembly target". Have you bound the assembly
plugin to some phase but want to skip it?!
You cannot unbind a plugin, but some plugins provide some configuration
option to turn tem off (like surefire for skipping tests). So you need to
know which plugin it is you want to disable.

/Anders

On Fri, Dec 4, 2009 at 18:29, Laurent PELLEGRINO <
Post by Laurent PELLEGRINO
Thanks it works in order to skip tests :-)
However I don't found how to skip assembly target when I execute mvn install.
Is it possible ?
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#skipTests
Post by Anders Hammar
/Anders
On Thu, Dec 3, 2009 at 16:54, Laurent PELLEGRINO <
Post by Laurent PELLEGRINO
Dear all,
1/ How to indicate in pom file to skip tests and assembly execution
(by assembly execution I mean it handle my jar-with-dependency target)
when I execute mvn install ?
2/ How to indicate in pom file to skip tests when I execute mvn
assembly:assembly ?
Thanks.
Kind Regards
Laurent
---------------------------------------------------------------------
---------------------------------------------------------------------
Loading...