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 218640 - Making all packages within a Maven Module public doesn't expose all of them as such
Summary: Making all packages within a Maven Module public doesn't expose all of them a...
Status: RESOLVED DUPLICATE of bug 185897
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-19 18:39 UTC by javydreamercsw
Modified: 2012-09-20 13:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (330.71 KB, text/plain)
2012-09-19 18:39 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2012-09-19 18:39:04 UTC
Product Version = NetBeans IDE Dev (Build 201209190001)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_07
Runtime = Java HotSpot(TM) Client VM 23.3-b01

I have a module with the following modules:
simple.marauroa.application.core.db
simple.marauroa.application.core.db.controller
simple.marauroa.application.core.db.controller.exceptions
simple.marauroa.application.core.db.manager

If I select all of them as public (Properties>Public Packages) the IDE adds this to the pom:

                     <publicPackages>
                        <publicPackage>simple.marauroa.application.core.db.*</publicPackage>
                    </publicPackages>

Only the package simple.marauroa.application.core.db is displayed as public in the project explorer.

You actually need to close and reopen the module to see the change in the icons. Reloading the POM makes no difference.

Only when I defined them as:

                   <publicPackages>
                        <publicPackage>simple.marauroa.application.core.db</publicPackage>
                        <publicPackage>simple.marauroa.application.core.db.controller</publicPackage>
                        <publicPackage>simple.marauroa.application.core.db.controller.exceptions</publicPackage>
                        <publicPackage>simple.marauroa.application.core.db.manager</publicPackage>
                    </publicPackages>

The change happened on the project editor (had to reopen the module anyway.
Comment 1 javydreamercsw 2012-09-19 18:39:13 UTC
Created attachment 124599 [details]
IDE log
Comment 2 Milos Kleint 2012-09-20 13:18:18 UTC
duplicate of issue 185897, same with osgi bundles. There is no way to listen on changes in public/exported packages.

*** This bug has been marked as a duplicate of bug 185897 ***