Accept groupId in pom.xml from parent, too
ckunki opened this issue · 0 comments
ckunki commented
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:
- project is new and contains file
pom.xml
pk verify
reports finding "This projects structure does not conform with the template"pk fix
creates filepk_generated_parent.pom
with hard-coded groupIdcom.exasol
and registers as parent pom in filepom.xml
- 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