[ http://jira.codehaus.org/browse/MNG-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126060 ]
Shane Isbell commented on MNG-3394: ----------------------------------- I've look at the code. There is a problem in the DefaultPluginManager.verifyVersionedPlugin. The method correctly determines the version of the plugin but then it makes a last invocation of pluginCollector.getPluginDescriptor( plugin ), which over rides the correct version of the plugin. There is a comment in the code of pluginCollector.getPluginDescriptor, which seems to touch on this problem: // TODO: include version, but can't do this in the plugin manager as it is not resolved to the right version // at that point. Instead, move the duplication check to the artifact container, or store it locally based on // the unresolved version? I'll keep digging to see how to fix it. > Plugin versions inherited via <pluginManagement> cannot be overriden by > <build>.<plugins> section of sub modules > ---------------------------------------------------------------------------------------------------------------- > > Key: MNG-3394 > URL: http://jira.codehaus.org/browse/MNG-3394 > Project: Maven 2 > Issue Type: Bug > Components: Inheritance and Interpolation > Affects Versions: 2.0.8 > Reporter: Benjamin Bentmann > Priority: Critical > Fix For: 2.0.9 > > Attachments: plugin-management-version.zip > > > See the comments in the module POM of the attached demo project for more > explanation. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira