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

Tamás Cservenák edited comment on MRESOLVER-144 at 12/9/20, 1:47 PM:
---------------------------------------------------------------------

W/ maven 3.6.3 + m-d-p 2.8.2 this is how log looks:
{noformat}
Downloading from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Downloaded from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 15 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.jar
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.jar
 (2.0 kB at 29 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.pom
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.pom
 (3.8 kB at 88 kB/s)
Downloading from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
Downloaded from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
 (270 B at 11 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 29 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
 (270 B at 7.5 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14-bundle.zip
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14-bundle.zip
 (37 kB at 817 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 26 kB/s) {noformat}
Clearly can be seen, that it uploads POM+JAR (and "finishes" metadata), and 
then comes *second round* where it uploads the bundle.zip attached artifact.

W/ maven 3.6.3 + m-d-p 3.0.0-M1 this is how log looks (before it errors out due 
missing credentials, aside of plugin version change in POM, no other change 
happened):
{noformat}
 Downloading from localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Downloaded from localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 15 kB/s)
Uploading to localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.133923-16.jar
Uploading to localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.133923-16.pom
Uploading to localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.133923-16-bundle.zip
{noformat}
Clearly can be seen it tries to do it in "one round": JAR, POM and bundle.zip 
is all sent for upload at once, as expected (by me at least).


was (Author: cstamas):
W/ maven 3.6.3 + m-d-p 2.8.2 this is how log looks:
{noformat}
Downloading from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Downloaded from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 15 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.jar
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.jar
 (2.0 kB at 29 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.pom
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14.pom
 (3.8 kB at 88 kB/s)
Downloading from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
Downloaded from localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
 (270 B at 11 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 29 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/maven-metadata.xml
 (270 B at 7.5 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14-bundle.zip
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.132140-14-bundle.zip
 (37 kB at 817 kB/s)
Uploading to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Uploaded to localhost-nexus: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 26 kB/s) {noformat}
Clearly can be seen, that it uploads POM+JAR (and "finishes" metadata), and 
then comes *second round* where it uploads the bundle.zip attached artifact.

W/ maven 3.6.3 + m-d-p 3.0.0-M1 this is how log looks (before it errors out due 
missing credentials, aside of plugin version change in POM, no other change 
happened):
{noformat}
 Downloading from localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
Downloaded from localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/maven-metadata.xml
 (971 B at 15 kB/s)
Uploading to localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.133923-16.jar
Uploading to localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.133923-16.pom
Uploading to localhost-nexus::default: 
http://localhost:8081/content/repositories/snapshots/org/test/site/1.0-SNAPSHOT/site-1.0-20201209.133923-16-bundle.zip
{noformat}
Clearly can be seen it tries to do it in "one round": JAR, POM and bundle.zip 
is all send for upload at once, as expected (by me at least).

> Maven Resolver deploys version metadata multiple times
> ------------------------------------------------------
>
>                 Key: MRESOLVER-144
>                 URL: https://issues.apache.org/jira/browse/MRESOLVER-144
>             Project: Maven Resolver
>          Issue Type: Bug
>          Components: Resolver
>    Affects Versions: 1.6.1
>            Reporter: Tamás Cservenák
>            Priority: Blocker
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This causes problems like MDEPLOY-221 is.
> Problem:
> Maven deploys version metadata multiple times. Seems it is triggered by any 
> plugin that attaches artifact to MavenProject?
> This happens with all 2.x m-deploy-p. 3.0.0-M1 fails.
> Expected:
> Maven deploy version (and any other) metadata only once with proper 
> timestmaps (those that have the deployed artifacts) whatever count of 
> attached artifacts are there.
> Reproducer:
> [https://github.com/cstamas/mvn-md-bug]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to