Skip to content

Commit

Permalink
Moves javadoc-plugin execution to 'apache-release' profile
Browse files Browse the repository at this point in the history
- adjust build for 'non-Java JARs' bundling flavor
- resolves 'creating fake javadoc directory to prevent repeated invocations' warnings and related extra effort for non-release builds
  • Loading branch information
mawiesne committed Oct 31, 2024
1 parent b9a04b0 commit 85d9242
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,29 +222,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc.plugin.version}</version>
<configuration>
<doclint>none</doclint>
<source>${java.version}</source>
<sourcepath>src/main/java</sourcepath>
</configuration>
<executions>
<execution>
<id>create-javadoc-jar</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<show>public</show>
<quiet>false</quiet>
<use>false</use> <!-- Speeds up the build of the javadocs -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -253,6 +230,29 @@
<id>apache-release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${javadoc.plugin.version}</version>
<configuration>
<doclint>none</doclint>
<source>${java.version}</source>
<sourcepath>src/main/java</sourcepath>
</configuration>
<executions>
<execution>
<id>create-javadoc-jar</id>
<goals>
<goal>jar</goal>
</goals>
<phase>package</phase>
<configuration>
<show>public</show>
<quiet>false</quiet>
<use>false</use> <!-- Speeds up the build of the javadocs -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
Expand Down

0 comments on commit 85d9242

Please sign in to comment.