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

dependency:unpack doesn't seem to handle version ranges

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: copy, unpack
    • Labels:
      None
    • Environment:
      Java 1.5

      Description

      When I use the dependency unpack goal and a version range as shown below, Maven cannot download the artifact from the repository. There is a version 1.4.1 in the repository. If I use the specific version number 1.4.1. It works.

      <build>
      <plugin>

      <groupId>org.codehaus.mojo</groupId>

      <artifactId>dependency-maven-plugin</artifactId>

      <executions>

      <execution>

      <id>unpack</id>

      <phase>compile</phase>

      <goals>

      <goal>unpack</goal>

      </goals>

      <configuration>

      <artifactItems>

      <artifactItem>

      <groupId>my.package</groupId>

      <artifactId>concept</artifactId>

      <version>[1.4,1.5)</version>

      <classifier>res</classifier>

      <outputDirectory>${project.build.sourceDirectory}/../webapp/res</outputDirectory>

      </artifactItem>

      </artifactItems>

      </configuration>

      </execution>

      </executions>

      </plugin>

        Attachments

          Activity

            People

            • Assignee:
              brianf Brian E Fox
              Reporter:
              mgoldhahn Martin Goldhahn
            • Votes:
              11 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: