Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
2.8
-
None
Description
Even if the dependency from the included POM is in the dependency tree, I can not unpack it unless I specify the version...which defeats the purpose of an aggregator POM.
aggregator-pom.xml
... <groupId>mycompany.com</groupId> <artifactId>aggregator-pom</artifactId> <version>1.0.0</version> <packaging>pom</packaging> ... <dependency> <groupId>somegroup</groupId> <artifactId>someartifact</artifactId> <version>1.2.3</version> </dependency> ...
pom-to-do-unpacking.xml
... <dependency> <groupId>mycompany.com</groupId> <artifactId>aggregator-pom</artifactId> <version>1.0.0</version> <packaging>pom</packaging> </dependency> ... <plugin> <artifactId>maven-dependency-plugin> <goals> <goal>unpack</goal> </goal> <configuration> <artifactItems> <artifactItem> <groupId>somegroup</groupId> <artifactId>someartifact</artifactId> <!-- Will not work without version specified!!!! -> </artifactItem> </artifactItems> </configuration> ... </plugin> ...