I've got a Pax Construct created project that includes a web bundle (ie, 
a bundle that is a WAR not a JAR). I've created WAR bundles before...no 
problem. I've even used the Maven bundle plugin and followed directions 
like those at 
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html 
and 
http://wiki.ops4j.org/confluence/display/ops4j/Getting+the+benefits+of+maven-bundle-plugin+in+other+project+types.

But I've not yet successfully created a WAR bundle as part of a Pax 
Construct project. I've tweaked the settings for the bundle plugin to 
include "war" project types in the web project's pom.xml. If I build the 
web project by itself, it seems to work fine. However, if I build the 
parent project (the one containing the web bundle project), I get errors 
saying that it can't find Compass' Searchable annotation.

Let me explain that part a bit more: My web bundle depends on an index 
service bundle that depends on a domain bundle that has classes in it 
that are annotated with Compass' Searchable annotation. So, the web 
bundle transitively depends on Searchable.

I've done pax-import-bundle for the index, domain, and Compass 
bundles...no problems there. And, in fact, if I build the web bundle 
with "bundle" packaging, I have no troubles. And, like I said, the web 
bundle builds fine by itself. But it fails to build as part of the 
overall project build.

My guess is that I need to tweak the bundle plugin settings somewhere 
other than in the web project's pom.xml. But I've tried a few variations 
of the change and so far no luck. I was hoping someone here would've 
already tried to build WAR bundles with Pax Construct and would have the 
insight I need to get this tackled.

I'll provide more details if necessary...

Thanks,
Craig



_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to