jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven Shared Components
  • MSHARED-101

NPE in DefaultDependencyTreeBuilder when using version ranges.

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • 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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    bundle-all-test.zip
    12/May/09 12:42 PM
    2 kB
    Will Horn
    1. XML File
      bundle-all-test/pom.xml 0.7 kB
    2. XML File
      bundle-all-test/proj1/pom.xml 0.7 kB
    3. XML File
      bundle-all-test/proj2/pom.xml 0.7 kB
    Download Zip
    Show
    Zip Archive
    bundle-all-test.zip
    12/May/09 12:42 PM
    2 kB
    Will Horn
  2. Text File
    maven-dependency-tree.patch
    12/May/09 12:42 PM
    3 kB
    Will Horn
  3. File
    maven-dependency-tree-fix
    12/May/09 3:38 PM
    4 kB
    Will Horn

Issue Links

is duplicated by

Bug - A problem which impairs or prevents the functions of the product. MSHARED-77 DependencyTreeResolutionListener throws NullPointerException

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.
relates to

Bug - A problem which impairs or prevents the functions of the product. MSHARED-77 DependencyTreeResolutionListener throws NullPointerException

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Will Horn added a comment - 12/May/09 3:38 PM - edited

Potential fix/hack. Uses getVersionRange instead of getBaseVersion in the map key.

<uploaded maven-dependency-tree-fix>

Show
Will Horn added a comment - 12/May/09 3:38 PM - edited Potential fix/hack. Uses getVersionRange instead of getBaseVersion in the map key. <uploaded maven-dependency-tree-fix>

People

  • Assignee:
    Unassigned
    Reporter:
    Will Horn
Vote (0)
Watch (1)

Dates

  • Created:
    12/May/09 12:42 PM
    Updated:
    10/Jun/11 9:42 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.