apache / apache/maven-dependency-plugin

[MDEP-533] dependency:list mismatch with -Dartifact= format

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

Description

**[Christopher Tubbs](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ctubbsii)** opened **[MDEP-533](https://issues.apache.org/jira/browse/MDEP-533?redirect=false)** and commented

I believe there is a bug in `dependency:list`. The output format is:

`:::`

Most of the other goals, like `get` and `copy` expect the artifact coordinates to be of the form:

`:::`

This means you cannot easily write a script to use the output of `list` to resolve artifacts with `get` or `copy` and `-Dartifact=...`

I believe this is probably a bug in the output of `list`, but if anybody is relying on it, it might be better to add a new goal which fixes it by default, and has an option to specify the output format.

---

**Affects:** 2.10

3 votes, 3 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the dependency:list goal's coordinate output with the artifact format accepted by the get and copy goals via -Dartifact. Determine whether the existing output should change or a new configurable goal is needed; done means list output can be used consistently to resolve artifacts without breaking existing users.

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
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.