Set javadoc-plugin for <build> as well
<numbers.findbugs.version>3.0.2</numbers.findbugs.version>
<numbers.checkstyle.version>2.17</numbers.checkstyle.version>
<numbers.clirr.version>2.7</numbers.clirr.version>
+ <numbers.mathjax.version>2.7.1</numbers.mathjax.version>
<!-- Workaround to avoid duplicating config files. -->
<numbers.parent.dir>${basedir}</numbers.parent.dir>
</excludes>
</configuration>
</plugin>
+
+ <plugin>
+ <!-- NOTE: javadoc config must also be set under <reporting> -->
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <!-- Enable MathJax -->
+ <additionalparam>-Xdoclint:all --allow-script-in-comments -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${numbers.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
+ <!-- <aggregate>true</aggregate> -->
+ </configuration>
+ </plugin>
+
</plugins>
<pluginManagement>
</reportSet>
</reportSets>
</plugin>
- <!-- MathJax -->
<plugin>
+ <!-- NOTE: javadoc config must also be set under <build> -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
- <additionalparam>-Xdoclint:all --allow-script-in-comments -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
+ <!-- Enable MathJax -->
+ <additionalparam>-Xdoclint:all --allow-script-in-comments -header '&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/${numbers.mathjax.version}/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;'</additionalparam>
<!-- <aggregate>true</aggregate> -->
</configuration>
</plugin>
