You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2019/12/01 11:52:00 UTC
[jira] [Comment Edited] (MJAVADOC-583) javadoc: error - The code
being documented uses modules but the packages defined in {URL} are in the
unnamed module
[ https://issues.apache.org/jira/browse/MJAVADOC-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16985158#comment-16985158 ]
Robert Scholte edited comment on MJAVADOC-583 at 12/1/19 11:51 AM:
-------------------------------------------------------------------
[~rfscholte] I was affected by this bug, I did the following changes and now it works:
{noformat:title=diff --git a/pom.xml b/pom.xml}
index 82d21b8..f7e8739 100644
— a/pom.xml
+++ b/pom.xml
@@ -96,12 +96,12 @@
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>3.1.1</version>
+ <version>3.2.0-SNAPSHOT</version>
<configuration>
<bottom><![CDATA[<i>Copyright © \\{inceptionYear}-\\{currentYear} Ardor Labs. All Rights Reserved.</i>]]>
</bottom>
<links>
- <link>[https://docs.oracle.com/javase/8/docs/api/]</link>
+ <link>[https://docs.oracle.com/en/java/javase/11/docs/api/]</link>
</links>
<destDir>javadoc</destDir>
<linksource>true</linksource>
@@ -137,8 +137,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
- <source>1.8</source>
- <target>1.8</target>
+ <release>8</release>
+ <!--<source>1.8</source>
+ <target>1.8</target>-->
<encoding>UTF-8</encoding>
<debug>true</debug>
</configuration>
{noformat}
was (Author: gouessej):
[~rfscholte] I was affected by this bug, I did the following changes and now it works:
diff --git a/pom.xml b/pom.xml
index 82d21b8..f7e8739 100644
--- a/pom.xml
+++ b/pom.xml
@@ -96,12 +96,12 @@
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>3.1.1</version>
+ <version>3.2.0-SNAPSHOT</version>
<configuration>
<bottom><![CDATA[<i>Copyright © \{inceptionYear}-\{currentYear} Ardor Labs. All Rights Reserved.</i>]]>
</bottom>
<links>
- <link>https://docs.oracle.com/javase/8/docs/api/</link>
+ <link>https://docs.oracle.com/en/java/javase/11/docs/api/</link>
</links>
<destDir>javadoc</destDir>
<linksource>true</linksource>
@@ -137,8 +137,9 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
- <source>1.8</source>
- <target>1.8</target>
+ <release>8</release>
+ <!--<source>1.8</source>
+ <target>1.8</target>-->
<encoding>UTF-8</encoding>
<debug>true</debug>
</configuration>
> javadoc: error - The code being documented uses modules but the packages defined in {URL} are in the unnamed module
> -------------------------------------------------------------------------------------------------------------------
>
> Key: MJAVADOC-583
> URL: https://issues.apache.org/jira/browse/MJAVADOC-583
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: jar
> Affects Versions: 3.1.0
> Environment: Travis CI, toolchain with openjdk 11.0.2
> Reporter: Sjoerd Talsma
> Priority: Major
> Attachments: context-propagation-dependabot-maven-org.apache.maven.plugins-maven-javadoc-plugin-3.1.0.zip, packages-3.0.1, packages-3.1.0
>
>
> My project build with toolchains, using both oracle JDK 8 and openjdk 11.0.2 generating both 'jar' and 'aggregate-jar' documentation.
> This seems to inversely relate to MJAVADOC-555 somehow.
> The following error occurs:
> {quote}Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in [https://javadoc.io/page/nl.talsmasoftware.context/context-propagation-root/1.0.6-SNAPSHOT/] are in the unnamed module
> {quote}
> _source: [https://travis-ci.org/talsma-ict/context-propagation/builds/501900168]_
> github: [https://github.com/talsma-ict/context-propagation/tree/dependabot/maven/org.apache.maven.plugins-maven-javadoc-plugin-3.1.0]
> pull-request: https://github.com/talsma-ict/context-propagation/pull/108
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)