Reputation: 30137
I am trying to generate javadoc
for some not-mine project with mvn javadoc:javadoc
and getting errors like
block element not allowed within inline element <code>: pre
and generation fails.
But I don't understand, why javadoc
should be so strict. Is it possible to make it more tolerant?
Upvotes: 0
Views: 366
Reputation: 1405
That's a "problem" introduced with Java 8 which has stricter checking (as you noticed). You can set "failOnError" to "false" in the Maven javadoc plugin to workaround it.
It should also be noted that the real solution is to fix the problem. Not to suppress the errors. However I understand that if your just trying to build a project of someone else a quick "fix" is preferable.
Upvotes: 1