You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Rodrigo Madera <ro...@gmail.com> on 2007/10/10 03:16:13 UTC

Any MINA Official OSGi Bundle?

Hello community,

A while ago I asked if there was an official bundle for OSGi.
Is there any plan to support this or any ongoing effort to provide an OSGi
bundle?

Please note that using BND is not what I am asking here.

Regards,
Rodrigo

Re: Any MINA Official OSGi Bundle?

Posted by Trustin Lee <tr...@gmail.com>.
IIRC, the maven felix plugin had two problems:

1) It didn't collaborate with other plugins such as
maven-anttask-plugin that copies LICENSE information to the archive.
2) It didn't work very well with multi-project layout.  I want to
specify the felix plugin in the parent POM and make all sub-modules
generate appropriate OSGi bundle.

Please let me know how I can fix this problem or provide some patch. :)

Thanks,
Trustin


On 10/11/07, Rodrigo Madera <ro...@gmail.com> wrote:
> Chihiro,
>
> You made one.
> Want to submit it for us to take a look?
>
> Rodrigo
>
> On 10/10/07, Raman Gupta <ro...@fastmail.fm> wrote:
> >
> > Rodrigo Madera wrote:
> > > So what do you think?
> > > Can this become a reality for MINA?
> > >
> > > Having OSGi capable information wouldn't hurt non-OSGi users.
> >
> > Why not provide a patch to make it happen? I for one would like to
> > review the patch to make sure it doesn't break mina in my OSGi
> > environment.
> >
> > Cheers,
> > Raman
> >
>


-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: Any MINA Official OSGi Bundle?

Posted by Rodrigo Madera <ro...@gmail.com>.
Chihiro,

You made one.
Want to submit it for us to take a look?

Rodrigo

On 10/10/07, Raman Gupta <ro...@fastmail.fm> wrote:
>
> Rodrigo Madera wrote:
> > So what do you think?
> > Can this become a reality for MINA?
> >
> > Having OSGi capable information wouldn't hurt non-OSGi users.
>
> Why not provide a patch to make it happen? I for one would like to
> review the patch to make sure it doesn't break mina in my OSGi
> environment.
>
> Cheers,
> Raman
>

Re: Any MINA Official OSGi Bundle?

Posted by Raman Gupta <ro...@fastmail.fm>.
Rodrigo Madera wrote:
> So what do you think?
> Can this become a reality for MINA?
> 
> Having OSGi capable information wouldn't hurt non-OSGi users.

Why not provide a patch to make it happen? I for one would like to
review the patch to make sure it doesn't break mina in my OSGi
environment.

Cheers,
Raman

Re: Any MINA Official OSGi Bundle?

Posted by Rodrigo Madera <ro...@gmail.com>.
So what do you think?
Can this become a reality for MINA?

Having OSGi capable information wouldn't hurt non-OSGi users.

Yours,
Rodrigo

On 10/10/07, Niclas Hedhman <ni...@hedhman.org> wrote:
>
> On 10/10/07, chihiro <ga...@gmail.com> wrote:
> > Rodrigo Madera wrote:
> > >
> > > But we need one officially, and build into the official repository.
> > > And preferably using accepted Apache tools, like maven-bundle-plugin.
> > >
> >
> > +1
> >
> > Actually pax-construct *is* using maven-bundle-plugin AFAIK.
>
> Also, the main author of Pax Construct is Stuart McCulloch, one of the
> very active Felix committers. Also the main contributor to the Maven
> Bundle plugin itself.
>
>
> Cheers
> Niclas
>

Re: Any MINA Official OSGi Bundle?

Posted by Niclas Hedhman <ni...@hedhman.org>.
On 10/10/07, chihiro <ga...@gmail.com> wrote:
> Rodrigo Madera wrote:
> >
> > But we need one officially, and build into the official repository.
> > And preferably using accepted Apache tools, like maven-bundle-plugin.
> >
>
> +1
>
> Actually pax-construct *is* using maven-bundle-plugin AFAIK.

Also, the main author of Pax Construct is Stuart McCulloch, one of the
very active Felix committers. Also the main contributor to the Maven
Bundle plugin itself.


Cheers
Niclas

Re: Any MINA Official OSGi Bundle?

Posted by chihiro <ga...@gmail.com>.
Rodrigo,


Rodrigo Madera wrote:
> 
> But we need one officially, and build into the official repository.
> And preferably using accepted Apache tools, like maven-bundle-plugin.
> 

+1

Actually pax-construct *is* using maven-bundle-plugin AFAIK.
-- 
View this message in context: http://www.nabble.com/Any-MINA-Official-OSGi-Bundle--tf4598020s16868.html#a13128563
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.


Re: Any MINA Official OSGi Bundle?

