maven icon indicating copy to clipboard operation
maven copied to clipboard

[MNG-8451] Core inject depMgt for plugin resolution

Open cstamas opened this issue 11 months ago • 2 comments

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

cstamas avatar Dec 19 '24 12:12 cstamas

This works cool, but breaks https://issues.apache.org/jira/browse/MNG-5783 We need to implement the proposed fix in refd issue.

cstamas avatar Dec 19 '24 14:12 cstamas

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.

gnodet avatar Jan 09 '25 08:01 gnodet

Resolve #9404

jira-importer avatar Jul 07 '25 09:07 jira-importer