[
https://issues.apache.org/jira/browse/MNG-6425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510229#comment-16510229
]
Michael Osipov commented on MNG-6425:
-------------------------------------
Something if fishy about your metadata: look at line 1968:
{{[DEBUG] http-outgoing-1 >> "GET
/artifactory/myco-unrestricted-dev;artifactory.licenses=myco/com/myco/idsys/test/library1/maven-metadata.xml
HTTP/1.1[\r][\n]"}} with the content
{code:xml}
[DEBUG] http-outgoing-1 << "<?xml version="1.0" encoding="UTF-8"?>[\n]"
[DEBUG] http-outgoing-1 << "<metadata>[\n]"
[DEBUG] http-outgoing-1 << " <groupId>com.myco.idsys.test</groupId>[\n]"
[DEBUG] http-outgoing-1 << " <artifactId>library1</artifactId>[\n]"
[DEBUG] http-outgoing-1 << " <version>1.0.0</version>[\n]"
[DEBUG] http-outgoing-1 << " <versioning>[\n]"
[DEBUG] http-outgoing-1 << " <latest>1.0.4</latest>[\n]"
[DEBUG] http-outgoing-1 << " <release>1.0.4</release>[\n]"
[DEBUG] http-outgoing-1 << " <versions>[\n]"
[DEBUG] http-outgoing-1 << " <version>1.0.0</version>[\n]"
[DEBUG] http-outgoing-1 << " <version>1.0.1</version>[\n]"
[DEBUG] http-outgoing-1 << " <version>1.0.2</version>[\n]"
[DEBUG] http-outgoing-1 << " <version>1.0.3</version>[\n]"
[DEBUG] http-outgoing-1 << " <version>1.0.4</version>[\n]"
[DEBUG] http-outgoing-1 << " </versions>[\n]"
[DEBUG] http-outgoing-1 << " <lastUpdated>20180612142911</lastUpdated>[\n]"
[DEBUG] http-outgoing-1 << " </versioning>[\n]"
[DEBUG] http-outgoing-1 << "</metadata>[\n]"
{code}
but you are uploading version 1.0.4-SNAPSHOT. Now line 2316
{{[DEBUG] http-outgoing-1 >> PUT
/artifactory/myco-unrestricted-dev;artifactory.licenses=myco/com/myco/idsys/test/library1/maven-metadata.xml
HTTP/1.1}}
with
{code:xml}
[DEBUG] http-outgoing-1 >> "<?xml version="1.0" encoding="UTF-8"?>[\n]"
[DEBUG] http-outgoing-1 >> "<metadata>[\n]"
[DEBUG] http-outgoing-1 >> " <groupId>com.myco.idsys.test</groupId>[\n]"
[DEBUG] http-outgoing-1 >> " <artifactId>library1</artifactId>[\n]"
[DEBUG] http-outgoing-1 >> " <versioning>[\n]"
[DEBUG] http-outgoing-1 >> " <latest>1.0.4</latest>[\n]"
[DEBUG] http-outgoing-1 >> " <release>1.0.4</release>[\n]"
[DEBUG] http-outgoing-1 >> " <versions>[\n]"
[DEBUG] http-outgoing-1 >> " <version>1.0.0</version>[\n]"
[DEBUG] http-outgoing-1 >> " <version>1.0.1</version>[\n]"
[DEBUG] http-outgoing-1 >> " <version>1.0.2</version>[\n]"
[DEBUG] http-outgoing-1 >> " <version>1.0.3</version>[\n]"
[DEBUG] http-outgoing-1 >> " <version>1.0.4</version>[\n]"
[DEBUG] http-outgoing-1 >> " <version>1.0.4-SNAPSHOT</version>[\n]"
[DEBUG] http-outgoing-1 >> " </versions>[\n]"
[DEBUG] http-outgoing-1 >> " <lastUpdated>20180612142913</lastUpdated>[\n]"
[DEBUG] http-outgoing-1 >> " </versioning>[\n]"
[DEBUG] http-outgoing-1 >> "</metadata>[\n]"
{code}
Why is 1.0.4 released you are uploading 1.0.4-SNAPSHOT? Where do the versions
come from? Have you tried to refresh metadata in Arifactory? This does work in
Nexus, for instance.
> 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-wirelog-full.log, MNG-6425-wirelog.log,
> 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)