Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Environment:2.0.2-SNAPSHOT
-
Complexity:Intermediate
Description
dep management is not honoured for plugins dep evaluation.
<kenney> hm.. looks like inheritance, after investigating.. the MavenMetaDataSource doesn't use the MavenProject.getDependencyManagement
<kenney> jah.. found it.
<jallen> NICE, estimate... 30 mins or 30 hrs?
<kenney> 30 mins
<kenney> the maven-project DefaultMavenProjectBuilder uses a different method in the ArtifactResolved to resolve deps than the maven-core DefaultPluginManager
<kenney> but all the info is available..
Issue Links
- relates to
-
MNG-2496
dependencyManagement not used for dependencies in plugin section.
-
Related sources:
maven-project/.../DefaultMavenProjectBuilder.java, line 320: call to createManagedVersionMap.
Proposal: move to MavenProject.
Line 340: call to ArtifactResolver.resolveTransitively( ..., ..., managedVersionMap, ...);
maven-core/.../DefaultPluginManager.java, line 608. Call to ArtifactResolver.resolveTransitively(.., ..., ...)
(without the managedVersionMap).
Proposal: add call to moved createManagedVersionMap function as a parameter.