[
http://jira.codehaus.org/browse/MNG-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_126154
]
John Casey commented on MNG-3394:
---------------------------------
the *Management sections of the POM were originally designed to provide default
values, not overrides. This behavior was changed for dependencies in MNG-1577
IIRC, but I don't know when the change was made for plugins. The behavior
should probably be controlled in the class
org.apache.maven.project.injection.DefaultModelDefaultsInjector.java (in
maven-project). I've looked into this class in both 2.0.x and trunk, and
they're the same...not sure whether that means the change happened before the
split (unlikely) or was ported across (more likely), but in both cases it looks
like it only uses the pluginManagement version if the main version is missing
and the pluginManagement version is not.
I'm not really sure what's going on here, but hopefully that can shed a little
light on the background for this.
> 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