apache / apache/maven-dependency-plugin

[MDEP-953] Extend goal to allow configuration of the artifacts from which the dependencies should be copied

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

Description

**[Roman Huber](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=alerosmile)** opened **[MDEP-953](https://issues.apache.org/jira/browse/MDEP-953?redirect=false)** and commented

Currently the dependencies of the artifact for which Maven is called are copied. I'd be nice if this function is not limited to the current artifact. It should be possible to configure the artifact(s) from which the dependencies should be copied.

The dependency:copy goal accepts a list of artifactItems to be copied. Maybe this goal could be extended to include transitive dependencies of those artifactItems.

The problem with both approaches is that the resolved dependencies of these artifacts must match their versions.

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the dependency:copy goal and its artifactItems configuration, then review how the current goal selects dependencies for the calling artifact. Define how configured artifacts, their transitive dependencies, and matching resolved versions should behave; done means the goal can copy the intended dependency set without version ambiguity.

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
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.