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

Fix error on 'mvn_install_doc xx' for jdk {11, 12, 13} #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simonrommel
Copy link

Fixes the following error on mvn_install_doc xx when using jdk {11, 12, 13}

MavenReportException: Error while generating Javadoc:
Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in http://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.

As per https://bugs.openjdk.java.net/browse/JDK-8212233 this appears to be an issue when targeting java 8 and is fixed by specifying the source version in the configuration of the maven-javadoc-plugin.

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-javadoc-plugin</artifactId>
    <configuration>
        <source>8</source>
    </configuration>
</plugin>

@simonrommel simonrommel marked this pull request as ready for review April 15, 2020 18:55
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

Successfully merging this pull request may close these issues.

None yet

1 participant