apache / apache/maven-dependency-plugin

[MDEP-576] maven-dependency-plugin ignores class of object passed as a parameter to method references

Open
#1,016 3 comments 0 reactions 0 assignees View on GitHub
bug priority:minor
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Vladimir Dergachev](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vladimir.dergachev)** opened **[MDEP-576](https://issues.apache.org/jira/browse/MDEP-576?redirect=false)** and commented

Hi there, i created a project on [github](https://github.com/vdergachev/dependency-plugin-vs-java-lambda) that can help you to reproduce the issue. Just clone it and make ```
mvn clean install

```
In my case plugin ignored Server class from jetty-server.jar and a as result i got message ```
Unused declared dependencies found
```

---

**Affects:** 3.0.1

**Issue Links:**
- [MSHARED-1347](https://issues.apache.org/jira/browse/MSHARED-1347) maven-dependency-plugin ignores class of object passed as a parameter to method references
(_**"is caused by"**_)

Contributor guide

No contributing guide indexed for this repository

Research direction

Clone the linked dependency-plugin-vs-java-lambda reproduction project and run `mvn clean install` to observe the unused-dependency warning involving `jetty-server.jar` and `Server`. Trace the plugin's dependency analysis for method references and verify completion when the referenced object class is recognized and the false unused-dependency message is gone.

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.