No matter what i try, the ordering is not working. Let me know if i have to
report a JIRA with a sample application attached.
Jaikiran wrote:
>
> I am seeing an issue with the order in which the plugin execution happens
> when there are multiple plugin associated with the same phase. I am using
> Maven 2.0.9. As per the documentation, the order in which they should be
> executed is the same as the order in which they are being defined in the
> POM. However, i don't see this happening. Here's my (sample) POM:
>
> <build>
>
> <plugins>
>
> <!-- Do Step1 through Plugin ABC -->
> <plugin>
> <groupId>something.something.ABC</groupId>
> <artifactId>ABCArtifact</artifactId>
> <version>${someversionofABC}</version>
>
> <!-- Executions -->
> <!--
> Deploy the tutorial
> -->
>
> <executions>
> <execution>
> <id>Step1</id>
> <goals>
> <goal>deploy</goal>
> </goals>
> <phase>install</phase>
> </execution>
>
>
>
> </executions>
>
> </plugin>
>
> <!-- Do Step2 through Plugin XYZ -->
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <id>Step2</id>
> <phase>install</phase>
> <goals>
> <goal>run</goal>
> </goals>
> ... // other stuff
> </execution>
> </executions>
> </plugin>
>
> <!-- Do Step3 from the same plugin ABC -->
>
> <plugin>
> <groupId>something.something.ABC</groupId>
> <artifactId>ABCArtifact</artifactId>
> <version>${someversionofABC}</version>
>
> <executions>
> <execution>
> <id>Step3</id>
> <goals>
> <goal>undeploy</goal>
> </goals>
> <phase>install</phase>
> ... // other stuff
> </execution>
> </executions>
>
> </plugin>
>
>
> As can be seen, the POM has 3 steps: Step1 Step2 and Step3 all bound to
> the "install" phase. Step1 and Step3 use plugin ABC where as Step2 uses
> plugin XYZ. Based on the POM ordering and the Maven documentation, the
> order of execution is expected to be Step1 then Step2 and then Step3.
> However i am consistently seeing the following incorrect order Step3 then
> Step1 and then Step2.
>
> Am i missing something?
>
--
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-tp21113516p21123472.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]