Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin

When I build the project with dependencies, it gives this error.

Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on project appointmentscheduling-api: MavenReportException: Error while generating Javadoc:

Previously I could build it properly. I didn't change anything, I tried a backup sample as well. But this error come always. Tried re-installing javadoc plugin. There are some answers which says to change the pom.xml file. They didn't work for me either. Somebody help me to solve this please.

Thanks in advance

like image 574
Choxmi Avatar asked Mar 30 '17 16:03

Choxmi


1 Answers

Have you upgraded to JDK8 lately? You might be running into this problem. The solution would be one of:

  • Launch Maven with JDK < 8
  • Apply workaround from link above
like image 142
gpeche Avatar answered Oct 15 '22 17:10

gpeche