This is a limitation of the way Maven currently specifies the
executions. While it might be changed in the future it is currently by
design.
You seem to be using the "install" phase for a purpose it was not
designed for - I suggest moving these to a different location, using
standalone goals, or writing a custom mojo to perform the tasks in
sequence (Don's mojo-executor plugin can help).
- Brett
On 23/12/2008, at 1:50 AM, Jaikiran wrote:
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]
--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]