apache / apache/maven-dependency-plugin

[MDEP-758] Skip analysis of test scope dependencies when tests are not compiled

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

Description

**[Peter Bull](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pbull-oracle)** opened **[MDEP-758](https://issues.apache.org/jira/browse/MDEP-758?redirect=false)** and commented

When running the analyze or analyze-only goal, if property `maven.test.skip`=true, then test scoped dependencies should not be analyzed, but dependencies of all other scopes should still be analyzed.

The ignoreNonCompile parameter is not good enough, because provided and system scoped dependencies still need to be analyzed.

---

**Affects:** 3.2.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the analyze and analyze-only goals and trace how the maven.test.skip property affects dependency-scope analysis. Compare that behavior with ignoreNonCompile, checking that test-scoped dependencies are skipped while provided, system, and other applicable scopes remain analyzed. Done means the requested scope distinction is implemented and covered by the relevant plugin tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.