maven
maven copied to clipboard
[MNG-8451] Core inject depMgt for plugin resolution
Maven Core injects "own provided" artifacts when resolving plugins, instead to let the resolve and then just leave out from the classpath, this makes much less downloads happening.
Example of effects of this PR: Rebuilding Maven master with empty local repository, and after the build:
- w/ master maven local repository 216MB / 3188 files
- w/ this PR maven local repository 209MB / 2864 files
(this PR basically makes unnecessary to set "maven core dependencies to provided" anymore, as it will NOT download those unused versions, given core is providing itself instead)
Note: Maven master sports "quite fresh" (and aligned) plugins, and almost all are fixed re "provided" scope, hence this difference is not big, but it would be much more visible on some build using "higher range" of non aligned plugins.
https://issues.apache.org/jira/browse/MNG-8451
This works cool, but breaks https://issues.apache.org/jira/browse/MNG-5783 We need to implement the proposed fix in refd issue.
This works cool, but breaks https://issues.apache.org/jira/browse/MNG-5783 We need to implement the proposed fix in refd issue.
The fix was implemented in https://github.com/apache/maven/commit/b7088a34edd8cd34ab3b376d9baf90bdb6f8dc00 AFAIK. This may be something slightly different.
Resolve #9404