Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2378

project-new gives error when parent POM inherits groupId from its own parent: [FATAL] parent.groupId is missing

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 2.17.0.Final
    • 2.16.2.Final
    • Projects
    • None

    Description

      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:

      ***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.
      

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            rhn-gps-ddoyle Duncan Doyle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: