Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-423

Can not unpack dependencies from identified dependent POM without specifying version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 2.8
    • None
    • unpack

    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>
      ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            bigehokie Eric Miles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: