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 error when building package #18

Closed
michaellihs opened this issue Mar 2, 2018 · 1 comment · Fixed by #71
Closed

JavaDoc error when building package #18

michaellihs opened this issue Mar 2, 2018 · 1 comment · Fixed by #71

Comments

@michaellihs
Copy link

When I try to run mvn package -DskipTests I get the following Maven error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc (default) on project conjur-api: An error has occurred in JavaDocs report generation:
[ERROR] Exit code: 1 - /Users/mimi/Workspace/conjur/conjur-api-java/src/main/java/net/conjur/api/Credentials.java:30: error: bad HTML entity
[ERROR] * Creates a Credentials instance from the system properties {@link Credentials#CONJUR_AUTHN_LOGIN_PROPERTY} & {@link Credentials#CONJUR_AUTHN_API_KEY_PROPERTY}
[ERROR] ^
[ERROR]
[ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/bin/javadoc @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/Users/mimi/Workspace/conjur/conjur-api-java/target/site/apidocs' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
mvn package -DskipTests  23.08s user 1.74s system 80% cpu 30.711 total

running mvn package -DskipTests -Dmaven.javadoc.skip=true fixed the issue for me temporarily.

@treyyoder
Copy link

In conjur-api-java\src\main\java\net\conjur\api\Credentials.java Line 30, change & to and

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

Successfully merging a pull request may close this issue.

3 participants