2009/3/9 Michael Greifeneder <mik...@gmx.net>

> Hello,
>
> Thank you. I got it to work by adding the snapshort repository to my pom
> file
> and call
> mvn pax:provision -Drunner=0.18.0-SNAPSHOT
>
> How can I set runner version in my pom?


Like this:

        <groupId>org.ops4j</groupId>
        <artifactId>maven-pax-plugin</artifactId>
        <configuration>
          <runner>0.18.0-SNAPSHOT</runner>
          <provision>
            <param>--platform=felix</param>
            <param>--profiles=minimal</param>
          </provision>
        </configuration>

basically any command-line flag for the maven-pax-plugin can also be added
as an element
under <configuration>, while the <provision><param> section is for
Pax-Runner parameters
that should be passed onto the child Pax-Runner process


http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/provision-mojo.html

HTH


> I tried in
> /plugin/configuration
> <param>--version=0.18.0-SNAPSHOT</param>
> and in
> /plugin/configuration/provision
>  <param>--runner=0.18.0-SNAPSHOT</param>
>  <param>--Drunner=0.18.0-SNAPSHOT</param>
> without luck.
>
> I don't know but I guess a profile is just a list of bundles? It would be
> great
> to be able to define new profiles in a simple way without touching code.
> Commit
> them to SVN runner project to publish them is fine for me :)
>
> Mike
>
> On Monday 09 March 2009 02:20:07 Alin Dreghiciu wrote:
> > I'm working now on refactoring profiles in a way that profiles will be
> > possible to be added / modified just by adding/changing some text
> > files and commiting them back using svn.
> > So, if you like you can give a try to the latest Pax Runner snapshot
> > and use profiles=log,ds,event as you want too.
> >
> > If you do not want to use the snapshot you can use this provision url:
> > mvn:org.apache.felix/org.apache.felix.eventadmin/1.0.0 that will
> > install felix event admin or do some pax construct magic and the above
> > to your project.
> >
> > On Sun, Mar 8, 2009 at 9:11 PM, Michael Greifeneder <mik...@gmx.net>
> wrote:
> > > Hello,
> > >
> > > I start my OSGI project with pax-runner/mvn pax:provision. I have
> already
> > > selected profiles "log" and "ds". However I need EventAdmin, too.
> > > It would be nice to have a profile "event" like "log" or "ds".
> > > What's the fastest way to use Event Admin Service in pax-runner?
> > >
> > > Thanks,
> > > Mike
> > >
> > >
> > > _______________________________________________
> > > general mailing list
> > > general@lists.ops4j.org
> > > http://lists.ops4j.org/mailman/listinfo/general
>
> --
> email/jabber: mik...@gmx.net
> skype: mikegr2510
> feed: http://friendfeed.com/mikegr
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>



-- 
Cheers, Stuart
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to