You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating the findbugs-maven-plugin got rid of the class error we saw with running mvn site but now it seems to complain about tons of javadoc comments that are causing report generation to fail. Everything about unbalanced </p> tags to missing `@{throws} declarations on methods.
Excerpt:
g Maven report:
[ERROR] Exit code: 1 - C:\Users\avgvstvs\gitRepos\esapi-java-legacy\src\main\java\org\owasp\esapi\AccessController.java:124: warning: no @throws for org.owasp.esapi.errors.AccessControlException
[ERROR] public void assertAuthorized(Object key, Object runtimeParameter)
[ERROR] ^
[ERROR] C:\Users\avgvstvs\gitRepos\esapi-java-legacy\src\main\java\org\owasp\esapi\AccessController.java:227: error: tag not allowed here: <ol>
[ERROR] * <ol type="a">
[ERROR] ^
C:\Users\avgvstvs\gitRepos\esapi-java-legacy\src\main\java\org\owasp\esapi\codecs\HashTrie.java:21: error: unexpected text
* <li>{@link Map.remove(Object)} is not supported.</li>
@kwwall we need to make an executive decision... do we want to eliminate all the legacy javadoc errors in the code base, or do we want to just turn off the build failures?
Activity
xeno6696 commentedon Jul 15, 2017
Looks like the exact problem is described here: https://stackoverflow.com/questions/15886209/maven-is-not-working-in-java-8-when-javadoc-tags-are-incomplete
Java 8 added a bunch of linting modules to account for javadoc "errors."
xeno6696 commentedon Jul 15, 2017
Fixed by adding the following profile:
@kwwall we need to make an executive decision... do we want to eliminate all the legacy javadoc errors in the code base, or do we want to just turn off the build failures?
xeno6696 commentedon Jul 15, 2017
I gotta stop leaving "fixes" before I've let the build complete all the way to the end. Solution:
The build now passes
mvn siteThe failure was all related to upgrading to Java 1.8.
Still, question still stands, turn the failures back on and fix all the javadoc stuff that java 1.8 complains about, or do we keep it running silent?
xeno6696 commentedon Jul 16, 2017
Fixed with commits 603408f and 262c342