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 #13468Labels bugSomething isn't working DescriptionAffected 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 Activityrobertklaus-bosch commented on Oct 13, 2026 Related issues (IMHO) for first warning:
cstamas commented on Oct 14, 2026 Reacted by Slawomir Jaranowski slawekjaranowski commented on Oct 14, 2026 robertklaus-bosch commented on Oct 14, 2026 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. slawekjaranowski commented on Oct 15, 2026 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:
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 ... cstamas commented on Oct 21, 2026 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). slawekjaranowski commented on Oct 22, 2026 robertklaus-bosch commented on Oct 28, 2026 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' cstamas commented on Nov 8, 2026 Anything remains here to fix on our side? robertklaus-bosch commented on Nov 9, 2026 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. robertklaus-bosch commented on Nov 9, 2026 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!
MetadataMetadatabugSomething isn't working DevelopmentNo branches or pull requestsIssue actions
|