Increase the number of reported Javadoc errors and warning when building with Maven

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Increase the number of reported Javadoc errors and warning when building with Maven



I am using Maven to build a project which has somewhat suboptimal Javadoc comments.



I have noticed that no matter how many warnings I fix, I always get only 100 warnings reported:


Building index for all the packages and classes...
Generating ...targetsiteapidocsoverview-tree.html...
Generating ...targetsiteapidocsindex-all.html...
Generating ...targetsiteapidocsdeprecated-list.html...
Building index for all classes...
Generating ...targetsiteapidocsallclasses-frame.html...
Generating ...targetsiteapidocsallclasses-frame.html...
Generating ...targetsiteapidocsallclasses-noframe.html...
Generating ...targetsiteapidocsallclasses-noframe.html...
Generating ...targetsiteapidocsindex.html...
Generating ...targetsiteapidocsoverview-summary.html...
Generating ...targetsiteapidocshelp-doc.html...
100 errors
100 warnings
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------



I would like to see all of the errirs and warnings or at least the total count.



How do I achieve this with Maven?




1 Answer
1



I have finally found the following configuration to work:


<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalJOptions>
<additionalJOption>-Xmaxerrs</additionalJOption>
<additionalJOption>65536</additionalJOption>
<additionalJOption>-Xmaxwarns</additionalJOption>
<additionalJOption>65536</additionalJOption>
</additionalJOptions>
</configuration>
</plugin>



It basically passes -Xmaxerrs 65536 and -Xmaxwarns 65536 (as documented here) to javadoc.


-Xmaxerrs 65536


-Xmaxwarns 65536


javadoc






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Visual Studio Code: How to configure includePath for better IntelliSense results

Spring cloud config client Could not locate PropertySource

Current 93