Hi,
I use <Embed-Dependency> in maven-bundle-plugin to embed a jar to a
bundle. The resulted manifest is correct but the jar is not embedded in the
bundle. What more should I do to have it embedded in my bundle? My maven
pom is like the following:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Activator>xs.common.rs.Activator</Bundle-Activator>
<Export-Package>xs.common.rs
;version=${project.version}</Export-Package>
<Import-Package>
as.*;xs.*;version="[1.5,2)",
javax.servlet;version=2.4,
*
</Import-Package>
<Embed-Dependency>dojo;scope=runtime</Embed-Dependency>
</instructions>
</configuration>
</plugin>
Rice