Skip to content

Commit

Permalink
groupId from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Aug 23, 2024
1 parent 8e567fc commit 1d52e26
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- [fj-doc-maven-plugin] groupId from parent

## [8.6.4] - 2024-08-22

### Changed

- quarkus version set to 3.14.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ public VenusContext(File projectDir, String version, String extensions ) {
this.modules = new HashSet<>();
}

public String getGroupId() {
if ( this.getMavenModel().getGroupId() != null ) {
return this.getMavenModel().getGroupId();
} else {
return this.getMavenModel().getParent().getGroupId();
}
}

public String getArtificatIdForFolder() {
return this.getMavenModel().getArtifactId().toLowerCase();
}
Expand All @@ -75,7 +83,7 @@ public String getFreemarkerVersion() {
}

public String getDocConfigPackage() {
return this.getMavenModel().getGroupId()+"."+this.getArtificatIdForName();
return this.getGroupId()+"."+this.getArtificatIdForName();
}

public String getTemplateSubPath() {
Expand Down
7 changes: 6 additions & 1 deletion fj-doc-maven-plugin/src/test/resources/ok2-pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.fugerit.java</groupId>
<artifactId>fj-bom</artifactId>
<version>1.6.5</version>
</parent>

<artifactId>fjdocmavenpluginok2</artifactId>
<groupId>org.fugerit.java.test</groupId>
<version>1.0.0-SNAPSHOT</version>

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

0 comments on commit 1d52e26

Please sign in to comment.