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 this POM snippet
<build> <pluginManagement> <plugins> <plugin> <!-- NOTE: It's essential that this plugin is also referenced by the default lifecycle bindings --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>0.1-stub-SNAPSHOT</version> <executions> <execution> <id>second</id> <phase>validate</phase> <goals> <goal>resources</goal> </goals> <configuration> <pathname>target/log.txt</pathname> <message>second</message> </configuration> </execution> </executions> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-log-file</artifactId> <version>2.1-SNAPSHOT</version> <executions> <execution> <id>first</id> <phase>validate</phase> <goals> <goal>log-string</goal> </goals> <configuration> <logFile>target/log.txt</logFile> <string>first</string> </configuration> </execution> </executions> </plugin> </plugins> </build>
and the invocation "mvn clean process-resources", the execution order is first, second with Maven 2 but second, first with Maven 3.
Issue Links
- is related to
-
MNG-4341
[regression] Plugins are not executed in POM order
-
Fixed in r812550.