Refactor javadoc plugin into a Maven profile.
Moved javadoc configuration and execution into a dedicated profile to improve build configuration modularity. This change ensures the javadoc generation is optional and can be controlled via the `javadoc` profile activation.
This commit is contained in:
@@ -114,16 +114,8 @@
|
|||||||
<failOnError>false</failOnError>
|
<failOnError>false</failOnError>
|
||||||
<locale>en</locale>
|
<locale>en</locale>
|
||||||
<source>${java.version}</source>
|
<source>${java.version}</source>
|
||||||
<reportOutputDirectory>${project.basedir}/docs</reportOutputDirectory>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
|
||||||
<id>build javadoc html</id>
|
|
||||||
<goals>
|
|
||||||
<goal>javadoc</goal>
|
|
||||||
</goals>
|
|
||||||
<phase>package</phase>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
<execution>
|
||||||
<id>build javadoc jar</id>
|
<id>build javadoc jar</id>
|
||||||
<goals>
|
<goals>
|
||||||
@@ -201,4 +193,34 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>javadoc</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>3.6.3</version>
|
||||||
|
<configuration>
|
||||||
|
<failOnError>false</failOnError>
|
||||||
|
<locale>en</locale>
|
||||||
|
<source>${java.version}</source>
|
||||||
|
<reportOutputDirectory>${project.basedir}/docs</reportOutputDirectory>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-javadoc-html</id>
|
||||||
|
<goals>
|
||||||
|
<goal>javadoc</goal>
|
||||||
|
</goals>
|
||||||
|
<phase>package</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
Reference in New Issue
Block a user