[ https://jira.codehaus.org/browse/MRELEASE-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=334094#comment-334094 ]
Jörg Schaible commented on MRELEASE-849: ---------------------------------------- bq. More natural solution would have be just merging between two branches Definitely. With your release scheme, you pile up any parent in the project you have released ever, because parent version x will always refer parent x-1. This does obviously not make sense. > 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 > Priority: Blocker > 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