apache / apache/maven-dependency-plugin

[MDEP-525] Dependency:analyze-only complains about unused dependency on super class

Open
#960 2 comments 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Eugene Rubanov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=venikkin)** opened **[MDEP-525](https://issues.apache.org/jira/browse/MDEP-525?redirect=false)** and commented

Dependence:analyze-only complains about unused dependency on super class artifact when
* superclass and subclass package are in separate artifacts
* subclass is used explicitly in target maven module
* superclass is used only by subclass internals

In this case java compiler requires superclass to be provided during compilation, but dependency plugin reports superclass package as unused.
Please look at following example: https://github.com/venikkin/mdp-issue

---

**Affects:** 2.10

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked mdp-issue reproducer and the dependency:analyze-only goal, then trace how the plugin evaluates superclass usage across separate artifacts. Done means the superclass dependency required for compilation is no longer falsely reported as unused, while genuinely unused dependencies remain detectable.

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
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.