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

Elliotte Rusty Harold updated MRELEASE-849:
-------------------------------------------
    Priority: Minor  (was: Major)

> Release plugin replaces parent version with pom version when 
> groupId/artifactId are identical
> ---------------------------------------------------------------------------------------------
>
>                 Key: MRELEASE-849
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-849
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.4.1
>            Reporter: Tuomas Kiviaho
>            Priority: Minor
>         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 was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to