Hi I'm trying to use the maven-bundle-plugin (2.0.0) to hide a package in my bundle. I'm specifying the package name in the Private-Package header, but the maven-bundle-plugin still exports it and lists it under the Private-Package header. Effectively I'm getting this:
Manifest-Version: 1.0
Export-Package: org.test;uses:="org.osgi.framework"
Private-Package: org.test
Built-By: chris
Tool: Bnd-0.0.311
Bundle-Name: Unnamed - maven.testproject:maven-test:bundle:0.0.1-SNAPS
HOT
Created-By: Apache Maven Bundle Plugin
Bundle-Version: 0.0.1.SNAPSHOT
Build-Jdk: 1.6.0_0
Bnd-LastModified: 1241413506557
Bundle-ManifestVersion: 2
Import-Package: org.osgi.framework;version="1.4",org.test
Bundle-SymbolicName: maven.testproject.maven-test
My pom.xml file contains the following for the maven-bundle-plugin:
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.0</version>
<extensions>true</extensions>
<configuration>
<manifestLocation>META-INF/</manifestLocation>
<instructions>
<Private-Package>org.test</Private-Package>
</instructions>
</configuration>
</plugin>
</plugins>I'm using
How can cause maven-bundle-plugin to not export the org.test package? My
understanding of the Private-Package header is that it doesn't export
all the packages specified for it.
I've attached the project I am using. My maven version is 2.09.
Thanks
Chris
maven-private-package-test.tar.gz
Description: application/compressed-tar
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

