You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.
for background. Whatever code in Maven creates NetBeans modules must be sure to always insert the OIDE-M-P-P attribute. The default should be "-" (i.e. do not export any packages) unless otherwise requested. Package wildcards ("something.*") are permitted but discouraged; explicit packages ("something.") preferred.
Milos Kleint added a comment (16/Jul/08)
Well, I'd like to have a reasonable default without the need to have additional configuration in place added by user (convention over configuration)
For that we could use "no public packages". That's fine for modules that just add some new functionality, but is really bad for modules that just wrap external libraries as netbeans modules (please note that this scenario is rather cumbersome in netbeans ant based projects)
The "something.* stuff requires you to have additiona configuration somewhere (manifest or elasewhere). The netbeans ant projects bypass the problem by additional tooling support which generates the entries.
So "empty" public packages value still seems to me like the best out of the box option that works for all cases without additional setup.
Please advise.
Jesse Glick added a comment (16/Jul/08)
Again: whatever the decision about the pom.xml format, the Maven plugin must never generate a module that is lacking the OIDE-M-P-P attribute.
I still recommend that an empty package list ("-") be the default unless otherwise specified. If there is a common need to create library wrappers which export all packages (which is also suspect - in many cases only certain packages should really be exported), this can be handled either by an archetype which does the setup similarly to a project wizard in the IDE; or by a one-line marker in pom.xml which requests all packages to be exported.
Old fixed issue submitted by Jesse Glick
as linked in nbm-maven-plugin website I copy paste the discussion in this issue (source: http://web.archive.org/web/20150522170455/https://jira.codehaus.org/browse/MNBMODULE-32)
Jesse Glick initial comment (15/Jul/08):
Milos Kleint added a comment (16/Jul/08)
Jesse Glick added a comment (16/Jul/08)
was fixed in the commit:
17adefc
The text was updated successfully, but these errors were encountered: