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 256339

Summary: Adding NetBeans module to NetBeans Platform application project with Maven creates strange error.
Product: apisupport Reporter: pkevin
Component: MavenAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal Keywords: PLATFORM
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description pkevin 2015-11-03 13:34:54 UTC
Product Version = NetBeans IDE 8.1 RC2 (Build 201510122201)
Operating System = Linux version 3.19.0-31-generic running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b17

Reproducibility: Happens every time

STEPS:
  Create NetBeans Platform Project with Maven
  Add module to application - either from the modules node in the parent project node, or from the File->New Project->Maven->NetBeans Module
  Specify the parent project as the project location


ACTUAL:
  The new project is created, but the Source folder (node) has a message stating that the source directory is owned by the parent and no source files can be added there - > see task #138310
  This task is pretty old, and the only information that I got from it that was useful was to restart NetBeans, which does clear this error.  Messy, to say the least.

EXPECTED:
  Actually add netbeans module project to the parent and work with it as expected
Comment 1 pkevin 2015-11-03 13:46:58 UTC
As a test added new module to project, using the add new module to the modules node under the main (parent) project.  I attached the IDE log after that completed; the projects view shows the "Source Packages is owned by the project EJBLookupOnNB-parent, cannot be used here. seee issue #138310 for details." message.
Comment 2 pkevin 2015-11-03 13:47:01 UTC
Created attachment 157122 [details]
IDE log