Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.1
-
None
-
None
-
Verified on Windows
Description
I have an archetype for a multi-module project with 2 sub-modules: one is a child of the multi-module project, the other one is the child of a different parent pom. The groupId and artifactId of that different parent is explicitly written in the archetype's sub-module pom (no variables).
When creating a project from the archetype both sub-modules turn out to have the same parent (the multi-module).
I have attached a zip-file containing
_the template multi-module project
_the archetype generated from that project
_the archetype-catalog.xml for the archetype
_the two parents
_a test project generated with the archetype showing the described Symptoms
Steps to reproduce:
1. Install the parents and the archetype
2. Create a test project using the archetype - make sure to use the same groupId ("groupId") and version ("1.0-SNAPSHOT") as the parent as it will not build otherwise.
3. In the created test project look at the pom of the sub-module "childModuleProjectWithDifferentParent": the parent is "groupId:test"
4. Have a look at the pom of the same sub-module in the archetype: the parent is explicitly set to "differentGroupId:differentParent"!