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

JLine bundle javadoc is not been generated #564

Closed
mattirn opened this issue Aug 29, 2020 · 0 comments
Closed

JLine bundle javadoc is not been generated #564

mattirn opened this issue Aug 29, 2020 · 0 comments
Labels
Milestone

Comments

@mattirn
Copy link
Collaborator

mattirn commented Aug 29, 2020

JLine bundle javadoc is not been genereted after java automatic module naming has been inserted in a6176bc6.

Errors:

[INFO] --- maven-javadoc-plugin:3.1.1:jar (javadoc) @ jline ---
[INFO] 
100 errors
1 warning
[ERROR] MavenReportException: Error while generating Javadoc: 
Exit code: 1 - javadoc: warning - You have specified the HTML version as HTML 4.01 by using the -html4 option.
The default is currently HTML5 and the support for HTML 4.01 will be removed
in a future release. To suppress this warning, please ensure that any HTML constructs
in your comments are valid in HTML5, and remove the -html4 option.
error: module org.fusesource.jansi reads package org.jline.console from both org.jline.console and org.jline
error: module org.fusesource.jansi reads package org.jline.console.impl from both org.jline.console and org.jline
error: module org.fusesource.jansi reads package org.jline.style from both org.jline.style and org.jline
error: module org.fusesource.jansi reads package org.jline.widget from both org.jline.console and org.jline
....
....

Analysis:
Errors are caused by badly generated module path in ./jline/target/apidocs/options:

--module-path
'/home/matti/.m2/repository/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar:/home/matti/.m2/repository/org/jline/jline-style/3.16.1-SNAPSHOT/jline-style-3.16.1-SNAPSHOT.jar:/home/matti/git/jline3b/jline/target/jline-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-terminal/3.16.1-SNAPSHOT/jline-terminal-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-remote-ssh/3.16.1-SNAPSHOT/jline-remote-ssh-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-terminal-jna/3.16.1-SNAPSHOT/jline-terminal-jna-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-console/3.16.1-SNAPSHOT/jline-console-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-terminal-jansi/3.16.1-SNAPSHOT/jline-terminal-jansi-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-builtins/3.16.1-SNAPSHOT/jline-builtins-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/jline/jline-remote-telnet/3.16.1-SNAPSHOT/jline-remote-telnet-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/fusesource/jansi/jansi/1.18/jansi-1.18.jar:/home/matti/.m2/repository/org/jline/jline-reader/3.16.1-SNAPSHOT/jline-reader-3.16.1-SNAPSHOT.jar'

replacing module-path with

--module-path
'/home/matti/.m2/repository/net/java/dev/jna/jna/5.3.1/jna-5.3.1.jar:/home/matti/git/jline3b/jline/target/jline-3.16.1-SNAPSHOT.jar:/home/matti/.m2/repository/org/fusesource/jansi/jansi/1.18/jansi-1.18.jar'

will fix the problem.

Solution:
Chancing jline jar dependency scopes from provided to test in ./jline/pom.xml will fix the ./jline/target/apidocs/options file generation.

@mattirn mattirn added this to the 3.16.1 milestone Aug 29, 2020
@mattirn mattirn added the bug label Aug 29, 2020
@mattirn mattirn mentioned this issue Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant