You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Christophe DENEUX <ch...@capgemini.com> on 2005/11/09 13:31:29 UTC
[m2] How to exclude goal from a phase of the standard life-cycle
?
Hi friends,
When starting the "package" lifecycle (mvn package), the goal "test" of
the plugin surefire is run.
Is it possible to exclude this goal from the lifecycle ?
How to customize the lifecycle excluding plugins goals ?
Thanks,
Christophe
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
Re: [m2] How to exclude goal from a phase of the standard life-cycle
?
Posted by Pablo <pa...@tiger.com.pl>.
Christophe DENEUX wrote:
>
> Hi friends,
>
> When starting the "package" lifecycle (mvn package), the goal "test"
> of the plugin surefire is run.
>
> Is it possible to exclude this goal from the lifecycle ?
> H
http://maven.apache.org/maven2/plugins/maven-surefire-plugin/test-mojo.html
Use "skip" configuration parameter.
Cheers
Pablo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m2] How to exclude goal from a phase of the standard life-cycle
?
Posted by Emmanuel Venisse <em...@venisse.net>.
you can't exclude a goal from a phase, but you can disable test compilation and execution
(it isn't a best practice)
mvn -Dmaven.test.skip=true package
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html
Emmanuel
Christophe DENEUX a écrit :
>
> Hi friends,
>
> When starting the "package" lifecycle (mvn package), the goal "test" of
> the plugin surefire is run.
>
> Is it possible to exclude this goal from the lifecycle ?
> How to customize the lifecycle excluding plugins goals ?
>
> Thanks,
> Christophe
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient,
> you are not authorized to read, print, retain, copy, disseminate,
> distribute, or use this message or any part thereof. If you receive
> this message in error, please notify the sender immediately and delete
> all copies of this message.
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org