I'm using the 1.0.0 maven-bundle-plugin. It appears to be generating an
invalid manifest file when using the <Include-Resource> tag. More
specifically, it appears to not be stripping out the whitespace. Placing
the entire contents of the <Include-Resource> on one line eliminates the
problem.
Although I'm using felix for making the bundle, the target OSGI
implementation is Equinox.
I apologize if using the "dev" list for this question is inappropriate.
I couldn't determine if there was also a "users" list (or something
similar) in use. If so, I'd also love to get on it.
--Tom DeWire
A quick view of the generated manifest:
=== start ===
Manifest-Version: 1.0
Created-By: 1.5.0_06 (Sun Microsystems Inc.)
Bundle-Activator: com.ea.nucleus.http.simple.probe.Activator
Import-Package: com.ea.nucleus.configuration;version="[1,2)",com.ea.nu
cleus.http.simple.common;version="[2,3)",com.ea.nucleus.routing;versi
on="[1,3)",org.apache.commons.logging;version="[1.1,2)",org.osgi.fram
ework;version=1.3,simple.http;version=3.1.3
Include-Resource: {src\main\resources},
@target\dependencies\sp
ring-core.jar,
@target\dependencies\spring-beans.jar,
@
target\dependencies\spring-context.jar,
@target\dependencies\c
onfiguration.spring.jar
=== lots more below here ===
My plugin configuration looks like this:
=== lots more above here ===
<!-- This will perform the actual bundling -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.0.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Name>${groupId}.${pom.artifactId}</Bundle-Name>
<Bundle-SymbolicName>${groupId}.${pom.artifactId}</Bundle-SymbolicName>
<Bundle-Activator>com.ea.nucleus.http.simple.probe.Activator</Bundle-Act
ivator>
<Import-Package>
org.osgi.framework,
org.apache.commons.logging;version="[1.1,2)",
com.ea.nucleus.configuration;version="[1,2)",
com.ea.nucleus.routing;version="[1,3)",
com.ea.nucleus.http.simple.common;version="[2,3)",
simple.http*;version="3.1.3",
!*
</Import-Package>
<Export-Package>
!*
</Export-Package>
<Private-Package>
com.ea.nucleus.http.simple.probe
</Private-Package>
<Include-Resource>
{src\main\resources},
@target\dependencies\spring-core.jar,
@target\dependencies\spring-beans.jar,
@target\dependencies\spring-context.jar,
@target\dependencies\configuration.spring.jar
</Include-Resource>
</instructions>
</configuration>
</plugin>
=== lots more below here ===