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

dependency:unpack doesn't seem to handle version ranges

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.0
    • None
    • copy, unpack
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment