Merging the executions of the plugin, atleast in this case, is not possible.
Merging will make it:
<plugin>
<artifactId>ABCArtifact</artifactId>
<executions>
<execution>
<id>Step1</id>
<goals>
<goal>deploy</goal>
</goals>
<phase>install</phase>
</execution>
<execution>
<id>Step3</id>
<goals>
<goal>undeploy</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
</plugin>
So there will be no room for Step2 (which comes from a different plugin).
This was the original reason why i am repeating the same plugin multiple
times.
John Stoneham wrote:
>
> On Mon, Dec 22, 2008 at 4:10 AM, Stephen Connolly
> <[email protected]> wrote:
>> AFAIK, You cannot repeat the same plugin multiple times in the plugins
>> section.
>>
>> That is not to say that Maven should not support what you are trying to
>> do,
>> just that my understanding of the rules of Maven for 2.0.x are that you
>> cannot do what you are trying to do using only one phase.
>
> Yes. You'd need to merge the executions section instead.
>
>
> - John
>
--
View this message in context:
http://www.nabble.com/Plugin-execution-order-incorrect-in-Maven-2.0.9-when-multiple-plugins-are-associated-with-the-same-phase-tp21113516p21129073.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]