gnodet commented on issue #11436:
URL: https://github.com/apache/maven/issues/11436#issuecomment-3532517929

   This looks like a regression, but I think this is more like a hidden side 
effect of Maven 3.
   What happens is that when the project is built, dependencies are resolved 
correctly, Maven 3 adding the project repositories to the resolver collection 
request, i.e. maven central.
   However, when the flatten plugin resolves the project, it does not add the 
"default" repositories to the resolution request and the resolution fails.
   This is working with Maven 3 because it caches the loaded model and bypass 
the resolution.  However, Maven 4 is a bit stricter and does not consider the 
flatten-plugin request to be identical to the requests because the repository 
has not been added. It then try to resolves again, and only adds 
apache-snapshots as specified in the Jackson pom.
   I think this is thus a bug in the flatten plugin.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to