Maven Shared Components
  1. Maven Shared Components
  2. MSHARED-101

NPE in DefaultDependencyTreeBuilder when using version ranges.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: maven-dependency-tree-1.2
    • Fix Version/s: None
    • Component/s: maven-dependency-tree
    • Labels:
      None
    • Environment:
      vista

      Description

      DefaultDependencyTreeBuilder does not seem to handle managed version ranges. I have attached a JUnit test that throws the NPE.

      I ran into this issue when using the maven-bundle-plugin, which uses DefaultDependencyTreeBuilder. I've also attached the full maven project that reproduces this. The scenario is:

      bundle-all-test: root project, defines dependency on log4j with a version range and runtime scope in dependencyManagement

      proj1: jar project depending on log4j, reducing scope to compile

      proj2: pom project depending on proj1

      To reproduce, run 'mvn org.apache.felix:maven-bundle-plugin:bundleall' in the proj2 directory.

      1. bundle-all-test.zip
        2 kB
        Will Horn
      2. maven-dependency-tree.patch
        3 kB
        Will Horn
      3. maven-dependency-tree-fix
        4 kB
        Will Horn

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12963946 ] Default workflow, editable Closed status [ 13000417 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 01:15:59 UTC 2015 [ 1428282959282 ]
          Mark Thomas made changes -
          Workflow jira [ 12726106 ] Default workflow, editable Closed status [ 12764500 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:14:21 UTC 2015 [ 1428239661755 ]
          Michael Osipov made changes -
          Resolution Won't Fix [ 2 ]
          Status Open [ 1 ] Closed [ 6 ]
          Olivier Lamy (*$^¨%`£) made changes -
          Link This issue is duplicated by MSHARED-77 [ MSHARED-77 ]
          Hervé Boutemy made changes -
          Link This issue relates to MSHARED-77 [ MSHARED-77 ]
          Benjamin Bentmann made changes -
          Affects Version/s 2.0.9 [ 13801 ]
          Project Maven 2 [ 10500 ] Maven Shared Components [ 11761 ]
          Component/s maven-dependency-tree [ 13264 ]
          Key MNG-4159 MSHARED-101
          Affects Version/s maven-dependency-tree 1.2 [ 14530 ]
          Complexity Intermediate
          Component/s Dependencies [ 12028 ]
          Will Horn made changes -
          Field Original Value New Value
          Attachment maven-dependency-tree-fix [ 41907 ]
          Will Horn created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Will Horn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development