[
https://issues.jboss.org/browse/SHRINKRES-189?page=com.atlassian.jira.plu...
]
Karel Piwko closed SHRINKRES-189.
---------------------------------
Assignee: Karel Piwko
Fix Version/s: 2.1.1
Resolution: Out of Date
I'm marking this issue as out of date, it was fixed in 2.1.1 already and reported
against an older version.
Maven resolver unable to resolve test-jar artifacts without
classifier
----------------------------------------------------------------------
Key: SHRINKRES-189
URL:
https://issues.jboss.org/browse/SHRINKRES-189
Project: ShrinkWrap Resolvers
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: impl-maven
Affects Versions: 2.1.0
Reporter: Marek Winkler
Assignee: Karel Piwko
Fix For: 2.1.1
When resolving artifact specified in the pom.xml such as
{code:xml}
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<type>test-jar</type>
</dependency>
{code}
the resolution fails to locate the artifact. The console output says that it tries to
download the artifact with extension 'test-jar', which is wrong:
{{[java] WARNING: Failed downloading
org/drools/drools-core/6.1.0.CR1-redhat-1/drools-core-6.1.0.CR1-redhat-1.test-jar from
...}}
When I declare the dependency with classifier, the resolution succeeds:
{code:xml}
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<classifier>tests</classifier>
</dependency>
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)