You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Benoît Thiébault <th...@artenum.com> on 2011/04/14 14:09:34 UTC
Alternative to Tycho using Felix
Hi everyone,
I am currently working on a project that is managed by Maven as a
multi-modules project, each module representing an OSGi bundle. What I
would like to do is to automatically generate a distributable packaging
of the project for each targeted platform. In this packaging, I would
like to have one executable (in the form of a sh scripton Linux for
instance) that would launch felix for instance, install and start all
the required bundles.
Is there such a tool ? What are the best practices to package OSGi
applications ?
I recently discovered Tycho (http://tycho.sonatype.org/) that "is a set
of Maven plugins and extensions for building Eclipse plugins and OSGI
bundles with Maven". This kind of tool is very interesting, except it is
aimed at creating Eclipse RCP plugin and the documentation is very
small. Do you have any alternatives to suggest ?
Kind regards,
Ben
--
Dr Benoît Thiébault
Project Manager
Artenum Toulouse - Science& Groupware
http://www.artenum.com
Bâtiment Calfocenter
10, rue Marguerite Long
31 320 Castanet Tolosan
Phone: +33 (0)5 62 19 32 22
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Alternative to Tycho using Felix
Posted by Benoît Thiébault <th...@artenum.com>.
Thank you Simon,
I indeed already use maven-bundle-plugin to create the bundles (and even
iPojo maven plugin). I also already tryed the assembly plugin for
another non-OSGi project but I was hoping for something a bit more
pre-configured for OSGi. With the assembly plugin, I still have to
configure a lot of OSGi specific things.
If there is nothing better, I will go with this. Are there any good
OSGi-specific tutorial of the assembly plugin indicating good practices
for packaging such applications?
Kind regards,
Ben
On 14/04/2011 14:22, Simon Chemouil wrote:
> Hi Benoït,
>
> One way to deal with this is to use the maven-bundle-plugin (a Felix
> subproject) to build your bundles and simply use a Maven assembly
> (using the maven assembly plugin) to generate your distributions. It
> is straightforward to generate an archive or a directory that will
> contain your bundles, the Felix runtime and scripts. You can even set
> the appropriate permissions (e.g, the executable bit) when you
> generate your assembly.
>
> Tycho is about having PDE projects build in Maven.
>
> HTH,
>
> Simon
>
> 2011/4/14 Benoît Thiébault<th...@artenum.com>:
>> Hi everyone,
>>
>> I am currently working on a project that is managed by Maven as a
>> multi-modules project, each module representing an OSGi bundle. What I would
>> like to do is to automatically generate a distributable packaging of the
>> project for each targeted platform. In this packaging, I would like to have
>> one executable (in the form of a sh scripton Linux for instance) that would
>> launch felix for instance, install and start all the required bundles.
>>
>> Is there such a tool ? What are the best practices to package OSGi
>> applications ?
>>
>> I recently discovered Tycho (http://tycho.sonatype.org/) that "is a set of
>> Maven plugins and extensions for building Eclipse plugins and OSGI bundles
>> with Maven". This kind of tool is very interesting, except it is aimed at
>> creating Eclipse RCP plugin and the documentation is very small. Do you have
>> any alternatives to suggest ?
>>
>> Kind regards,
>>
>> Ben
>>
>> --
>> Dr Benoît Thiébault
>> Project Manager
>>
>> Artenum Toulouse - Science& Groupware
>> http://www.artenum.com
>>
>> Bâtiment Calfocenter
>> 10, rue Marguerite Long
>> 31 320 Castanet Tolosan
>> Phone: +33 (0)5 62 19 32 22
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
--
Dr Benoît Thiébault
Project Manager
Artenum Toulouse - Science& Groupware
http://www.artenum.com
Bâtiment Calfocenter
10, rue Marguerite Long
31 320 Castanet Tolosan
Phone: +33 (0)5 62 19 32 22
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Alternative to Tycho using Felix
Posted by Simon Chemouil <sc...@gmail.com>.
Hi Benoït,
One way to deal with this is to use the maven-bundle-plugin (a Felix
subproject) to build your bundles and simply use a Maven assembly
(using the maven assembly plugin) to generate your distributions. It
is straightforward to generate an archive or a directory that will
contain your bundles, the Felix runtime and scripts. You can even set
the appropriate permissions (e.g, the executable bit) when you
generate your assembly.
Tycho is about having PDE projects build in Maven.
HTH,
Simon
2011/4/14 Benoît Thiébault <th...@artenum.com>:
> Hi everyone,
>
> I am currently working on a project that is managed by Maven as a
> multi-modules project, each module representing an OSGi bundle. What I would
> like to do is to automatically generate a distributable packaging of the
> project for each targeted platform. In this packaging, I would like to have
> one executable (in the form of a sh scripton Linux for instance) that would
> launch felix for instance, install and start all the required bundles.
>
> Is there such a tool ? What are the best practices to package OSGi
> applications ?
>
> I recently discovered Tycho (http://tycho.sonatype.org/) that "is a set of
> Maven plugins and extensions for building Eclipse plugins and OSGI bundles
> with Maven". This kind of tool is very interesting, except it is aimed at
> creating Eclipse RCP plugin and the documentation is very small. Do you have
> any alternatives to suggest ?
>
> Kind regards,
>
> Ben
>
> --
> Dr Benoît Thiébault
> Project Manager
>
> Artenum Toulouse - Science& Groupware
> http://www.artenum.com
>
> Bâtiment Calfocenter
> 10, rue Marguerite Long
> 31 320 Castanet Tolosan
> Phone: +33 (0)5 62 19 32 22
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Alternative to Tycho using Felix
Posted by Benoît Thiébault <th...@artenum.com>.
This is very interesting, thank you.
I will have a look at it and will certainly try and use it in my project.
Kind regards,
Ben
On 14/04/2011 15:33, Bertrand Delacretaz wrote:
> Hi Benoît,
>
> 2011/4/14 Benoît Thiébault<th...@artenum.com>:
>> ...I am currently working on a project that is managed by Maven as a
>> multi-modules project, each module representing an OSGi bundle. What I would
>> like to do is to automatically generate a distributable packaging of the
>> project for each targeted platform. In this packaging, I would like to have
>> one executable (in the form of a sh scripton Linux for instance) that would
>> launch felix for instance, install and start all the required bundles.
>>
>> Is there such a tool ? What are the best practices to package OSGi
>> applications ?...
> We have something like that in Sling - our maven-launchpad-plugin [1]
> takes a list of bundles, gets them from a Maven repository and can
> produce a runnable jar, a war file and a karaf descriptor. It doesn't
> produce a Linux script for example, but turning an executable jar into
> that is not too hard.
>
> See [2] for a concrete example, and ask on users@sling.apache.org for more info.
>
> -Bertrand
>
> [1] http://sling.apache.org/site/maven-launchpad-plugin.html
> [2] http://svn.apache.org/repos/asf/sling/trunk/launchpad/builder
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
--
Dr Benoît Thiébault
Project Manager
Artenum Toulouse - Science& Groupware
http://www.artenum.com
Bâtiment Calfocenter
10, rue Marguerite Long
31 320 Castanet Tolosan
Phone: +33 (0)5 62 19 32 22
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Alternative to Tycho using Felix
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Benoît,
2011/4/14 Benoît Thiébault <th...@artenum.com>:
> ...I am currently working on a project that is managed by Maven as a
> multi-modules project, each module representing an OSGi bundle. What I would
> like to do is to automatically generate a distributable packaging of the
> project for each targeted platform. In this packaging, I would like to have
> one executable (in the form of a sh scripton Linux for instance) that would
> launch felix for instance, install and start all the required bundles.
>
> Is there such a tool ? What are the best practices to package OSGi
> applications ?...
We have something like that in Sling - our maven-launchpad-plugin [1]
takes a list of bundles, gets them from a Maven repository and can
produce a runnable jar, a war file and a karaf descriptor. It doesn't
produce a Linux script for example, but turning an executable jar into
that is not too hard.
See [2] for a concrete example, and ask on users@sling.apache.org for more info.
-Bertrand
[1] http://sling.apache.org/site/maven-launchpad-plugin.html
[2] http://svn.apache.org/repos/asf/sling/trunk/launchpad/builder
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org