Buscar este blog

domingo, 12 de enero de 2020

MavenReportException: Error while generating Javadoc

Error message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:jar (attach-javadocs) on project XXXXXX: MavenReportException: Error while generating Javadoc:
[ERROR] Exit code: 1 - /src/main/java/xxxxxxxxxxxxxxxx/Xxxxxxxxxxxxxx.java:28: warning: no description for @param
[ERROR] * @param clazz
[ERROR] ^

Solution, in pom.xml:
<plugin>
 <groupId>org.apache.maven.plugins</groupId>
 <artifactId>maven-javadoc-plugin</artifactId>
 <version>2.9</version>
 <configuration>
  <additionalparam>-Xdoclint:none</additionalparam>
 </configuration>
</plugin>