apache / apache/maven-dependency-plugin
[MDEP-852] Missing way to exclude unused only for test scope
- Dominant language
- Java
- Stars
- 175
- Forks
- 196
- Avg merge
- 19h 30m
- Merged PRs (30d)
- 5
Description
**[Bogdan Drutu](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bogdandrutu)** opened **[MDEP-852](https://issues.apache.org/jira/browse/MDEP-852?redirect=false)** and commented
Maven has a missing feature in not supporting "runtime-test" scope, which is a good candidate for junit5 engine artifact `org.junit.jupiter:junit-jupiter-engine`.
Because I don't want this to be scoped as "runtime" (for obvious reasons) I recommend users to set "test" scope for this target, so I added it as `
ignoredUnusedDeclaredDependency`. This works, but it is too generic and allows bad usages like having the junit-jupiter-engine as runtime or even compile time. I would like to be able to say ignore unused dependency only for test scope, sorry if I miss some obvious way to do this.
---
No further details from [MDEP-852](https://issues.apache.org/jira/browse/MDEP-852?redirect=false)
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names the ignoredUnusedDeclaredDependency configuration but no source files or tests. Start by locating its handling and related test coverage, then determine how test-scope-only exclusions should be represented and verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100