You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Richard Wallace <rw...@thewallacepack.net> on 2009/06/02 05:31:38 UTC

Re: Best way to launch felix from maven

On Wed, May 27, 2009 at 8:52 PM, Stuart McCulloch <mc...@gmail.com> wrote:
> 2009/5/28 Richard Wallace <rw...@thewallacepack.net>
>
> Hi Rich,
>
> Pax runner is awesome!  You should definitely give it a look.  That
>> said, the only problem you might run into, which I've run into as well
>> and just haven't had the time to do anything about it, is that Pax
>> Runner will use its own internal mechanism to resolve bundles that are
>> maven dependencies and so won't use artifacts from the reactor.
>
>
> if you're using the maven based pax-plugin then it should be resolving
> artifacts in your reactor and passing them to the pax-runner launcher
>
> I've been meaning to either try and patch the pax:run mojo to fix that, or
>> wrap the pax:run goal in another plugin that does the resolution and
>> then hands off the resolved artifacts to pax runner.
>
>
> there's already a chunk of code in "pax:provision" (aliased to "pax:run")
> to check for bundles in the reactor and resolve them - you could try the
> latest 1.5-SNAPSHOT as there's been a few changes in that area
>

Sweet, I just tried it and it worked out really well.  Only one thing missing...

>
>> One day I may even clear up a few hours in which to do it.
>>
>
> or raise a JIRA issue at OPS4J explaining the problem, as it's probably a
> corner case of the current resolution algorithm and should be a quick fix
>

I raised issue PAXCONSTRUCT-113
<http://issues.ops4j.org/browse/PAXCONSTRUCT-113>, which is the only
thing preventing me from using it every day.

Thanks,
Rich

>
>> Rich
>>
>> On Wed, May 27, 2009 at 4:31 PM, Alin Dreghiciu <ad...@gmail.com>
>> wrote:
>> > Look for maven pax plugin:
>> > http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/index.html
>> >
>> > On Thu, May 28, 2009 at 1:40 AM, Brendan Haverlock
>> > <br...@mirthcorp.com>wrote:
>> >
>> >> Hi all,
>> >>
>> >>
>> >>
>> >> I was wondering what the best practice was for launching OSGI
>> applications
>> >> from maven was.   I've been trying to launch applications by using say
>> the
>> >> easybeans felix launcher and calling that plugin's goal from the run
>> >> configuration.  This has been giving me quite a bit of trouble, and I
>> can't
>> >> really find ANY documentation on how people are launching their OSGI
>> >> applications in a maven environment.  Any insight, experiences, or best
>> >> practices would be much appreciated.  I also need to ensure that hot
>> code
>> >> replace will work.
>> >>
>> >>
>> >>
>> >> Thanks!
>> >>
>> >>
>> >>
>> >> Brendan Haverlock
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> > --
>> > Alin Dreghiciu
>> > Software Developer - Looking for new projects!
>> > My profile: http://www.linkedin.com/in/alindreghiciu
>> > My blog: http://adreghiciu.blogspot.com
>> > http://www.ops4j.org - New Energy for OSS Communities - Open
>> Participation
>> > Software.
>> > http://www.qi4j.org - New Energy for Java - Domain Driven Development.
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
> --
> Cheers, Stuart
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org