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 2018/12/23 15:23:00 UTC
[jira] [Comment Edited] (MJAVADOC-556) javadoc:aggregate fails with
"No source files for package" for packages that are not exported
[ https://issues.apache.org/jira/browse/MJAVADOC-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16727989#comment-16727989 ]
Gili edited comment on MJAVADOC-556 at 12/23/18 3:22 PM:
---------------------------------------------------------
{{FYI, it isn't possible to use excludePackageNames to explicitly exclude "module2". It seems this directive gets ignored in the presence of JPMS.}}
was (Author: cowwoc):
{{FYI, it isn't possible to use excludePackageNames to explicitly exclude "module1". It seems this directive gets ignored in the presence of JPMS.}}
> javadoc:aggregate fails with "No source files for package" for packages that are not exported
> ---------------------------------------------------------------------------------------------
>
> Key: MJAVADOC-556
> URL: https://issues.apache.org/jira/browse/MJAVADOC-556
> Project: Maven Javadoc Plugin
> Issue Type: Bug
> Components: javadoc
> Affects Versions: 3.0.2
> Environment: Maven 3.6.0
> maven-javadoc-plugin 3.0.2-SNAPSHOT (for Java 11 support)
> Reporter: Gili
> Priority: Major
> Attachments: testcase.zip
>
>
> # Unpack testcase (contains module1, module2 but only module 1 is exported)
> # Run {{clean install javadoc:aggregate}}
> # Build fails with: {{javadoc: error - No source files for package module2}}
> # Modify {{module-info.java}} so it also exports module2
> # RunĀ {{clean install javadoc:aggregate}}
> # Notice that no error occurs
> Expected behavior: {{maven-javadoc-module}} should omit non-exported packages fromĀ {{target/site/apidocs/packages}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)