Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javadoc fails when building with Java 8 #136

Closed
isido opened this issue Jul 3, 2014 · 1 comment
Closed

Javadoc fails when building with Java 8 #136

isido opened this issue Jul 3, 2014 · 1 comment

Comments

@isido
Copy link
Contributor

isido commented Jul 3, 2014

Apparently javadoc behaviour is stricter in Java 8. Building with it fails with errors of following type:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-  plugin:2.9.1:jar (attach-javadocs) on project openwayback-cdx-server: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 - /Users/sidoroff/Programs/openwayback/wayback-cdx- server/src/main/java/org/archive/cdxserver/filter/CollapseFieldFilter.java:16: error: unknown tag: field
[ERROR] * <field> = if <field> matches previous match, then its a dupe <field>:<n> = if
[ERROR] ^

The errors are caused by having XML-like tags in the javadoc.

A bit of googling turned out the following link: http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html

Adding line

<additionalparam>-Xdoclint:none</additionalparam>

to pom.xml <properties> section fixes the issue, but perhaps the comments should be fixed at some point. I'll make a pull request with the simple fix later, if anyone doesn't do it before.

@anjackson
Copy link
Member

Resolved by #139.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants