Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6425

Maven inserts incorrect version metadata when 'artifactory matrix parameters' are used.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.5.3
    • None
    • Deployment
    • None
    • Linux, Windows

    Description

      When using artifactory matrix parameters as per

      Artifactory Matrix Parameters

      and they are added to the command line like so:

      mvn -Psomeprofile package deploy:deploy -DaltDeploymentRepository=central::default::https://artifactory.my.co/artifactory/myco-dev;artifactory.licenses=myco

      The metadata.xml for the artifact (not the version beneath it) acquires incorrectly calculated version values on the second run.

      What it should be:

      <?xml version="1.0" encoding="UTF-8"?>
      <metadata>
       <groupId>com.myco.foo</groupId>
       <artifactId>bar</artifactId>
       <versioning>
       <versions>
       <version>1.0.0-SNAPSHOT</version>
       </versions>
       <lastUpdated>20180611143540</lastUpdated>
       </versioning>
      </metadata>
      

       
      What it is (more or less):

      <?xml version="1.0" encoding="UTF-8"?>
      <metadata>
      <groupId>com.myco.foo</groupId>
      <artifactId>bar</artifactId>
      <versioning>
      *<latest>1.0.0</latest>*
      *<release>1.0.0</release>*
      <versions>
      *<version>1.0.0</version>*
      <version>1.0.0-SNAPSHOT</version>
      </versions>
      <lastUpdated>20180611143540</lastUpdated>
      </versioning>
      </metadata>
      

       
      Note that version 1.0.0 does not exist and was never built.  This makes it impossible to use the artifactory matrix parameters.
       

      Attachments

        1. MNG-6425.log
          244 kB
          George Lianeris
        2. MNG-6425-wirelog.log
          8 kB
          George Lianeris
        3. MNG-6425-wirelog-full.log
          228 kB
          George Lianeris

        Activity

          People

            Unassigned Unassigned
            glianeric George Lianeris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: