I'm observing a different behavior of the felix plugin between maven 2.0.7 and
2.0.9 in generating manifest file entries when embedding dependency from one jar
into another. The contents of the jar stays the same.
With maven 2.0.7 the following configuration correctly adds
javax.xml.rpc.handler to the Export-Package entry in the manifest file, while
with 2.0.9 the package is missing:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<configuration>
<instructions>
<Embed-Dependency>
javax.xml.rpc;inline=javax/xml/rpc/handler/*.class
</Embed-Dependency>
<Export-Package>
${extension.name}.*; version=${spec.version},
javax.interceptor.*; version=${spec.version},
javax.xml.rpc.handler;
version=${javax.xml.rpc.version}
</Export-Package>
<Private-Package>!*</Private-Package>
</instructions>
<unpackBundle>true</unpackBundle>
</configuration>
<executions>
<execution>
<id>osgi-bundle</id>
<phase>package</phase>
<goals>
<goal>bundle</goal>
</goals>
</execution>
</executions>
</plugin>
I need to add classes only from that particular package, and not its subpackage.
Regards,
-marina
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]