You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "George Lianeris (JIRA)" <ji...@apache.org> on 2018/06/11 21:08:00 UTC

[jira] [Comment Edited] (MNG-6425) Maven inserts incorrect version metadata when 'artifactory matrix parameters' are used.

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

George Lianeris edited comment on MNG-6425 at 6/11/18 9:07 PM:
---------------------------------------------------------------

Thank you; the log is attached.  Please let me know if this was done correctly - the configuration I used is:
 # === Maven 3.1.x+ section

 # [http://maven.apache.org/maven-logging.html] Default Overrides
 org.slf4j.simpleLogger.defaultLogLevel=trace
 org.slf4j.simpleLogger.showDateTime=true
 org.slf4j.simpleLogger.showThreadName=true
 org.slf4j.simpleLogger.showLogName=true
 org.slf4j.simpleLogger.logFile=System.out
 org.slf4j.simpleLogger.levelInBrackets=true
 org.slf4j.simpleLogger.log.Sisu=info
 org.slf4j.simpleLogger.warnLevelString=DEBUG

 # HTTP logging overrides
 org.slf4j.simpleLogger.log.org.apache.http=DEBUG
 org.slf4j.simpleLogger.log.org.apache.http.wire=ERROR
 org.slf4j.simplelogger.log.org.apache.maven.wagon.providers.http=DEBUG
 org.slf4j.simplelogger.log.org.apache.maven.wagon.providers.http.httpclient.wire=ERROR

 


was (Author: glianeric):
Thank you; the log is attached.  Please let me know if Ithis was done correctly - the configuration I used is:

# === Maven 3.1.x+ section

# http://maven.apache.org/maven-logging.html Default Overrides
org.slf4j.simpleLogger.defaultLogLevel=trace
org.slf4j.simpleLogger.showDateTime=true
org.slf4j.simpleLogger.showThreadName=true
org.slf4j.simpleLogger.showLogName=true
org.slf4j.simpleLogger.logFile=System.out
org.slf4j.simpleLogger.levelInBrackets=true
org.slf4j.simpleLogger.log.Sisu=info
org.slf4j.simpleLogger.warnLevelString=DEBUG

# HTTP logging overrides
org.slf4j.simpleLogger.log.org.apache.http=DEBUG
org.slf4j.simpleLogger.log.org.apache.http.wire=ERROR
org.slf4j.simplelogger.log.org.apache.maven.wagon.providers.http=DEBUG
org.slf4j.simplelogger.log.org.apache.maven.wagon.providers.http.httpclient.wire=ERROR

 

> 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:
> <?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.
>  



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