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 183205 - Bad package declaration in Source Packages and Test Packages files
Summary: Bad package declaration in Source Packages and Test Packages files
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Maven OSGi bundles (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-30 15:20 UTC by fede33
Modified: 2010-11-08 14:53 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 fede33 2010-03-30 15:20:37 UTC
When creating a New Project from Maven Archetype the generated sources have bad package declaration: namely it is lacking the last part of package declaration. e.g. for desired package name com.foo.bar the sources have com.foo.

Regards,
Federico Salardi
Comment 1 fede33 2010-03-30 15:52:47 UTC
I forgot to add that this issue resembles the pm.xml file generated, namely:

<Export-Package>com.foo</Export-Package>
<Private-Package>com.foo.*</Private-Package>
<Bundle-Activator>com.foo.Something</Bundle-Activator>

and should be

<Export-Package>com.foo.bar</Export-Package>
<Private-Package>com.foo.bar*</Private-Package>
<Bundle-Activator>com.foo.bar.Something</Bundle-Activator>
Comment 2 Jesse Glick 2010-11-08 14:53:14 UTC
The current archetype (used in 7.0 dev builds) sets only Bundle-Activator. It does not preconfigure Export-Package or Private-Package.