Simple fix to add --allow-script-in-comments for Javadoc8+

This commit is contained in:
Sebb 2017-05-07 13:19:05 +01:00
parent 52ddc9d353
commit cdf22ce631
1 changed files with 13 additions and 2 deletions

15
pom.xml
View File

@ -462,6 +462,9 @@
<!-- JMH Benchmark related properties, version, target compiler and name of the benchmarking uber jar. -->
<jmh.version>1.13</jmh.version>
<uberjar.name>benchmarks</uberjar.name>
<!-- MathJax requires additional Javadoc qualifier for Java8+ -->
<!-- default to empty for earlier versions of Java -->
<mathjax.javadoc.qualifier></mathjax.javadoc.qualifier>
</properties>
<build>
@ -587,7 +590,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>--allow-script-in-comments -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
<additionalparam>${mathjax.javadoc.qualifier} -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
</configuration>
</plugin>
</plugins>
@ -738,7 +741,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>--allow-script-in-comments -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
<additionalparam>${mathjax.javadoc.qualifier} -header '&lt;script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
</configuration>
</plugin>
</plugins>
@ -935,5 +938,13 @@
</plugins>
</build>
</profile>
<profile>
<id>mathjax-java8</id>
<activation><jdk>[1.8,)</jdk></activation>
<properties>
<!-- MathJax requires additional Javadoc qualifier for Java8+ -->
<mathjax.javadoc.qualifier>--allow-script-in-comments</mathjax.javadoc.qualifier>
</properties>
</profile>
</profiles>
</project>