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

Maven javadoc build failes when using JDK 11 #22

Closed
rumline opened this issue May 26, 2020 · 2 comments · Fixed by #23
Closed

Maven javadoc build failes when using JDK 11 #22

rumline opened this issue May 26, 2020 · 2 comments · Fixed by #23
Assignees
Labels
good first issue Good for newcomers
Milestone

Comments

@rumline
Copy link

rumline commented May 26, 2020

Describe the bug
Uninstall JDK 1.8. Install JDK 11.0.7. Perform a "maven package" or "maven install". Javadoc build fails.

Found fix
Add:
<configuration> <source>8</source> </configuration>

To the <artifactId>maven-javadoc-plugin</artifactId> section of the pom.xml file.

Project now builds successfully using JDK 11.

Plugin:
Version 0.7.4

@castorm castorm added good first issue Good for newcomers and removed prioritization labels May 26, 2020
@castorm castorm linked a pull request May 26, 2020 that will close this issue
@castorm castorm added this to the v0.7.5 milestone May 26, 2020
@castorm
Copy link
Owner

castorm commented May 26, 2020

Thanks for reporting this @rumline .

This one is already fixed, but feel free to submit the PR yourself in the future if you take the time to fix it. Contributions are welcome.

Best regards.

@martimors
Copy link

Unfortunately I am still facing this issue on JDK 11.0.11, which is the current default in Ubuntu 20.04. Using <configuration> <source>11</source> </configuration> fixed it, but I guess that breaks it for Java 8 users. Would it be possible to just take the major JDK version instead of the complete version? Not familiar with the syntax used so unfortunately I cannot create a PR just off the bat here :/

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

Successfully merging a pull request may close this issue.

3 participants