[
https://issues.apache.org/jira/browse/MDEP-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov closed MDEP-423.
-------------------------------
Resolution: Incomplete
No sample provided.
> Can not unpack dependencies from identified dependent POM without specifying
> version
> ------------------------------------------------------------------------------------
>
> Key: MDEP-423
> URL: https://issues.apache.org/jira/browse/MDEP-423
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: unpack
> Affects Versions: 2.8
> Reporter: Eric Miles
> Priority: Major
> Labels: close-pending
>
> 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
> {noformat}
> ...
> <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>
> ...
> {noformat}
> pom-to-do-unpacking.xml
> {noformat}
> ...
> <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>
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)