diff --git a/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java b/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java index 3d23d7ba40..dc683d17ac 100644 --- a/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java +++ b/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java @@ -118,6 +118,24 @@ public class PomConstructionTest } */ + /* FIXME: cf. MNG-3887 + public void testOrderOfPluginExecutions() + throws Exception + { + PomTestWrapper pom = buildPom( "plugin-exec-order" ); + assertEquals( "ab", pom.getValue( "build/plugins[1]/executions[1]/id" ) ); + assertEquals( "aa", pom.getValue( "build/plugins[1]/executions[2]/id" ) ); + assertEquals( "ad", pom.getValue( "build/plugins[1]/executions[3]/id" ) ); + assertEquals( "ac", pom.getValue( "build/plugins[1]/executions[4]/id" ) ); + assertEquals( "ae", pom.getValue( "build/plugins[1]/executions[5]/id" ) ); + assertEquals( "bb", pom.getValue( "build/plugins[2]/executions[1]/id" ) ); + assertEquals( "ba", pom.getValue( "build/plugins[2]/executions[2]/id" ) ); + assertEquals( "bd", pom.getValue( "build/plugins[2]/executions[3]/id" ) ); + assertEquals( "bc", pom.getValue( "build/plugins[2]/executions[4]/id" ) ); + assertEquals( "be", pom.getValue( "build/plugins[2]/executions[5]/id" ) ); + } + */ + private PomArtifactResolver artifactResolver( String basedir ) { return new FileBasedPomArtifactResolver( new File( BASE_POM_DIR, basedir ) ); diff --git a/maven-project/src/test/resources-project-builder/plugin-exec-order/pom.xml b/maven-project/src/test/resources-project-builder/plugin-exec-order/pom.xml new file mode 100644 index 0000000000..f18adaaa19 --- /dev/null +++ b/maven-project/src/test/resources-project-builder/plugin-exec-order/pom.xml @@ -0,0 +1,104 @@ + + + + + + 4.0.0 + + org.apache.maven.its.mng3887 + test + 0.1 + pom + + Maven Integration Test :: MNG-3887 + + Test that multiple plugin executions bound to the same phase are executed in the order given by the POM. + + + + + + + org.apache.maven.its.plugins + maven-it-plugin-b + 1.0-SNAPSHOT + + + + + + + org.apache.maven.its.plugins + maven-it-plugin-a + 1.0-SNAPSHOT + + + ab + validate + + + aa + validate + + + ad + validate + + + ac + validate + + + ae + validate + + + + + + org.apache.maven.its.plugins + maven-it-plugin-b + 1.0-SNAPSHOT + + + bb + validate + + + ba + validate + + + bd + validate + + + bc + validate + + + be + validate + + + + + +