Skip to content

[MDEP-587] test-jar type is incorrectly translated to jar artifact when resolving dependencies #1026

Description

@jira-importer

Michael O'Connor opened MDEP-587 and commented

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 ```
foo:bar:1.0.0-SNAPSHOT:test-jar

```foo:bar:1.0.0-SNAPSHOT:jar:tests
``` but instead the plugin is translating it to 
```foo:bar:1.0.0-SNAPSHOT:jar
``` which results in getting an incorrect artifact

To test, I'll use a random artifact from central that has an uploaded tests jar

mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.2:copy -Dartifact=org.neo4j:neo4j-collections:3.3.0:test-jar -DoutputDirectory=/tmp/


Affects: 3.0.0, 3.0.1, 3.0.2

1 votes, 3 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:majorMajor loss of function

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions