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

<dependencies> task gives a bad pathId when downloading a deployed SNAPSHOT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 2.0.4
    • None
    • dependencies task
    • None

    Description

      Deploy a -SNAPSHOT build using the deploy:deploy-file goal. (Don't do it with the <deploy> Ant task; that doesn't work, per bug MNG-2060.) The file will be deployed into a -SNAPSHOT directory, but the file itself will contain a build number, not the word SNAPSHOT.

      Now delete the SNAPSHOT from your local repository and attempt to use <dependencies> to acquire it. The task will claim to succeed, but the pathId will contain an incorrect file path.

      For example, I deployed selenium-server-0.7.2-SNAPSHOT.jar; on the remote repo it was called selenium-server-0.7.2-20060505.015135-1.jar. When the Ant task pulled it into my local repo it was in selenium-server\0.7.2-SNAPSHOT\selenium-server-0.7.2-20060505.015135-1.jar. But finally when I ran the Ant task, the classpath it gave me pointed to selenium-server\0.7.2-20060505.015135-1\selenium-server-0.7.2-20060505.015135-1.jar, which is clearly wrong.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              dfabulich Daniel Fabulich
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: