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 262694

Summary: Java-Hint-Generator generates invalid dependencies in pom.xml
Product: apisupport Reporter: markiewb
Component: TemplatesAssignee: Martin Kozeny <mkozeny>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description markiewb 2016-07-05 22:58:30 UTC
* Create a maven based netbeans module
* Create a Java Hint using the Wizard (check each entry and provide names/descriptions)
* Clean and Build of the module

ACTUAL: Exception, that the module cannot be build

The following artifacts could not be resolved: org.netbeans.api:org-netbeans-modules-parsing-nb:jar:RELEASE81, org.netbeans.api:org-netbeans-modules-projectapi-nb:jar:RELEASE81: Could not find artifact org.netbeans.api:org-netbeans-modules-parsing-nb:jar:RELEASE81 in netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans) -> [Help 1]
The pom.xml contains

        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-parsing-nb</artifactId>
            <version>RELEASE81</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.netbeans.api</groupId>
            <artifactId>org-netbeans-modules-projectapi-nb</artifactId>
            <version>RELEASE81</version>
            <scope>test</scope>
        </dependency>

ACTUAL: module can be build using

        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-parsing-nb</artifactId>
            <version>RELEASE81</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.netbeans.modules</groupId>
            <artifactId>org-netbeans-modules-projectapi-nb</artifactId>
            <version>RELEASE81</version>
            <scope>test</scope>
        </dependency>

Note the change of the group id!

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_71; Java HotSpot(TM) 64-Bit Server VM 25.71-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_71-b15