You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gili (JIRA)" <ji...@apache.org> on 2019/01/04 18:12:00 UTC

[jira] [Comment Edited] (MJAVADOC-555) Javadoc:aggregate, Javadoc:jar fail if one of the modules does not contain module-info.java

    [ https://issues.apache.org/jira/browse/MJAVADOC-555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734428#comment-16734428 ] 

Gili edited comment on MJAVADOC-555 at 1/4/19 6:11 PM:
-------------------------------------------------------

You mentioned that you managed to work around this problem using automatic modules so I tried the following:

* Main project is a named module that depends upon an automatic module (in this case, guava). Note that this is an external dependency so maven-javadoc-plugin can't really alter its contents.
* Run {{mvn clean install}}.
* The project builds but javadoc generation fails with *The code being documented uses modules but the packages defined in https://google.github.io/guava/releases/27.0.1-jre/api/docs/ are in the unnamed module.*

I've attached this testcase as javadoc-cannot-link-to-automatic-modules.zip for your review.

Please let me know how to reproduce your workaround so I can proceed a bit further with my project which is currently blocked on this. Thank you.


was (Author: cowwoc):
You mentioned that you managed to work around this problem using automatic modules so I tried the following:

* Main project is a named module that depends upon an automatic module (in this case, guava). Note that this is an external dependency so maven-javadoc-plugin can't really alter its contents.
* Run {{mvn clean install}}.
* The project builds but javadoc generation fails with **The code being documented uses modules but the packages defined in https://google.github.io/guava/releases/27.0.1-jre/api/docs/ are in the unnamed module.**

I've attached this testcase as javadoc-cannot-link-to-automatic-modules.zip for your review.

Please let me know how to reproduce your workaround so I can proceed a bit further with my project which is currently blocked on this. Thank you.

> Javadoc:aggregate, Javadoc:jar fail if one of the modules does not contain module-info.java
> -------------------------------------------------------------------------------------------
>
>                 Key: MJAVADOC-555
>                 URL: https://issues.apache.org/jira/browse/MJAVADOC-555
>             Project: Maven Javadoc Plugin
>          Issue Type: Bug
>          Components: jar, javadoc
>    Affects Versions: 3.1.0
>         Environment: Maven 3.6.0
> maven-javadoc-plugin 3.0.2-SNAPSHOT (required for Java 11 support)
>            Reporter: Gili
>            Priority: Major
>         Attachments: javadoc-cannot-link-to-automatic-modules.zip, testcase.zip
>
>
> # Unzip testcase
>  # Run {{mvn clean install javadoc:aggregate}}
>  # Build fails with: {{Exit code: 2 - javadoc: error - No source files for package module2}}
> Per MPLUGIN-341, Maven plugins cannot contain {{module.info.java}}. One of my projects builds under Java 11 and is fully modularized except for one module which is a Maven plugin. Due to the aforementioned issue, I cannot useĀ {{javadoc:aggregate.}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)