apache / apache/maven-javadoc-plugin

`javadoc:aggregate` fails with compile errors when multi-module project uses different version of the same dependency

Open
#1,327 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
107
Forks
116
Avg merge
1d 10h
Merged PRs (30d)
16

Description

### Affected version

3.12.0

### Bug description

Imagine a multi-module project where different modules use different versions of the same dependency - e.g. connectors to version `1` and `2` of some service.

The `javadoc:aggregate` prunes the classpath supplied to the `javadoc` tool to include only the _latest_ version of a dependency - which can lead to compile errors when referencing something exclusively in the older version.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the javadoc:aggregate goal and trace how it prunes the classpath for the javadoc tool. Reproduce the multi-module case with different versions of one dependency, then verify that aggregation compiles successfully when code references APIs exclusive to the older version.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.