Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-1
-
Fix Version/s: 2.0-beta-1
-
Component/s: Plugins and Lifecycle
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
Try: deleting ~/.m2/repository/org/codehaus and then build maven-model.
Somehow plugin dependencies are not resolved; weird that this doesn't occur more often.
This is because in DefaultPluginManager the verifyPlugin method calls checkRequiredMavenVersion
with just the PluginArtifactRepositories. The checkRequiredMavenVersion resolves the plugin and/or
its dependencies but does not have access to the normal artifact repositories, so only plugin repositories
can be searched for the plugin's dependencies.
Modified the verifyPlugin method to add the RemoteArtifactRepositories to the list.
First I thought this was because of a duplicate repository <id>; changing it fixed it. But I couldn't
reproduce it again, and after fixing it it was something else; so I renamed this issue.