mirror of https://github.com/apache/maven.git
o Created UT from MNG-3887
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@728675 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8fdaaf6218
commit
7555ab36e1
|
@ -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 ) );
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>org.apache.maven.its.mng3887</groupId>
|
||||
<artifactId>test</artifactId>
|
||||
<version>0.1</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>Maven Integration Test :: MNG-3887</name>
|
||||
<description>
|
||||
Test that multiple plugin executions bound to the same phase are executed in the order given by the POM.
|
||||
</description>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-b</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!-- This plugin is not affected by plugin management -->
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-a</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>ab</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>aa</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>ad</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>ac</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>ae</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- This plugin is affected by plugin management -->
|
||||
<groupId>org.apache.maven.its.plugins</groupId>
|
||||
<artifactId>maven-it-plugin-b</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bb</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>ba</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>bd</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>bc</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>be</id>
|
||||
<phase>validate</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
Loading…
Reference in New Issue