You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Anders Hammar (JIRA)" <ji...@codehaus.org> on 2013/11/26 12:38:45 UTC

[jira] (MRELEASE-849) Release plugin replaces parent version with pom version when groupId/artifactId are identical

     [ https://jira.codehaus.org/browse/MRELEASE-849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anders Hammar updated MRELEASE-849:
-----------------------------------

    Priority: Major  (was: Blocker)
    
> Release plugin replaces parent version with pom version when groupId/artifactId are identical
> ---------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-849
>                 URL: https://jira.codehaus.org/browse/MRELEASE-849
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.4.1
>            Reporter: Tuomas Kiviaho
>         Attachments: AbstractRewritePomsPhase.patch
>
>
> POM rewriting for release phase doesn't handle well the following use case. Parent version will be replaced which is not the intention here. 
> {code:xml|title=pom.xml}
> <project>
>   <modelVersion>4.0.0</modelVersion>
>   <parent>
>     <groupId>foo</groupId>
>     <artifactId>bar</artifactId>
>     <version>1</version>
>   </parent>
>   <groupId>foo</groupId>
>   <artifactId>bar</artifactId>
>   <version>2-SNAPSHOT</version>
>   <packaging>pom</packaging>
> </project>
> {code}
> I would assume this to be perfectly valid when introducing a new non-backwards compatible feature to a parent pom. Probably I could replace the inheritance with delegation by using pluginManagement/dependencyManagement sections and import scope but I don't think there's similar notation for profiles.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira