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

artifact:deploy - The name of deploying element in snapshot repository is wrong

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.6, 2.0.7
    • 2.0.8
    • deploy task
    • None
    • Patch

    Description

      The zip file contains test with Ant.
      To launch it : ant test.
      I try to deploy a snapshot artifact in repository
      So, my pom.xml contains a version with the extension '-SNAPSHOT'
      And in my build file Ant i do this :
      <artifact:deploy file="lib/${pom.artifactId}.jar">
      <remoteRepository url="file:./repository" />
      <pom refid="pom" />
      </artifact:deploy>

      In the repository the name of the artifact is <artifactId><version>SNAPSHOT.<packaging> instead of <artifactId><version><date>.<time><buildNumber><packaging>

      Another problem, i try to upload 2 attachments with my artifact (javadoc and java-source), and the buildNumber in the meta-data.xml increment by 3 instead of 1
      <artifact:deploy file="lib/${pom.artifactId}.jar">
      <remoteRepository url="file:./repository" />
      <pom refid="pom" />
      <attach file="./lib/${pom.artifactId}-src.jar" type="java-source"/>
      <attach file="./lib/${pom.artifactId}-api.zip" type="javadoc"/>
      </artifact:deploy>
      You can test it with : ant testWithAttach

      Attachments

        Issue Links

        Activity

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

          People

            hboutemy Herve Boutemy
            dndiaye David N'DIAYE
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment