Building htmlcleaner 2.16 from source requires JDK 8 and fails on any earlier version. The reason is the presence of the -Xdoclint:none flag in the Maven Javadoc plugin.
With it, building with OpenJDK 7 fails like so:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.703 s
[INFO] Finished at: 2016-05-06T07:21:28-04:00
[INFO] Final Memory: 22M/125M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9:jar (attach-javadocs) on project htmlcleaner: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - javadoc: error - invalid flag: -Xdoclint:none
See https://stackoverflow.com/questions/27728733/javadoc-error-invalid-flag-xdoclintnone-when-i-use-java-7-but-it-works-i for more information. A suggested fix there is to check the JDK version using a Maven profile and either include that flag or not, depending on version.
Thanks!
As Java 7 is no longer supported I guess this is no longer so important.