You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/05/12 22:57:45 UTC

[jira] Moved: (MSHARED-101) NPE in DefaultDependencyTreeBuilder when using version ranges.

     [ http://jira.codehaus.org/browse/MSHARED-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann moved MNG-4159 to MSHARED-101:
------------------------------------------------

    Affects Version/s:     (was: 2.0.9)
                       maven-dependency-tree 1.2
          Component/s:     (was: Dependencies)
                       maven-dependency-tree
           Complexity:   (was: Intermediate)
                  Key: MSHARED-101  (was: MNG-4159)
              Project: Maven Shared Components  (was: Maven 2)

> NPE in DefaultDependencyTreeBuilder when using version ranges.
> --------------------------------------------------------------
>
>                 Key: MSHARED-101
>                 URL: http://jira.codehaus.org/browse/MSHARED-101
>             Project: Maven Shared Components
>          Issue Type: Bug
>          Components: maven-dependency-tree
>    Affects Versions: maven-dependency-tree 1.2
>         Environment: vista
>            Reporter: Will Horn
>         Attachments: bundle-all-test.zip, maven-dependency-tree-fix, maven-dependency-tree.patch
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira