Ivy
  1. Ivy
  2. IVY-1066

Ivy doesn't handle maven dependencies with type 'test-jar' correctly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.0-RC1
    • Fix Version/s: 2.1.0-RC2
    • Component/s: Maven Compatibility
    • Labels:
      None

      Description

      This bug was originally posted to the Gradle Jira by Galder Zamarreño (see http://jira.codehaus.org/browse/GRADLE-415). I have attached a test case with an ivy.xml, ivysettings.xml and a build.xml. If you run ant resolve you get a resolve error because of a misinterpretation of Maven pom information (as I understand it, the resolve works with Maven).

      The problem is that Ivy looks for the URL http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2.test-jar, whereas it should look for http://repository.jboss.org/maven2/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2-tests.jar.

      1. ivybug.zip
        2 kB
        Hans Dockter

        Activity

        Hans Dockter created issue -
        Hans Dockter made changes -
        Field Original Value New Value
        Attachment ivybug.zip [ 12405690 ]
        Maarten Coene made changes -
        Assignee Maarten Coene [ maartenc ]
        Summary Build Failure when resolving a certain dependency from a Maven repository. Ivy doesn't handle maven dependencies with type 'test-jar' correctly
        Maarten Coene committed 765780 (2 files)
        Reviews: none

        FIX: Ivy doesn't handle maven dependencies with type 'test-jar' correctly (IVY-1066)

        Hide
        Maarten Coene added a comment -

        I've applied a patch to SVN trunk which I think will fix the problem.
        Could you please give it a try and confirm it indeed solves the problem?

        Maarten

        Show
        Maarten Coene added a comment - I've applied a patch to SVN trunk which I think will fix the problem. Could you please give it a try and confirm it indeed solves the problem? Maarten
        Maarten Coene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s trunk [ 12313426 ]
        Resolution Fixed [ 1 ]
        Hide
        Hans Dockter added a comment -

        That was fast. Many thanks. The patch works. Will the patch has a chance to make it into the 2.1.0 stream?

        Show
        Hans Dockter added a comment - That was fast. Many thanks. The patch works. Will the patch has a chance to make it into the 2.1.0 stream?
        Hide
        Maarten Coene added a comment -

        That hasn't been decided yet, but I think it can be included in the 2.1.0 final release

        Show
        Maarten Coene added a comment - That hasn't been decided yet, but I think it can be included in the 2.1.0 final release
        Hide
        Hans Dockter added a comment -

        Thanks for the info.

        Show
        Hans Dockter added a comment - Thanks for the info.
        Maarten Coene made changes -
        Fix Version/s 2.1.0-RC2 [ 12314062 ]
        Fix Version/s trunk [ 12313426 ]

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Hans Dockter
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development