[MJAVADOC-526] aggregate goal doesn't respect managed dependencies (original) (raw)
SCENARIO:
(NOTE: see the repository: https://github.com/lrozenblyum/maven-javadoc-plugin-aggregate-bug)
Parent and a child project.
Child project has dependency with scope: runtime.
One of its transitive dependencies is overriden in dependencyManagement with scope: compile
The transitive dependency is used in Java code of the chold project and is referred in @throws tag
EXPECTED:
mvn javadoc:aggregate on the parent project succeeds
ACTUALLY:
mvn javadoc:aggregate on the parent project fails
with error: error: reference not found
[ERROR] * @throws BadCredentialsException)
mvn javadoc:javaoc on the child project succeeds
NOTE: the workaround is rollback to maven-javadoc-plugin 2.10.4