dev@glassfish.java.net

Re: exporting no packages (Re: Wiki page with OSGi package statistics for various glassfish bundles)

From: Sahoo <Sahoo_at_Sun.COM>
Date: Tue, 11 May 2010 08:16:46 +0530

On Monday 10 May 2010 10:08 PM, Bobby Bissett wrote:
> On May 6, 2010, at 8:33 PM, Sahoo wrote:
>
>> Yes, I did say that modules which hold the implementations do not
>> need to and should not export the implementation packages. [...]
>
> Given a pom like the one for the upgrade tool:
>
> http://tinyurl.com/2alszs5
>
> ...how do I tell it to not export any packages? As far as I can tell,
> this jar doesn't need to involve OSGi in any way. It's an executable
> jar file that interacts with other jars only through the manifest
> classpath.
Why is it using
<packaging>hk2-jar</packaging>
instead of
<packaging>jar</packaging>
if it is supposed to be a plain jar?

Make the above change and see.

Secondly, I think we should stop using modules directory for such plain
jar files. Can you raise it in next engg. meeting?

Thanks,
Sahoo