You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "robertklaus-bosch (via GitHub)" <gi...@apache.org> on 2026/10/13 09:53:46 UTC
[I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
robertklaus-bosch opened a new issue, #13468:
URL: https://github.com/apache/maven/issues/13468
### 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).
```bash
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:
```bash
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
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6164478375
@slawekjaranowski can you chime in please?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "robertklaus-bosch (via GitHub) via issues" <is...@maven.apache.org>.
robertklaus-bosch commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6745841211
I just saw the release of 3.10.1 is upcoming and a fix for https://github.com/apache/maven-resolver/issues/2196 that looks directly like this problem.
Thus, nothing to do here anymore.
Thanks for the support!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "robertklaus-bosch (via GitHub) via issues" <is...@maven.apache.org>.
robertklaus-bosch commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6735457150
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "robertklaus-bosch (via GitHub)" <gi...@apache.org>.
robertklaus-bosch commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6165738915
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.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "cstamas (via GitHub) via issues" <is...@maven.apache.org>.
cstamas commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6723293590
Anything remains here to fix on our side?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6349965765
Documentation about `repositoryOrigins` was added:
https://maven.apache.org/settings.html#Server_Repository_Origins
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "robertklaus-bosch (via GitHub) via issues" <is...@maven.apache.org>.
robertklaus-bosch closed issue #13468: Maven 3.10.0 - new warnings after upgrade from 3.9.16
URL: https://github.com/apache/maven/issues/13468
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6201248216
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:
- https://github.com/apache/maven/pull/12954
- https://github.com/apache/maven/pull/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 ...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "cstamas (via GitHub)" <gi...@apache.org>.
cstamas commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6322356855
Resolver 2 origin of the message is coming from here:
https://github.com/apache/maven-resolver/commit/55252d5fedb9cc64b08c7a77b923a39e495ef8bb
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).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6165285211
I will look at it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "robertklaus-bosch (via GitHub)" <gi...@apache.org>.
robertklaus-bosch commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6144436314
Related issues (IMHO) for first warning:
- https://github.com/apache/maven/issues/10248
- https://github.com/apache/maven/issues/7757
- https://github.com/apache/maven/issues/8419
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Maven 3.10.0 - new warnings after upgrade from 3.9.16 [maven]
Posted by "robertklaus-bosch (via GitHub)" <gi...@apache.org>.
robertklaus-bosch commented on issue #13468:
URL: https://github.com/apache/maven/issues/13468#issuecomment-6474592925
First of all thanks for taking care about issues like this!
If 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.
```bash
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'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org