GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Maven 3.10.0 - new warnings after upgrade from 3.9.16 · Issue #13468 · apache/maven

Maven 3.10.0 - new warnings after upgrade from 3.9.16 #13468

New issue
Copy link
New issue
Copy link
Closed
Closed
Maven 3.10.0 - new warnings after upgrade from 3.9.16#13468
Copy link
Assignees
slawekjaranowski
Labels
bugSomething isn't working
Milestone
3.10.1

Description

@robertklaus-bosch
robertklaus-bosch
opened on Oct 13, 2026
Issue body actions

Affected version

3.10.0

Bug description

In an automated build scenario, we upgraded from 3.9.16 to 3.10.0.

The log now contains several new warnings. In comparison, the build in 3.9.16 has none. I decided to report this, as I could not really find the problem and maybe other users stumble over this. This could be more of a migration guide topic or a mentioning in the release notes on what to do, to get your build clean.
As the 3.10.0 release is on the "alignment" between 3.10.0 and 4.0 I think it would make sense to have that in a Maven 4 migration guide (Not in https://maven.apache.org/guides/mini/guide-migration-to-mvn4.html).

We call Maven with following arguments to keep log output small and focused on problems:
mvn -e -B --no-transfer-progress

This one is mentioned as new feature in release notes with repositoryOrigins and was backported to 3.x according to issue. The documentation does not explain this (I looked at https://maven.apache.org/settings.html#Servers).

Warning:  Using credentials of server 'xyz-releases' for repository https://<host>/<app>/xyz-release-local/, although no repository or mirror with this id is declared in settings or on the command line and the server declares no <repositoryOrigins>. Declare 'https://<host>/' in <repositoryOrigins> of that server in settings to bind these credentials explicitly, or set maven.repository.credentialScope=strict to refuse such credential use.

In this case we have a company mirror for Maven Central. As this is in an automated build and I have no control over the cache, I am unsure how to resolve this warning. There are more than 400 new lines of warnings now, so would be nice to know what to do:

Warning:  org.apache.groovy:groovy-bom:pom:5.0.6 was downloaded from https://<host>/<app>/maven-central-remote/ while a cached not-found from a previous attempt suppresses re-checking https://<host>/<app>/xyz-release-local/; expiring the cached not-found so that repository is checked again on the next resolution

Activity

  1. robertklaus-bosch
    added
    bugSomething isn't working
    on Oct 13, 2026
  2. robertklaus-bosch commented on Oct 13, 2026

    @robertklaus-bosch
    robertklaus-bosch
    on Oct 13, 2026
    Author
    More actions

    Related issues (IMHO) for first warning:

    • [MNG-8380] Allow Repositories and Mirrors To Delegate Credentials To A <server> #10248
    • [MNG-5913] Allow to define aliases for existing server configurations in settings.xml #7757
    • [MNG-6895] Add aliasing feature for settings.xml:///servers/server #8419
  3. cstamas commented on Oct 14, 2026

    @cstamas
    cstamas
    on Oct 14, 2026
    Member
    More actions

    @slawekjaranowski can you chime in please?

    Reacted by Slawomir Jaranowski
  4. slawekjaranowski commented on Oct 14, 2026

    @slawekjaranowski
    slawekjaranowski
    on Oct 14, 2026
    Member
    More actions

    I will look at it

    Reacted by Robert Klaus
  5. slawekjaranowski
    self-assigned this
    on Oct 14, 2026
  6. robertklaus-bosch commented on Oct 14, 2026

    @robertklaus-bosch
    robertklaus-bosch
    on Oct 14, 2026
    Author
    More actions

    In case there are questions: I'll be unresponsive for a few days but asked a colleague if he could help out.

    For us, this is not an urgent topic.

  7. slawekjaranowski commented on Oct 15, 2026

    @slawekjaranowski
    slawekjaranowski
    on Oct 15, 2026
    Member
    More actions

    I see two warning in issue description:

    Warning: Using credentials of server 'xyz-releases' for repository https://<host>/<app>/xyz-release-local/, although no repository or mirror with this id is declared in settings or on the command line and the server declares no <repositoryOrigins>. Declare 'https://<host>/' in <repositoryOrigins> of that server in settings to bind these credentials explicitly, or set maven.repository.credentialScope=strict to refuse such credential use.

    it is connected with:

    • Scope server credentials and validate legacy relocation coordinates #12954
    • Issue #13265: let a settings server declare the repository origins its credentials may be used with #13275

    and

    Warning: org.apache.groovy:groovy-bom:pom:5.0.6 was downloaded from https://<host>/<app>/maven-central-remote/ while a cached not-found from a previous attempt suppresses re-checking https://<host>/<app>/xyz-release-local/; expiring the cached not-found so that repository is checked again on the next resolution

    is from resolver 2.x @cstamas can you explain it again ...

  8. slawekjaranowski
    added this to the 3.10.1 milestone on Oct 18, 2026
  9. cstamas commented on Oct 21, 2026

    @cstamas
    cstamas
    on Oct 21, 2026
    Member
    More actions

    Resolver 2 origin of the message is coming from here:
    apache/maven-resolver@55252d5

    Basically, once you "hop" to 3.10.0, these messages should be less and less (unless you share your local repository with older Maven, that is not recommended). Message is emitted when stale 404 cached markers are being removed, and after few iterations, these messages should be gone (or if not, pls provide us logs to analyze).

  10. slawekjaranowski commented on Oct 22, 2026

    @slawekjaranowski
    slawekjaranowski
    on Oct 22, 2026
    Member
    More actions

    Documentation about repositoryOrigins was added:

    https://maven.apache.org/settings.html#Server_Repository_Origins

    Reacted by Robert Klaus
  11. robertklaus-bosch commented on Oct 28, 2026

    @robertklaus-bosch
    robertklaus-bosch
    on Oct 28, 2026
    Author
    More actions

    First of all thanks for taking care about issues like this!

    I have added a repositoryOrigin according to docs and the first warning is gone.

    For the second warning though, there are still warnings. I did now following:

    I configured a local repository in the maven call like this: mvn -X -Dmaven.repo.local=/some/tmp/dir/.m2/repository
    The directory is wiped before and after the CI job (according to docs). This is important, as there should be no local files / no older Maven versions interfering.

    Due to -X there are tons of debug messages. I tried to extract the relevant ones for one artifact with warnings. I hope these are the log statements that help. If not, let me know which ones would be needed.

    2026-10-28T16:00:57.3014515Z [DEBUG] Resolving artifact org.apache.activemq:activemq-bom:pom:6.1.8 from [xyz-releases (https://<host>/<app>/xyz-release/, default, releases+snapshots), xyz-snapshots (https://<host>/<app>/xyz-snapshot/, default, releases+snapshots), Artifactory-Central-Mirror (https://<host>/<app>/maven-central-remote/, default, releases)]
    2026-10-28T16:00:57.3037132Z [DEBUG] Resolving artifact org.apache.activemq:activemq-bom:pom:6.1.8 from [xyz-releases (https://<host>/<app>/xyz-release/, default, releases+snapshots), xyz-snapshots (https://<host>/<app>/xyz-snapshot/, default, releases+snapshots), Artifactory-Central-Mirror (https://<host>/<app>/maven-central-remote/, default, releases)]
    2026-10-28T16:00:57.3053727Z [DEBUG] Selecting RepositoryConnector for xyz-releases (https://<host>/<app>/xyz-release/, default, releases+snapshots)
    2026-10-28T16:00:57.3062572Z [DEBUG] Selecting RepositoryLayout for xyz-releases (https://<host>/<app>/xyz-release/, default, releases+snapshots)
    2026-10-28T16:00:57.3070515Z [DEBUG] Using layout Maven2RepositoryLayout with priority 0.0 for https://<host>/<app>/xyz-release/
    2026-10-28T16:00:57.3078082Z [DEBUG] Selecting Transporter for xyz-releases (https://<host>/<app>/xyz-release/, default, releases+snapshots)
    2026-10-28T16:00:57.3087356Z [DEBUG] Using transporter ApacheTransporter with priority 5.0 for https://<host>/<app>/xyz-release/ with username=***, ***
    2026-10-28T16:00:57.3095440Z [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://<host>/<app>/xyz-release/
    2026-10-28T16:00:57.3103670Z [DEBUG] Final pipeline: offline( rrf( basic( xyz-releases (https://<host>/<app>/xyz-release/, default, releases+snapshots) ) ) )
    2026-10-28T16:00:57.3131849Z [DEBUG] Writing tracking file '/some/tmp/dir/.m2/repository/org/apache/activemq/activemq-bom/6.1.8/activemq-bom-6.1.8.pom.lastUpdated'
    2026-10-28T16:00:57.3139835Z [DEBUG] Selecting RepositoryConnector for xyz-snapshots (https://<host>/<app>/xyz-snapshot/, default, releases+snapshots)
    2026-10-28T16:00:57.3148788Z [DEBUG] Selecting RepositoryLayout for xyz-snapshots (https://<host>/<app>/xyz-snapshot/, default, releases+snapshots)
    2026-10-28T16:00:57.3156622Z [DEBUG] Using layout Maven2RepositoryLayout with priority 0.0 for https://<host>/<app>/xyz-snapshot/
    2026-10-28T16:00:57.3164680Z [DEBUG] Selecting Transporter for xyz-snapshots (https://<host>/<app>/xyz-snapshot/, default, releases+snapshots)
    2026-10-28T16:00:57.3173871Z [DEBUG] Using transporter ApacheTransporter with priority 5.0 for https://<host>/<app>/xyz-snapshot/ with username=***, ***
    2026-10-28T16:00:57.3181768Z [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://<host>/<app>/xyz-snapshot/
    2026-10-28T16:00:57.3190079Z [DEBUG] Final pipeline: offline( rrf( basic( xyz-snapshots (https://<host>/<app>/xyz-snapshot/, default, releases+snapshots) ) ) )
    2026-10-28T16:00:57.3242533Z [DEBUG] Writing tracking file '/some/tmp/dir/.m2/repository/org/apache/activemq/activemq-bom/6.1.8/activemq-bom-6.1.8.pom.lastUpdated'
    2026-10-28T16:00:57.3249623Z [DEBUG] Selecting RepositoryConnector for Artifactory-Central-Mirror (https://<host>/<app>/maven-central-remote/, default, releases)
    2026-10-28T16:00:57.3256728Z [DEBUG] Selecting RepositoryLayout for Artifactory-Central-Mirror (https://<host>/<app>/maven-central-remote/, default, releases)
    2026-10-28T16:00:57.3263339Z [DEBUG] Using layout Maven2RepositoryLayout with priority 0.0 for https://<host>/<app>/maven-central-remote/
    2026-10-28T16:00:57.3270044Z [DEBUG] Selecting Transporter for Artifactory-Central-Mirror (https://<host>/<app>/maven-central-remote/, default, releases)
    2026-10-28T16:00:57.3277955Z [DEBUG] Using transporter ApacheTransporter with priority 5.0 for https://<host>/<app>/maven-central-remote/ with username=***, ***
    2026-10-28T16:00:57.3284705Z [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://<host>/<app>/maven-central-remote/
    2026-10-28T16:00:57.3291707Z [DEBUG] Final pipeline: offline( rrf( basic( Artifactory-Central-Mirror (https://<host>/<app>/maven-central-remote/, default, releases) ) ) )
    2026-10-28T16:00:57.3926202Z [DEBUG] Writing tracking file '/some/tmp/dir/.m2/repository/org/apache/activemq/activemq-bom/6.1.8/_remote.repositories'
    2026-10-28T16:00:57.3935174Z [WARNING] org.apache.activemq:activemq-bom:pom:6.1.8 was downloaded from https://<host>/<app>/maven-central-remote/ while a cached not-found from a previous attempt suppresses re-checking https://<host>/<app>/xyz-release/; expiring the cached not-found so that repository is checked again on the next resolution
    2026-10-28T16:00:57.3945433Z [WARNING] org.apache.activemq:activemq-bom:pom:6.1.8 was downloaded from https://<host>/<app>/maven-central-remote/ while a cached not-found from a previous attempt suppresses re-checking https://<host>/<app>/xyz-snapshot/; expiring the cached not-found so that repository is checked again on the next resolution
    2026-10-28T16:00:57.3952229Z [DEBUG] Writing tracking file '/some/tmp/dir/.m2/repository/org/apache/activemq/activemq-bom/6.1.8/activemq-bom-6.1.8.pom.lastUpdated'
  12. cstamas commented on Nov 8, 2026

    @cstamas
    cstamas
    on Nov 8, 2026
    Member
    More actions

    Anything remains here to fix on our side?

  13. robertklaus-bosch commented on Nov 9, 2026

    @robertklaus-bosch
    robertklaus-bosch
    on Nov 9, 2026
    Author
    More actions

    Sorry, I might not have been explicit enough. Yes, I think there is still something wrong - could you have a look please?

    after few iterations, these messages should be gone (or if not, pls provide us logs to analyze).

    In my observation I see a WARNING message when an artifact is downloaded either due to a version update or an empty repository.

    We often have the case of an empty local repository which is then full of warnings. I also tested locally by removing one artifact from the local repository and also got the warning.

    For me it looks as if an artifact is requested form the release and snapshot repository (that don't have it) and the warning appears later when it is found on central.

    This is normal behavior so I don't know why there is a warning message. Maybe it should be a DEBUG or INFO?

    I hope that makes sense.

  14. robertklaus-bosch commented on Nov 9, 2026

    @robertklaus-bosch
    robertklaus-bosch
    on Nov 9, 2026
    Author
    More actions

    I just saw the release of 3.10.1 is upcoming and a fix for apache/maven-resolver#2196 that looks directly like this problem.

    Thus, nothing to do here anymore.

    Thanks for the support!

  15. robertklaus-bosch
    closed this as completedon Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @slawekjaranowski
    slawekjaranowski

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    • 3.10.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.