Resolution: Cannot Reproduce
3.1.0, 3.1.1, 3.2.0
When using a flat multi-module maven project e.g.
+-- pom.xml (parent and reactor)
The aggregate apidocs e.g. mvn javadoc:aggregate, are not built for the parent project. This is because the AbstractJavadocMojo#getAggregatedProjects() does not return any sub projects for the parent.
More specifically, #modulesForAggregatedProject(..) compares the module path from the POM with the module path from the reactor, and these can be different if the Paths are not normalised e.g.
in the parent pom.xml
this becomes the module Path
which is not Java equal() to the reactor path for that module of:
Even though they should be same. Hence the set of modules for the aggregated project is empty.
I downloaded the source and rebuilt the plugin normalising the module Path e.g.
This works for my project, but potentially this is not a proper/robust fix for this issue. This all used to work fine in 3.0.1 of the plugin - although I see a decent change in the codebase around this from 3.0.1 to 3.1.0.
Is this a bug? or is it actually meant to work like this? which would be an issue for the project I am working on going forward.