Skip to content

Commit

Permalink
Fixed position of maven-antrun-plugin in order to ensure execution du…
Browse files Browse the repository at this point in the history
…ring release
  • Loading branch information
danielfernandez committed Dec 26, 2020
1 parent cda5344 commit ded9c9f
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -222,36 +222,6 @@
</executions>
</plugin>

<!-- IMPORTANT: This plugin should always appear AFTER maven-javadoc-plugin in this pom.xml -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<!-- Copy javadoc's "element-list" file to "package-list" in order to allow projects -->
<!-- using versions of the javadoc tool < JDK9 to properly link to Thymeleaf's javadoc -->
<!-- as an external link. -->
<!-- NOTE this modifies the javadoc AFTER the creation of the jar as it is not possible -->
<!-- to do so by previously configuring javadoc:javadoc in the prepare-package phase -->
<!-- because this "package-list" modification would trigger a second execution of the -->
<!-- javadoc tool in the javadoc:jar goal. -->
<execution>
<id>copy-javadoc-element-list-to-packate-list</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy javadocs element-list to package-list">
<copy file="${project.build.directory}/apidocs/element-list"
tofile="${project.build.directory}/apidocs/package-list"
failonerror="false"/>
</target>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand Down Expand Up @@ -293,6 +263,36 @@
<version>2.5.3</version>
</plugin>

<!-- IMPORTANT: This plugin should always appear AFTER maven-release-plugin in this pom.xml -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<!-- Copy javadoc's "element-list" file to "package-list" in order to allow projects -->
<!-- using versions of the javadoc tool < JDK9 to properly link to Thymeleaf's javadoc -->
<!-- as an external link. -->
<!-- NOTE this modifies the javadoc AFTER the creation of the jar as it is not possible -->
<!-- to do so by previously configuring javadoc:javadoc in the prepare-package phase -->
<!-- because this "package-list" modification would trigger a second execution of the -->
<!-- javadoc tool in the javadoc:jar goal. -->
<execution>
<id>copy-javadoc-element-list-to-package-list</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target name="copy javadocs element-list to package-list">
<copy file="${project.build.directory}/apidocs/element-list"
tofile="${project.build.directory}/apidocs/package-list"
failonerror="false"/>
</target>
</configuration>
</execution>
</executions>
</plugin>


</plugins>

Expand Down

0 comments on commit ded9c9f

Please sign in to comment.