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

Maven Pom reader doesn't handle optional dependencies correctly in some instances

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC2
    • Maven Compatibility
    • None

    Description

      The "isOptional" function in org/apache/ivy/plugins/parser/m2/PomReader.java just checks for the existence of an element with the name "optional". If this element is found, it returns "true" indicating that the dependency is optional.

      The actual value of the element is ignored, so a dependency with "<optional>false</optional>", is still taken to be an optional dependency.

      Attachments

        1. ivy-maven-pom.patch
          0.5 kB
          Phil Messenger

        Activity

          People

            maartenc Maarten Coene
            philmes Phil Messenger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: