[
https://issues.apache.org/jira/browse/MJAVADOC-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16728101#comment-16728101
]
Gili commented on MJAVADOC-556:
-------------------------------
Pull request ready for review:
[https://github.com/apache/maven-javadoc-plugin/pull/14]
This fixed the error I was seeing with the attached testcase, as well as my
personal project.
> 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
> Labels: pull-request-available
> 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)