exasol/release-droid

Accept groupId in pom.xml from parent, too

ckunki opened this issue · 0 comments

Currently RD reports a finding if groupId is missing in file pom.xml.

E-RD-REP-31: Cannot detect a 'groupId' in the pom file. [For platforms: MAVEN,GITHUB]

Life cycle:

  1. project is new and contains file pom.xml
  2. pk verify reports finding "This projects structure does not conform with the template"
  3. pk fix creates file pk_generated_parent.pom with hard-coded groupId com.exasol and registers as parent pom in file pom.xml
  4. In this moment the groupId in file pom.xml is no longer required, but even redundant and leads to warnings in IDEs eclipse as well as IntelliJ: "GroupId is duplicate of parent groupId"

The current ticket therefore requests to enable RD to identify this situation and to accept groupId also from parent pom.
The user then can simply remove the groupId from file pom.xml and enjoy reduced warnings in IDE.
See also project-keeper/issues/357

credits to @redcatbear