Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0-alpha-3
-
None
Description
Given this POM snippet
<build> <pluginManagement> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>test-1</id> <goals> <goal>resources</goal> </goals> </execution> </executions> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.2</version> <executions> <execution> <id>test-2</id> <goals> <goal>resources</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
the execution order with Maven 2.2.x is
- default-resources
- test-1
- test-2
However, with Maven 3.x it is currently:
- test-1
- default-resources
- test-2
This causes a compilation failure on maven-core from the 2.2.x branch when build with 3.x because the compiler executions happen in the wrong order.