Compiling all the answers, and adding something else, we have the following.
To configure the maven project you should add this to the pom file:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<additionalparam>-Xdoclint:none</additionalparam>
<additionalJOption>-Xdoclint:none</additionalOptions>
</configuration>
</plugin>
</plugins>
For Maven 2.9+ you need additionalJOption
, and before that you need additionalparam
. You can have additionalparam
on Maven 2.9+ as it won't cause errors, but it won't make it work. I have not tested having additionalJOption
on earlier versions of maven.
To configure it from the command line, you should pass this parameter:
mvn <goals> -Dadditionalparam=-Xdoclint:none -DadditionalJOption=-Xdoclint:none
To configure it on your shell environment, so that it will apply every time to every project without you needing to do anything else, add this line to your shell initialization (~/.bashrc
or on Macs ~/.bash_profile
, or whatever else your shell uses):
export JAVA_TOOL_OPTIONS="-Dadditionalparam=-Xdoclint:none -DadditionalJOption=-Xdoclint:none"
Or, if you have a JAVA_TOOL_OPTIONS
, append those parameters to it.