Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.9, 2.1.0-M1
-
None
Description
Parent POM snippet:
<plugin> <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-class-loader</artifactId> <version>2.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>e</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>a</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>d</artifactId> <version>0.1</version> </dependency> </dependencies> </plugin>
Child POM snippet:
<plugin> <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-class-loader</artifactId> <version>2.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>c</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>a</artifactId> <version>0.2</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>b</artifactId> <version>0.1</version> </dependency> </dependencies> </plugin>
Effective child POM:
<plugin> <groupId>org.apache.maven.its.plugins</groupId> <artifactId>maven-it-plugin-class-loader</artifactId> <version>2.1-SNAPSHOT</version> <dependencies> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>e</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>a</artifactId> <version>0.2</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>d</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>c</artifactId> <version>0.1</version> </dependency> <dependency> <groupId>org.apache.maven.its.mng3906</groupId> <artifactId>b</artifactId> <version>0.1</version> </dependency> </dependencies> </plugin>
This should be synced with the handling of ordinary project dependencies, i.e.
- plugin dependencies of child POM first (in POM order)
- plugin dependencies of parent POM last (in POM order)