[
https://issues.apache.org/jira/browse/MDEP-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16071626#comment-16071626
]
Markus Karg commented on MDEP-574:
----------------------------------
Actually I tried it out but providing g:a:e does not work with include.
From: Guillaume Boué (JIRA) [mailto:[email protected]]
Sent: Sonntag, 2. Juli 2017 13:54
To: [email protected]
Subject: [jira] [Kommentiert] (MDEP-574) include not matching for custom types
<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=gboue> Guillaume
Boué hat <https://issues.apache.org/jira/browse/MDEP-574> BugMDEP-574
kommentiert
<https://issues.apache.org/jira/browse/MDEP-574> Betreff: include not matching
for custom types
Currently, include should support extensions, but not types (as it internally
uses a
<https://maven.apache.org/shared/maven-common-artifact-filters/apidocs/org/apache/maven/shared/artifact/filter/resolve/PatternInclusionsFilter.html>
PatternInclusionsFilter to filter artifacts), so g:a:e:v would work.
The gavToPath method is only used in the case of manualInclude, which works
without considering project dependencies.
<https://issues.apache.org/jira/browse/MDEP-574#add-comment> Kommentar
hinzufügen
<https://issues.apache.org/jira/browse/MDEP-574#add-comment> Kommentar
hinzufügen
Diese Nachricht wurde von Atlassian JIRA übermittelt
(v6.4.14#64029-sha1:ae256fe)
Atlassian logo
> include not matching for custom types
> -------------------------------------
>
> Key: MDEP-574
> URL: https://issues.apache.org/jira/browse/MDEP-574
> Project: Maven Dependency Plugin
> Issue Type: Bug
> Components: purge-local-repository
> Affects Versions: 3.0.1
> Environment: Win 7, 64 Bit, JDK 8u92, MVN 3.5.0, MDEP 3.0.1
> Reporter: Markus Karg
>
> 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 <include> 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".
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)