arturobernalg opened a new pull request, #1457:
URL: https://github.com/apache/maven-javadoc-plugin/pull/1457

   Fixes #1150.
   
   getPathElements() only pulled a sub-project's own compile-time dependencies 
onto the classpath/module-path for projects returned by 
getAggregatedProjects(), which is keyed purely off the POM modules hierarchy. 
An aggregator that instead pulls in another reactor module's sources via 
includeDependencySources/dependencySourceIncludes (not a modules child) never 
got that module's own provided or optional dependencies resolved, so a 
module-info.java requiring one statically failed with "module not found".
   
   Now the set of projects whose own dependencies get resolved is the union of 
getAggregatedProjects() and the reactor projects matching allSourcePaths' GAVs 
(the same source already used to pull in dependency-sourced modules), 
de-duplicated via a LinkedHashSet. Single-module and plain modules-based 
aggregate behavior is unchanged.
   
   Added a new IT (MJAVADOC-768_aggregate-dependency-source-provided) 
reproducing the reported scenario (two sibling modules, one with an optional 
and one with a provided dependency, aggregated via includeDependencySources 
rather than modules); verified it fails on master with the exact reported javac 
error and passes with the fix. Also confirmed no regression on the existing 
modules-based aggregate module-path IT.
   
   To make clear that you license your contribution under the Apache License 
Version 2.0, January 2004 (https://www.apache.org/licenses/LICENSE-2.0) check 
one of the following:
   - [x] I hereby declare this contribution to be licensed under the Apache 
License Version 2.0, January 2004
   - [x] I hereby declare that I have filed an Apache Individual Contributor 
License Agreement.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to