Posted by Niclas Hedhman <ni...@hedhman.org>.
It would be excellent if MINA could ship all jars with a bit of extra
entries in the Manifest, making them OSGi capable bundles out of the
box (so to speak). Felix community want to promote such cross-effort,
and if it wasn't for me stepping on a plane for a long trip very soon,
I could volunteer to maintain such manifest(s) for MINA.

Thanks to the new Maven Bundle plugin, which indeed is based on BND of
Peter Kriens', it is almost a no-brainer. Mostly a matter of ensuring
that no "garbage" is pulled in via transitive dependencies of Maven,
or one's own not totally good poms.


Cheers
Niclas

On 10/10/07, Rodrigo Madera <ro...@gmail.com> wrote:
> That's my point. It's easy.
>
> But we need one officially, and build into the official repository.
> And preferably using accepted Apache tools, like maven-bundle-plugin.
>
> WDYT?
>
> Rodrigo
>
> On 10/10/07, chihiro <ga...@gmail.com> wrote:
> >
> >
> > Trustin,
> >
> >
> > Trustin Lee wrote:
> > >
> > > writing MANIFEST.MF manually is a lot of pain because MINA has so many
> > > packages.  It would be really nice if maven-bundle-plugin is fixed or
> > > there's some workaround.
> > >
> >
> > It didn't take me too much effort to create a bundle for mina.
> >
> >
> > http://scm.ops4j.org/browse/OPS4J/projects/pax/radman/services/event/org.apache.mina.mina-core
> >
> > I used pax-construct
> > http://wiki.ops4j.org/confluence/display/ops4j/Pax+Construct to generate
> > the
> > MANIFEST.
> >
> > C
> > --
> > View this message in context:
> > http://www.nabble.com/Any-MINA-Official-OSGi-Bundle--tf4598020s16868.html#a13128314
> > Sent from the Apache MINA Support Forum mailing list archive at Nabble.com
> > .
> >
> >
>

Re: Any MINA Official OSGi Bundle?

Posted by Rodrigo Madera <ro...@gmail.com>.
That's my point. It's easy.

But we need one officially, and build into the official repository.
And preferably using accepted Apache tools, like maven-bundle-plugin.

WDYT?

Rodrigo

On 10/10/07, chihiro <ga...@gmail.com> wrote:
>
>
> Trustin,
>
>
> Trustin Lee wrote:
> >
> > writing MANIFEST.MF manually is a lot of pain because MINA has so many
> > packages.  It would be really nice if maven-bundle-plugin is fixed or
> > there's some workaround.
> >
>
> It didn't take me too much effort to create a bundle for mina.
>
>
> http://scm.ops4j.org/browse/OPS4J/projects/pax/radman/services/event/org.apache.mina.mina-core
>
> I used pax-construct
> http://wiki.ops4j.org/confluence/display/ops4j/Pax+Construct to generate
> the
> MANIFEST.
>
> C
> --
> View this message in context:
> http://www.nabble.com/Any-MINA-Official-OSGi-Bundle--tf4598020s16868.html#a13128314
> Sent from the Apache MINA Support Forum mailing list archive at Nabble.com
> .
>
>

Re: Any MINA Official OSGi Bundle?

Posted by chihiro <ga...@gmail.com>.
Trustin,


Trustin Lee wrote:
> 
> writing MANIFEST.MF manually is a lot of pain because MINA has so many
> packages.  It would be really nice if maven-bundle-plugin is fixed or
> there's some workaround.
> 

It didn't take me too much effort to create a bundle for mina.

http://scm.ops4j.org/browse/OPS4J/projects/pax/radman/services/event/org.apache.mina.mina-core

I used pax-construct
http://wiki.ops4j.org/confluence/display/ops4j/Pax+Construct to generate the
MANIFEST.

C
-- 
View this message in context: http://www.nabble.com/Any-MINA-Official-OSGi-Bundle--tf4598020s16868.html#a13128314
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.


Re: Any MINA Official OSGi Bundle?

Posted by Rodrigo Madera <ro...@gmail.com>.
I'm in constant touch with the Felix community as well, and
maven-bundle-plugin works great.

I use it constantly and had no strong issues whatsoever.
That is why I ask.

Also, the plugin works and was implemented for OSGi standards and no Felix
extensions.

So maybe something was not right when MINA tried to bundle the project?

Yours,
Rodrigo

