Uploaded image for project: 'ShrinkWrap Resolvers'
  1. ShrinkWrap Resolvers
  2. SHRINKRES-189

Maven resolver unable to resolve test-jar artifacts without classifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 2.1.1
    • 2.1.0
    • maven
    • None

      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>
      

            kpiwko Karel Piwko
            mwinkler@redhat.com Marek Winkler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: