Duncan Doyle created FORGE-2378:
-----------------------------------
Summary: project-new gives error when parent POM inherits groupId from its
own parent: [FATAL] parent.groupId is missing
Key: FORGE-2378
URL:
https://issues.jboss.org/browse/FORGE-2378
Project: Forge
Issue Type: Feature Request
Components: Projects
Affects Versions: 2.16.2.Final
Environment: Mac OS X 10.10., Oracle Hotspot 1.7.0_79
Reporter: Duncan Doyle
On a simple multi-module project with layered parent poms, creating a new project in a POM
project that inherits its 'groupId' from its own parent, I get the following error
when creating new project from a Maven archetype:
[FATAL] 'parent.groupId' is missing. @ line 5, column 11
To reproduce:
1) clone the following repo
https://github.com/DuncanDoyle/forge-multi-module-parent-groupid-issue: {{git clone
https://github.com/DuncanDoyle/forge-multi-module-parent-groupid-issue}}
2) Go to 'simple-services-parent directory: {{cd
simple-parent/simple-services-parent}}
3) Start Forge: {{forge}}
4) Create a new project from an archetype catalog: {{project-new --type
from-archetype-catalog}}. Finish the interactive dialog and the following error will be
printed:
{code}
***ERROR*** Project
'/Users/ddoyle/Development/github/forge-multi-module-parent-groupid-issue/simple-parent/simple-services-parent/simple-rest-service'
has errors
***ERROR*** 1 problem was encountered while building the effective model for
org.simple.rest.service:simple-rest-service:1.0.0-SNAPSHOT
[FATAL] 'parent.groupId' is missing. @ line 5, column 11
for project org.simple.rest.service:simple-rest-service:1.0.0-SNAPSHOT at
/Users/ddoyle/Development/github/forge-multi-module-parent-groupid-issue/simple-parent/simple-services-parent/simple-rest-service/pom.xml
Creating archetype using Maven groupId: org.simple.rest.service, artifactId:
simple-rest-service, version: 1.0.0-SNAPSHOT in directory:
/Users/ddoyle/Development/github/forge-multi-module-parent-groupid-issue/simple-parent/simple-services-parent/simple-rest-service
Using replace properties: {}
***SUCCESS*** Project named 'simple-rest-service' has been created.
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)