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 252193

Summary: MavenNbModuleImpl fails on calling watch.getMavenProject().getDependencyArtifacts();
Product: apisupport Reporter: arittner <arittner>
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description arittner 2015-05-01 17:30:20 UTC
In my tests the call of 

watch.getMavenProject().getDependencyArtifacts()

returns always null and hasDependencies returns always false.

At another method the class MavenNbModuleImpl use this call to get dependencies:

watch.getMavenProject().getModel().getDependencies()


The method hasDependencies should be fixed. 

Another question: the test in hasDependencies to identify an existing artifact
dependency is:

if (art.getGroupId().startsWith("org.netbeans") && art.getArtifactId().equals(artifactId)) { // NOI18N 
  return true; 
} 

Why the &&? An OR (||) makes more sense, IMHO. Or works hasDependencies only with netbeans core APIs?