If the child modules don't declare anymore the groupId, artifactId and version the flatten goal will fail to create the effective pom.
[ERROR] Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.7.3:flatten (flatten) on project module2: failed to create the effective pom: 3 problems were encountered while building the effective model for [unknown-group-id]:module2:[unknown-version]
[ERROR] [FATAL] 'parent.groupId' is missing. @
[ERROR] [FATAL] 'parent.artifactId' is missing. @
[ERROR] [FATAL] 'parent.version' is missing. @
[ERROR] -> [Help 1]
<parent/> <artifactId>module2</artifactId>
<parent> <relativePath>../pom.xml</relativePath> </parent> <artifactId>module3</artifactId>
maven-flatten-plugin-multimodule-issue
maven-flatten-plugin-multimodule-issue-master.zip