maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MNG-6425) Maven inserts incorrect version metadata when 'artifactory matrix parameters' are used.
Date Tue, 12 Jun 2018 12:33:00 GMT

    [ https://issues.apache.org/jira/browse/MNG-6425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16509579#comment-16509579
] 

Michael Osipov commented on MNG-6425:
-------------------------------------

The log itself looks fine to me, thank you. Please enable wire log too. Check wether the uploaded
file does already contain the erronous content. Please also try Maven from master.

> Maven inserts incorrect version metadata when 'artifactory matrix parameters' are used.
> ---------------------------------------------------------------------------------------
>
>                 Key: MNG-6425
>                 URL: https://issues.apache.org/jira/browse/MNG-6425
>             Project: Maven
>          Issue Type: Bug
>          Components: Deployment
>    Affects Versions: 3.5.3
>         Environment: Linux, Windows
>            Reporter: George Lianeris
>            Priority: Major
>         Attachments: MNG-6425.log
>
>
> When using artifactory matrix parameters as per
> [Artifactory Matrix Parameters|https://www.jfrog.com/confluence/display/RTF/Using+Properties+in+Deployment+and+Resolution#UsingPropertiesinDeploymentandResolution-IntroducingMatrixParameters]
> 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:
> {code:xml}
> <?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>
> {code}
>  
> What it is (more or less):
> {code:xml}
> <?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>
> {code}
>  
> Note that version 1.0.0 does not exist and was never built.  This makes it impossible
to use the artifactory matrix parameters.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message