Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1587

Wrong POM translation for dependencies appearing more than once

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.5.0-rc1
    • 2.5.0
    • None
    • None

    Description

      Using 

       

      java -jar ivy.jar -dependency "org.slf4j" "slf4j-log4j12" "1.7.25" -confs default -types jar
      

      With Ivy 2.4.0, I get two artifacts : slf4j-api.jar and slf4j-log4j12.jar

      With Ivy 2.5.0RC1, I only get slf4j-log4j12.jar with no means to get the -api artifact 

       

      This seems to be related to the resolution of IVY-1576

       

      In the POM, the slf4j-api dependency is present twice, once for compile, once for tests.

      Before IVY-1576, it resulted in two different dependencies.

      With IVY-1576, there's only one dependency, offering only the test artifact.

       

      The fix was good for "merging" dependencies with classifiers, but in this case, the merge should not have occured

       

      I don't set this ticket as critical as there are workarounds, but it is at least very annoying

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cdamioli Cédric Damioli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: