apache / apache/maven-dependency-plugin

[MDEP-947] optionally import listed “dependency packages” for analyse-only

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

Description

**[Thorsten Glaser](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mirabilos)** opened **[MDEP-947](https://issues.apache.org/jira/browse/MDEP-947?redirect=false)** and commented

I’m working through the Spring Boot tutorial, and it uses packages like org.springframework.boot:spring-boot-starter-web that contain empty JARs but a lot of dependencies.

Instead of doing…

```java



org.springframework.boot:spring-boot-starter-test
org.springframework.boot:spring-boot-starter-web



org.springframework:spring-context
org.springframework.boot:spring-boot-test
org.springframework:spring-web
org.springframework.boot:spring-boot
org.junit.jupiter:junit-jupiter-api
org.springframework.boot:spring-boot-autoconfigure

```

… or replacing them by the depended-on packages, for convenience (when the user does want to allow relaxing the dependency rules for this), there could be something like…

```java


org.springframework.boot:spring-boot-starter-web
[…]
```

… with which I’d whitelist one or more specific dependencies I have for “ignore if this one is unused” and “ignore if any of **its** dependencies are used but undeclared” (but no warning if (also explicitly) declared).

Does this make sense?

---
No further details from [MDEP-947](https://issues.apache.org/jira/browse/MDEP-947?redirect=false)

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by reviewing the plugin's dependency-analysis configuration and how ignored unused and undeclared dependencies are handled; done would mean supporting an importDependencyPackages configuration that applies both ignore rules to the selected packages and their dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.