2008/9/23 Craig Walls <[EMAIL PROTECTED]>

>
> 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.
>

Hi Craig,

Personally I haven't tried building war files with the tools, but
if it works with bundle packaging then it should be possible to
get it working for war files. So it's either a configuration issue,
or a flag in the tooling needs fixing - shouldn't be hard to fix.

If you can somehow give me access to a test setup then I can
look at it later this week, otherwise I'll need a bit more time to
setup my own test project...


> I'll provide more details if necessary...
>

the error output from the end of "mvn -X install" would be useful

Thanks,
> Craig
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>

-- 
Cheers, Stuart
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to