Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-289

Incorrect warning with javax.xml

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1
    • None
    • analyze
    • OS : Windows XP
      Maven 2.2.1
      Java 1.5

    Description

      When you use some javax.xml classes in a project and that you have transitive dependencies containing these classes, you will get a warning if you analyze your dependencies (Used undeclared dependencies found), even if the classes you use are contained in your JDK.
      I attach a project using javax.xml.parsers.DocumentBuilder which is included in Java Class Library (rt.jar) but also in a transitive dependency (xml-apis).
      I think we should not get a warning because the Java Class Library should be the first library found in the classpath, doesn't it ?

      Attachments

        1. sandbox.zip
          4 kB
          zaccret

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zaccret zaccret
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: