Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0-alpha-3
-
Fix Version/s: 3.0-alpha-3
-
Component/s: Plugins and Lifecycle
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
For the following snippet
<plugin> <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-log-file</artifactId> <version>2.1-SNAPSHOT</version> <executions> <execution> <phase>process-resources</phase> <goals> <goal>log-string</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>0.1-stub-SNAPSHOT</version> </plugin>
where both maven-it-plugin-log-file and maven-resources-plugin bind executions to the lifecycle phase "process-resources" and maven-resources-plugin is declared after maven-it-plugin-log-file with respect to POM order, trunk executes the goal log-string before resources, in contrast to Maven 2.
This was caused by my changes for
MNG-4341. In trying to express all the plugin executions solely by means of the POM, it got apparent that the POM is not capable to describe the executional model of Maven 2.x. Plugin executions contributed by default lifecycle mappings are treated differently than ordinary plugin executions but the POM doesn't provide the means to tell those two kinds of plugin executions apart.