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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to