maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Miles (JIRA)" <j...@codehaus.org>
Subject [jira] (MDEP-423) Can not unpack dependencies from identified dependent POM without specifying version
Date Wed, 03 Jul 2013 16:00:06 GMT
Eric Miles created MDEP-423:
-------------------------------

             Summary: Can not unpack dependencies from identified dependent POM without specifying
version
                 Key: MDEP-423
                 URL: https://jira.codehaus.org/browse/MDEP-423
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: unpack
    Affects Versions: 2.8
            Reporter: Eric Miles


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message