If I can't exclude a goal from a phase, is it possible to use a specific plugin
configuration for a phase ?
I have try the following configuration in the pom.xml of my module, but it does
not work:
project
...
build
...
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
executions
execution
phasepackage/phase
configuration
skiptrue/skip
/configuration
goals
goaltest/goal
/goals
/execution
/executions
/plugin
/plugins
/build
...
/project
I have also try to use profile in my super pom.xml as follwing, but it does
not seem to work:
project
...
profiles
profile
iddailybuild-profile/id
activation
property
nameperformDailyBuild/name
/property
/activation
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
executions
execution
phasepackage/phase
configuration
skiptrue/skip
/configuration
goals
goaltest/goal
/goals
/execution
/executions
/plugin
/plugins
/build
/profile
/profiles
...
/project
Is it possible to create new lifecycle ? If yes, how ?
Christophe
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]
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