Simple fix to add --allow-script-in-comments for Javadoc8+
<!-- 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>
<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>
<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>
</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>
