This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 191538

Summary: Incorrect dependency graph shown in certain cases involving deep transitivity
Product: projects Reporter: Jesse Glick <jglick>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: REOPENED ---    
Severity: normal CC: anebuzelsky, theanuradha
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2010-11-01 19:23:29 UTC
http://jira.codehaus.org/browse/MSHARED-167 has the test case. Just open the attached project and show the dep graph in the IDE; batik-js will be missing.

From the comments by Benjamin Bentmann it sounds like we need to drop maven-dependency-tree altogether. Yet there is no apparent drop-in replacement, and I have little idea what would be required. There is a class DependencyNode in Aether but it has a somewhat different signature.
Comment 1 Jesse Glick 2012-06-06 15:43:30 UTC
e259066c6846 (NbRepositorySystem) apparently working toward this.
Comment 2 Jesse Glick 2012-06-11 16:25:51 UTC
Easiest fix would be to follow http://svn.apache.org/viewvc?view=revision&revision=1348663 but since we can have a hard dep on M3/Aether this could likely be inlined & simplified.
Comment 3 Milos Kleint 2012-08-13 08:15:13 UTC
simple upgrading to dependency-tree 2.0 didn't cut it in the graph view. the dependency:tree goal shows the batik-js node correctly..
Comment 4 Milos Kleint 2012-08-13 08:45:22 UTC
interestingly dependency:tree in version 2.5 is using the DependencyGraphBuilder component, not DependencyTreeBuilder. Needs deeper rewrite, also MavenProject.getProjectBuildingRequest() is being used by the component, thus the base project's MavenProject instance cannot be used here.

a side note: the batik-js is not only missing in the graph, but also in the list of dependencies for artifacts in local repository. only batik-script contains it (the one really defining it) contains it in the list. apparently there's something we also do wrong when creating the dependencies list.
Comment 5 Martin Balin 2016-07-07 08:39:23 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 6 markiewb 2016-08-25 19:20:24 UTC
Reopen