Skip to content

Commit 1d52e26

Browse files
committed
groupId from parent
1 parent 8e567fc commit 1d52e26

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- [fj-doc-maven-plugin] groupId from parent
13+
14+
## [8.6.4] - 2024-08-22
15+
1016
### Changed
1117

1218
- quarkus version set to 3.14.0

fj-doc-maven-plugin/src/main/java/org/fugerit/java/doc/project/facade/VenusContext.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public VenusContext(File projectDir, String version, String extensions ) {
5858
this.modules = new HashSet<>();
5959
}
6060

61+
public String getGroupId() {
62+
if ( this.getMavenModel().getGroupId() != null ) {
63+
return this.getMavenModel().getGroupId();
64+
} else {
65+
return this.getMavenModel().getParent().getGroupId();
66+
}
67+
}
68+
6169
public String getArtificatIdForFolder() {
6270
return this.getMavenModel().getArtifactId().toLowerCase();
6371
}
@@ -75,7 +83,7 @@ public String getFreemarkerVersion() {
7583
}
7684

7785
public String getDocConfigPackage() {
78-
return this.getMavenModel().getGroupId()+"."+this.getArtificatIdForName();
86+
return this.getGroupId()+"."+this.getArtificatIdForName();
7987
}
8088

8189
public String getTemplateSubPath() {

fj-doc-maven-plugin/src/test/resources/ok2-pom/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44

5+
<parent>
6+
<groupId>org.fugerit.java</groupId>
7+
<artifactId>fj-bom</artifactId>
8+
<version>1.6.5</version>
9+
</parent>
10+
511
<artifactId>fjdocmavenpluginok2</artifactId>
6-
<groupId>org.fugerit.java.test</groupId>
712
<version>1.0.0-SNAPSHOT</version>
813

914
<name>Fugerit Doc Maven Plugin Ok POM Test 2</name>

0 commit comments

Comments
 (0)