Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-236

Dependencies task picks POM from releases but JAR from snapshots

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.3
    • None
    • dependencies task
    • None
    • Apache Ant version 1.7.1
      Artifactory 2.6.6

    Description

      This issue manifests when using a version range.

        <artifact:dependencies pathId="remoteexec.classpath">
          <dependency groupId="xyz" artifactId="remoteexec" version="[1.3]"/>
        </artifact:dependencies>
      

      produces this failure:

      [artifact:dependencies] Downloading: xyz/remoteexec/1.3/remoteexec-1.3.pom from repository central at http://localhost:8081/artifactory/libs-release
      [artifact:dependencies] Transferring 3K from central
      [artifact:dependencies] Downloading: xyz/remoteexec/1.3/remoteexec-1.3.jar from repository snapshots at http://localhost:8081/artifactory/libs-snapshot
      [artifact:dependencies] Unable to locate resource in repository
      

      While the POM is correctly retrieved from lib-release-local, getting the JAR from libs-snapshot-local obviously must fail.

      When setting the version to "1.3" the dependency is resolved correctly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ballarin Clemens Ballarin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: