You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by syf_lx <sy...@sina.com> on 2013/08/16 11:04:17 UTC

How do I convert an existing jar file into an OSGi bundle?

How do I convert an existing jar file into an OSGi bundle?
Best regards 



--
View this message in context: http://servicemix.396122.n5.nabble.com/How-do-I-convert-an-existing-jar-file-into-an-OSGi-bundle-tp5717573.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: How do I convert an existing jar file into an OSGi bundle?

Posted by jay <my...@gmail.com>.
You can use the below to convert your jar into OSGI bundle.

mvn install:install-file -Dfile=your.jar -DgroupId=yourgroupid
-DartifactId=artifactid -Dversion=versionNumber -Dpackaging=jar



or you could also follow the plugin development in Eclipse (please google it
you will get the steps).



--
View this message in context: http://servicemix.396122.n5.nabble.com/How-do-I-convert-an-existing-jar-file-into-an-OSGi-bundle-tp5717573p5717574.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: How do I convert an existing jar file into an OSGi bundle?

Posted by syf_lx <sy...@sina.com>.
Thanks for your reply! The problem has been solved in this way.
http://karaf.apache.org/manual/latest-2.3.x/developers-guide/creating-bundles.html



--
View this message in context: http://servicemix.396122.n5.nabble.com/How-do-I-convert-an-existing-jar-file-into-an-OSGi-bundle-tp5717573p5717577.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: How do I convert an existing jar file into an OSGi bundle?

Posted by Jon Anstey <ja...@gmail.com>.
Some notes here
http://karaf.apache.org/manual/latest-2.3.x/developers-guide/creating-bundles.html


On Fri, Aug 16, 2013 at 6:34 AM, syf_lx <sy...@sina.com> wrote:

> How do I convert an existing jar file into an OSGi bundle?
> Best regards
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/How-do-I-convert-an-existing-jar-file-into-an-OSGi-bundle-tp5717573.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>



-- 
Cheers,
Jon
---------------
Red Hat, Inc.
Email: janstey@redhat.com
Web: http://redhat.com
Twitter: jon_anstey
Blog: http://janstey.blogspot.com
Author of Camel in Action: http://manning.com/ibsen