Skip to content

Commit

Permalink
Only copy element-list to package-list when using plugin 3.0.1 in rea…
Browse files Browse the repository at this point in the history
…ctor builds
  • Loading branch information
ao-apps committed Feb 10, 2023
1 parent 1e41d4a commit 522aa5f
Showing 1 changed file with 21 additions and 30 deletions.
51 changes: 21 additions & 30 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ along with ao-oss-parent. If not, see <https://www.gnu.org/licenses/>.
-->
<maven-javadoc-plugin.version>3.4.1</maven-javadoc-plugin.version>
<maven-javadoc-plugin.version.reactor>3.0.1</maven-javadoc-plugin.version.reactor>
<copy-element-list-to-package-list-before-javadoc.goal>none</copy-element-list-to-package-list-before-javadoc.goal>

<!-- The version of Java apidocs to link to, preferring https -->
<!-- Note: This list matches ao-javadoc-offline and semanticcms-tag-reference -->
Expand Down Expand Up @@ -1899,6 +1900,23 @@ along with ao-oss-parent. If not, see <https://www.gnu.org/licenses/>.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- maven-javadoc-plugin:3.0.1: Works both directly and in reactor build, but can't link to "element-list" -->
<execution>
<id>copy-element-list-to-package-list-before-javadoc</id><phase>prepare-package</phase><goals><goal>${copy-element-list-to-package-list-before-javadoc.goal}</goal></goals>
<configuration>
<target>
<copy todir="${project.build.directory}/offlineLinks">
<fileset dir="${project.build.directory}/offlineLinks" includes="**/element-list" />
<globmapper from="*/element-list" to="*/package-list" />
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId>
<configuration>
Expand Down Expand Up @@ -1973,28 +1991,8 @@ along with ao-oss-parent. If not, see <https://www.gnu.org/licenses/>.
<id>reactor</id>
<properties>
<maven-javadoc-plugin.version>${maven-javadoc-plugin.version.reactor}</maven-javadoc-plugin.version>
<copy-element-list-to-package-list-before-javadoc.goal>run</copy-element-list-to-package-list-before-javadoc.goal>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- maven-javadoc-plugin:3.0.1: Works both directly and in reactor build, but can't link to "element-list" -->
<execution>
<id>copy-element-list-to-package-list-before-javadoc</id><phase>prepare-package</phase><goals><goal>run</goal></goals>
<configuration>
<target>
<copy todir="${project.build.directory}/offlineLinks">
<fileset dir="${project.build.directory}/offlineLinks" includes="**/element-list" />
<globmapper from="*/element-list" to="*/package-list" />
</copy>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!--
Expand All @@ -2007,6 +2005,8 @@ along with ao-oss-parent. If not, see <https://www.gnu.org/licenses/>.
<properties>
<!-- Provides default breadcrumbs for when profile.d/maven.javadoc.skip exists -->
<javadoc.breadcrumbs><![CDATA[<a target="${javadoc.target}" href="${project.url}">${project.name}</a>]]></javadoc.breadcrumbs>
<!-- maven-javadoc-plugin:3.0.1: Works both directly and in reactor build, but can't link to "element-list" -->
<copy-element-list-to-package-list-before-javadoc.goal>none</copy-element-list-to-package-list-before-javadoc.goal>
</properties>
<build>
<plugins>
Expand All @@ -2018,15 +2018,6 @@ along with ao-oss-parent. If not, see <https://www.gnu.org/licenses/>.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId>
<executions>
<!-- maven-javadoc-plugin:3.0.1: Works both directly and in reactor build, but can't link to "element-list" -->
<execution>
<id>copy-element-list-to-package-list-before-javadoc</id><phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-javadoc-plugin</artifactId>
<configuration><skip>true</skip></configuration>
Expand Down

0 comments on commit 522aa5f

Please sign in to comment.