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 202946 - <this layer in context> empty for standalone Maven NB module
Summary: <this layer in context> empty for standalone Maven NB module
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: All All
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-02 14:01 UTC by dbell
Modified: 2011-10-20 14:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dbell 2011-10-02 14:01:48 UTC
[ BUILD # : 201109260601 ]
[ JDK VERSION : 1.6.26 ]

In a Maven-based NetBeans Module project, navigating to Important Files > XML
Layer > <this layer in context> only shows those layer elements that also
appear under <this layer> (i.e. the elements my module adds to the layer).
The same behaviour occurs when I expand the <this layer in context> node from
the layer.xml node in my module.
Comment 1 Jesse Glick 2011-10-19 20:13:59 UTC
It works for a module which is part of an application. (Technically: when there is exactly one open project of nbm-application packaging with a dependency on this module.) The application then supplies the context.

Currently unimplemented for standalone modules or modules in "suites", since this run mode (i.e. nbm:run-ide) is semi-deprecated and intended only for prototyping. This would need a different implementation, one which includes all module JARs in ${netbeans.installation}.
Comment 2 Jesse Glick 2011-10-19 20:48:32 UTC
core-main #ce7873e96289
Comment 3 dbell 2011-10-19 21:37:05 UTC
(In reply to comment #1)
> Currently unimplemented for standalone modules or modules in "suites"

Should we create a separate enhancement request? This is a common use case for me.
Comment 4 Quality Engineering 2011-10-20 14:22:08 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ce7873e96289
User: Jesse Glick <jglick@netbeans.org>
Log: #202946: <this layer in context> empty for standalone Maven NB module