Skip to content

Commit 35a5c5d

Browse files
committed
Configured the productMajorVersion with codehaus.mojo
Signed-off-by: Atwijukire Ariho Seth <[email protected]>
1 parent dadbf9d commit 35a5c5d

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

docs/parent/pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<html.rel.file.prefix></html.rel.file.prefix>
4242
<mq.docs.url>https://eclipse-ee4j.github.io/openmq/guides/</mq.docs.url>
4343
<bookDirectory>${project.build.directory}/book</bookDirectory>
44-
<productMajorVersion>7</productMajorVersion>
44+
<productMajorVersion>${parsedVersion.majorVersion}</productMajorVersion>
4545
<productCurrentVersion>${project.version}</productCurrentVersion>
4646
</properties>
4747

@@ -173,6 +173,24 @@
173173
</executions>
174174
</plugin>
175175

176+
<plugin>
177+
<groupId>org.codehaus.mojo</groupId>
178+
<artifactId>build-helper-maven-plugin</artifactId>
179+
<version>3.6.1</version>
180+
<executions>
181+
<execution>
182+
<id>parse-version</id>
183+
<goals>
184+
<goal>parse-version</goal>
185+
</goals>
186+
<phase>validate</phase>
187+
<configuration>
188+
<propertyPrefix>parsedVersion</propertyPrefix>
189+
</configuration>
190+
</execution>
191+
</executions>
192+
</plugin>
193+
176194
<plugin>
177195
<groupId>org.codehaus.mojo</groupId>
178196
<artifactId>build-helper-maven-plugin</artifactId>

0 commit comments

Comments
 (0)