Skip to content

Commit e34bdc9

Browse files
committed
Move the generating documentation to a separate profile
* Given that this profile is for a specific purpose it does not need to be namespaced * The release profile needs namespacing as it is used from settings.xml also which is cross project. There should be nobody using a profile called generate-docs to activate their release GPG credentials
1 parent 56cdd8b commit e34bdc9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pom.xml

+13-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<configuration>
258258
<mavenExecutorId>forked-path</mavenExecutorId>
259259
<useReleaseProfile>false</useReleaseProfile>
260-
<arguments>-Pjunit-release ${arguments}</arguments>
260+
<arguments>-Pgenerate-docs,junit-release ${arguments}</arguments>
261261
<tagNameFormat>r@{project.version}</tagNameFormat>
262262
</configuration>
263263
</plugin>
@@ -292,6 +292,18 @@
292292
</execution>
293293
</executions>
294294
</plugin>
295+
</plugins>
296+
</build>
297+
</profile>
298+
<profile>
299+
<id>generate-docs</id>
300+
<!--
301+
Generate the documentation artifacts.
302+
Note: this profile is also required to be active for release
303+
builds due to the packaging requirements of the Central repo
304+
-->
305+
<build>
306+
<plugins>
295307
<plugin>
296308
<artifactId>maven-source-plugin</artifactId>
297309
<executions>

0 commit comments

Comments
 (0)