]
Marek Winkler commented on SHRINKRES-189:
-----------------------------------------
I have tried with 2.1.1 and it works, thanks!
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
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}