Skip to content

Mvnup does not remove project version of subprojects when upgrading to 4.1.0 #7938

@Bukama

Description

@Bukama

Affected version

4.0.0-rc4

Bug description

When upgrading a multi subproject project to 4.1.0 the version tags don't get removed - even that they are not needed anymore and should be removed to avoid additional file changes when upgrading

Result of a subproject after upgrading

<project xmlns="http://maven.apache.org/POM/4.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.1.0 https://maven.apache.org/xsd/maven-4.1.0.xsd">
    <modelVersion>4.1.0</modelVersion>
    <groupId>my.test.mpmd386</groupId>
    <artifactId>MultiModuleRoot_ModuleA</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>jar</packaging>
    <name>Multi Module Root - Module A</name>


    <parent>
      <groupId>my.test.mpmd386</groupId>
      <artifactId>MultiModuleRoot</artifactId>
      <version>0.0.1-SNAPSHOT</version>
    </parent>
</project>

The own version and the parents version are not needed in 4.1.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions