Hi Chris,

It's possible to invoke multiple goals for a single phase in the lifecycle.
You must bind your mojos to the specific phase first, then configure the plugin
in your pom as shown below so that when you execute the phase, it would
also run the goal(s) you specified

pom.xml:
...
<plugin>
  <groupId>sample</groupId>
  <artifactId>sample-plugin</artifactId>
  <executions>
<execution> <phase>package</phase>
      ...
      <goals>
        <goal>goal1</goal>
        <goal>goal2</goal>
      </goals>
    </execution>
  </executions>
</plugin>
...


For more info on the lifecycle, see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

Thanks,
Odea



[EMAIL PROTECTED] wrote:

Is it possible to invoke multiple goals for a single
phase in the lifecycle? E.g. I'd like to execute
multiple goals for 'package'. If it is not possible,
should I simply customize the lifecycle and add
phases?

Thanks,
Chris

---------------------------------------------------------------------
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