apache / apache/maven-dependency-plugin

[MDEP-574] include not matching for custom types

Open
#1,011 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

**[Markus Karg](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mkarg)** opened **[MDEP-574](https://issues.apache.org/jira/browse/MDEP-574?redirect=false)** and commented

Apparently MDEP's purge-local-repository cannot explicitly include dependencies with custom types, like "de.quipsy:qsstatoleobject-pbd:pbd", because (according to the javadocs of private String gavToPath( String gav )) the goal's private coordiante parser expects g:a:v, while the actual coordinates of this include are g:a:t:v.

Effectively this render \ not mathing anything.

Workaround: Do not use includes, but simply purge ALL dependencies (in this case, the artifact is correctly found, and in debug mode also is correctly reported as "Puring artifact: g:a:t:v".

---

**Affects:** 3.0.1

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the purge-local-repository goal and inspect the private gavToPath(String gav) coordinate parser described in the issue. Reproduce an include using the g:a:t:v custom-type form, then verify that the specified artifact is located and purged rather than ignored.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.