When resolving artifact specified in the pom.xml such as
<dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <type>test-jar</type> </dependency>
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:
<dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <classifier>tests</classifier> </dependency>