On 10/10/07, Alex Karasulu <ak...@apache.org> wrote:
>
> I think the drastically changed the plugin over at Felix so it might not
> work as
> expected.  They may have integrated BND into it perhaps.  Don't know for
> sure
> but I'd check with the Felix guys.
>
> Alex
>
> On 10/9/07, Rodrigo Madera <ro...@gmail.com> wrote:
> >
> > What exactly happened with maven-bundle-plugin?
> >
> > Do you recall?
> >
> > Thanks,
> > Rodrigo
> >
> > On 10/10/07, Trustin Lee <tr...@gmail.com> wrote:
> > >
> > > On 10/10/07, Rodrigo Madera <ro...@gmail.com> wrote:
> > > > Hello community,
> > > >
> > > > A while ago I asked if there was an official bundle for OSGi.
> > > > Is there any plan to support this or any ongoing effort to provide
> an
> > > OSGi
> > > > bundle?
> > > >
> > > > Please note that using BND is not what I am asking here.
> > >
> > > We once tried maven-bundle-plugin that generates OSGi bundle
> > > automatically, but the latest release looks broken.  As you know,
> > > writing MANIFEST.MF manually is a lot of pain because MINA has so many
> > > packages.  It would be really nice if maven-bundle-plugin is fixed or
> > > there's some workaround.
> > >
> > > HTH,
> > > Trustin
> > > --
> > > what we call human nature is actually human habit
> > > --
> > > http://gleamynode.net/
> > > --
> > > PGP Key ID: 0x0255ECA6
> > >
> >
>

Re: Any MINA Official OSGi Bundle?

Posted by Alex Karasulu <ak...@apache.org>.
I think the drastically changed the plugin over at Felix so it might not
work as
expected.  They may have integrated BND into it perhaps.  Don't know for
sure
but I'd check with the Felix guys.

Alex

On 10/9/07, Rodrigo Madera <ro...@gmail.com> wrote:
>
> What exactly happened with maven-bundle-plugin?
>
> Do you recall?
>
> Thanks,
> Rodrigo
>
> On 10/10/07, Trustin Lee <tr...@gmail.com> wrote:
> >
> > On 10/10/07, Rodrigo Madera <ro...@gmail.com> wrote:
> > > Hello community,
> > >
> > > A while ago I asked if there was an official bundle for OSGi.
> > > Is there any plan to support this or any ongoing effort to provide an
> > OSGi
> > > bundle?
> > >
> > > Please note that using BND is not what I am asking here.
> >
> > We once tried maven-bundle-plugin that generates OSGi bundle
> > automatically, but the latest release looks broken.  As you know,
> > writing MANIFEST.MF manually is a lot of pain because MINA has so many
> > packages.  It would be really nice if maven-bundle-plugin is fixed or
> > there's some workaround.
> >
> > HTH,
> > Trustin
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP Key ID: 0x0255ECA6
> >
>

Re: Any MINA Official OSGi Bundle?

Posted by Rodrigo Madera <ro...@gmail.com>.
What exactly happened with maven-bundle-plugin?

Do you recall?

Thanks,
Rodrigo

On 10/10/07, Trustin Lee <tr...@gmail.com> wrote:
>
> On 10/10/07, Rodrigo Madera <ro...@gmail.com> wrote:
> > Hello community,
> >
> > A while ago I asked if there was an official bundle for OSGi.
> > Is there any plan to support this or any ongoing effort to provide an
> OSGi
> > bundle?
> >
> > Please note that using BND is not what I am asking here.
>
> We once tried maven-bundle-plugin that generates OSGi bundle
> automatically, but the latest release looks broken.  As you know,
> writing MANIFEST.MF manually is a lot of pain because MINA has so many
> packages.  It would be really nice if maven-bundle-plugin is fixed or
> there's some workaround.
>
> HTH,
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>

Re: Any MINA Official OSGi Bundle?

Posted by Trustin Lee <tr...@gmail.com>.
On 10/10/07, Rodrigo Madera <ro...@gmail.com> wrote:
> Hello community,
>
> A while ago I asked if there was an official bundle for OSGi.
> Is there any plan to support this or any ongoing effort to provide an OSGi
> bundle?
>
> Please note that using BND is not what I am asking here.

We once tried maven-bundle-plugin that generates OSGi bundle
automatically, but the latest release looks broken.  As you know,
writing MANIFEST.MF manually is a lot of pain because MINA has so many
packages.  It would be really nice if maven-bundle-plugin is fixed or
there's some workaround.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: Any MINA Official OSGi Bundle?

Posted by Trustin Lee <tr...@gmail.com>.
On 10/10/07, Rodrigo Madera <ro...@gmail.com> wrote:
> Hello community,
>
> A while ago I asked if there was an official bundle for OSGi.
> Is there any plan to support this or any ongoing effort to provide an OSGi
> bundle?
>
> Please note that using BND is not what I am asking here.

I've just figured out how to generate correct MINA bundles with
maven-bundle-plugin.  Please check out the trunk and try to run mvn
install; that should generate proper OSGi Bundles.  Please let me know
if it works or not.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6