Skip to content

Multiple staging repositories created on same deploy with Maven 3.9.12 #885

Open

Description

@apupier

Hi,

starting with Maven 3.9.12, for the Apache Camel project, we have several staging repositories created when trying to deploy.
It works fine with Maven 3.9.11.

It usually creates 4 or 5 staging repositories, 1 with almost all dependencies and the others with a single artifact. From observation, for the single artifact staging repositories, it was always some (but not all) artifacts from the top-level project. it is the first artifacts uploaded.

comparing Maven log when using 3.9.11 and 3.9.12, we can notice that with 3.9.12, the parallel upload is starting faster (despite maven-deploy-plugin version is both 3.1.4):

with Maven 3.9.11

[INFO] [INFO] --- deploy:3.1.4:deploy (default-deploy) @ camel ---
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0.pom
[INFO] Progress (1): 24 kB
[INFO]                    
[INFO] Uploaded to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0.pom (24 kB at 13 kB/s)
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-source-release.zip
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-cyclonedx.xml
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-cyclonedx.json
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-source-release.zip.sha512
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0.pom.asc
[INFO] Progress (1): 0/87 MB
[INFO] Progress (1): 0.1/87 MB
[INFO] Progress (1): 0.1/87 MB
[INFO] Progress (1): 0.1/87 MB
[INFO] Progress (1): 0.2/87 MB
[INFO] Progress (1): 0.2/87 MB
[INFO] Progress (1): 0.2/87 MB
[INFO] Progress (1): 0.3/87 MB
[INFO] Progress (1): 0.3/87 MB
[INFO] Progress (1): 0.3/87 MB
[INFO] Progress (1): 0.4/87 MB
[INFO] Progress (1): 0.4/87 MB
[INFO] Progress (1): 0.4/87 MB
[INFO] Progress (1): 0.5/87 MB
[INFO] Progress (1): 0.5/87 MB
[INFO] Progress (1): 0.5/87 MB
[INFO] Progress (1): 0.6/87 MB
[INFO] Progress (1): 0.6/87 MB
[INFO] Progress (2): 0.6/87 MB | 228 B
[INFO] Progress (2): 0.6/87 MB | 228 B
[INFO] Progress (3): 0.6/87 MB | 228 B | 0/8.3 MB
[INFO] Progress (3): 0.6/87 MB | 228 B | 0.1/8.3 MB
[INFO] Progress (3): 0.6/87 MB | 228 B | 0.1/8.3 MB
[INFO] Progress (4): 0.6/87 MB | 228 B | 0.1/8.3 MB | 128 B
[INFO] Progress (5): 0.6/87 MB | 228 B | 0.1/8.3 MB | 128 B | 0/7.8 MB

With Maven 3.9.12:

[INFO] [INFO] --- deploy:3.1.4:deploy (default-deploy) @ camel ---
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0.pom
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-source-release.zip.sha512
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-source-release.zip
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-cyclonedx.json
[INFO] Uploading to apache.releases.https: https://repository.apache.org/service/local/staging/deploy/maven2/org/apache/camel/camel/4.17.0/camel-4.17.0-cyclonedx.xml
[INFO] Progress (1): 128 B
[INFO] Progress (2): 128 B | 0/7.8 MB
[INFO] Progress (3): 128 B | 0/7.8 MB | 0/87 MB
[INFO] Progress (4): 128 B | 0/7.8 MB | 0/87 MB | 0/8.3 MB

Is it a know issue?

I'm wondering if the reason is that the parallel upload is starting faster with Maven 3.9.12 causing Nexus to receive several requests too close and when checking if there is an existing repository, these several requests are not finding one and start to create a new staging repository.
Could it be a reason?
Any ideas for a configuration to avoid that?

Could you explain how/where the detection for creating a new stagign repositories or not is done?

for reference the Apache Camel issue https://issues.apache.org/jira/browse/CAMEL-22826
the Nexus repository is https://repository.apache.org/ , the version is 2.15.2-03

Activity

  1. apupier commented on Jan 8, 2026

    @apupier
    Author

    I was unable to find from the message "Uploading to XXX" is coming, the search on Apache org https://github.com/search?q=org%3Aapache+%2F%28%3F-i%29Uploading+to%2F&type=code doesn't

  2. apupier commented on Jan 8, 2026

    @apupier
    Author

    it seems to effectively come from an improvement on the parallel upload of artifacts, see https://the-asf.slack.com/archives/CBX4TSBQ8/p1767823608476009 and https://the-asf.slack.com/archives/CBX4TSBQ8/p1767869726204349?thread_ts=1767856586.069939&cid=CBX4TSBQ8

    A workaround is to use -Daether.connector.basic.parallelPut=false

  3. rzo1 commented on Jan 17, 2026

    @rzo1

    @apupier You saved my day preparing an Apache StormCrawler release with -Daether.connector.basic.parallelPut=false. Don't know if the ASF slack archives are accessible though.

  4. cstamas commented on Jan 17, 2026

    @cstamas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions