2008/10/1 Craig Walls <[EMAIL PROTECTED]>

>
> More info...it seems that when "pax-provision" is scanning for bundles
> in the current project, it overlooks my WAR bundle altogether and never
> adds it to the runner/deploy-pom.xml file.
>

see  http://issues.ops4j.org/jira/browse/PAXCONSTRUCT-89

trunk version of the pax-plugin now adds WAR files to the provision pom
but I can't remember if Pax-Runner has support for detecting them - see
second from last comment at the end of that issue...


> Is there a setting or some such thing (aside from having to specify my
> WAR bundle using deployURLs) that can make pax-provision pick up and
> deploy my WAR bundle?
>

unfortunately not, because even if pax-provision detected them, there's
still the issue about Pax-Runner picking them up - it shouldn't take long
to fix that, but it will require a new release

Craig Walls wrote:
> > I've all but started over on the project and *this* time, it seems to
> > build fine, regardless of whether I'm building the entire project or the
> > individual WAR bundle project.
> >
> > So, my original problem has past. Now, however, I do a pax-provision and
> > all of the bundles except for the WAR bundle gets installed. Any obvious
> > reason why that'd be the case?
> >
> > Note that in order to get a WAR file out of the project, I had to tweak
> > the WAR bundle's pom.xml to have "war" packaging and then setup the
> > plugin to support "war" packaging.Other than that, it's a fairly typical
> > WAR bundle as far as I can tell.
> >
> >
> >
> >
> > Stuart McCulloch wrote:
> >
> >> 2008/9/23 Craig Walls <[EMAIL PROTECTED] <mailto:[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] <mailto:[email protected]>
> >>     http://lists.ops4j.org/mailman/listinfo/general
> >>
> >>
> >> --
> >> Cheers, Stuart
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> general mailing list
> >> [email protected]
> >> http://lists.ops4j.org/mailman/listinfo/general
> >>
> >>
> >
> >
> > _______________________________________________
> > general mailing list
> > [email protected]
> > http://lists.ops4j.org/mailman/listinfo/general
> >
>
>
> _______________________________________________
> 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