root/child-b/pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>net.example</groupId>
    <artifactId>root</artifactId>
  </parent>
  <artifactId>child-b</artifactId>
  <version>1.2.0</version>
  <packaging>pom</packaging>
  <name>ChildB</name>
  <modules>
    <module>child-b-1</module>
    <module>child-b-2</module>
  </modules>
</project>

root/child-b/target/pom-transformed.xml

<?xml version="1.0" encoding="UTF-8"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>net.example</groupId>
    <artifactId>root</artifactId>
    <version>1.0.0</version>
  </parent>
  <artifactId>child-b</artifactId>
  <version>1.2.0</version>
  <packaging>pom</packaging>
  <name>ChildB</name>
  <modules>
    <module>child-b-1</module>
    <module>child-b-2</module>
  </modules>
</project>