[ 
https://issues.apache.org/jira/browse/MDEP-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael O'Connor updated MDEP-587:
----------------------------------
    Affects Version/s: 3.0.0
                       3.0.1

> test-jar type is incorrectly translated to jar artifact when resolving 
> dependencies
> -----------------------------------------------------------------------------------
>
>                 Key: MDEP-587
>                 URL: https://issues.apache.org/jira/browse/MDEP-587
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 3.0.1, 3.0.2
>            Reporter: Michael O'Connor
>
> When attempting to download a test-jar artifact there seems to be an error in 
> how the artifact coordinates get translated. I think, for example, that 
> {code}foo:bar:1.0.0-SNAPSHOT:test-jar{code} should be translated to 
> {code}foo:bar:1.0.0-SNAPSHOT:jar:tests{code} but instead the plugin is 
> translating it to {code}foo:bar:1.0.0-SNAPSHOT:jar{code} which results in 
> getting an incorrect artifact
> To test, I'll use a random artifact from central that has an uploaded tests 
> jar
> {code}mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.2:copy 
> -Dartifact=org.neo4j:neo4j-collections:3.3.0:test-jar 
> -DoutputDirectory=/tmp/{code} if you compare this to the size of the actual 
> test jar and the production jar, (and also watch the url that it downloads 
> from) it gets the wrong jar



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to