You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Naira & Kobo <le...@gmail.com> on 2010/10/24 19:41:36 UTC

How to export package in to karaf

Hi all,

Pls, how do I export a package such that it will be visible in karaf. I used
the <Export-Package> instruction in my POM, it was show as exported when I
did headers {id} but when I did packages:exports {id} none were exported

Regards.
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-export-package-in-to-karaf-tp3234530p3234530.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: How to export package in to karaf

Posted by Naira & Kobo <le...@gmail.com>.
Thanks for the response.

Strangely, it's resolved.

I just had to not call it private package and it started, but another
interesting thing happened

I tried exported a package using the export instruction and it didnt export.

Why didnt karaf resolve the package when I said there are private packages
and when I remove the instruction, they were resolved.

And why would they not be exported when I used the export instruction when I
removed private package.
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-export-package-in-to-karaf-tp3234530p3234548.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: How to export package in to karaf

Posted by Johan Edstrom <se...@gmail.com>.
If you use the plugins and you added * you'll be exporting quite a bit more, possibly also via uses clauses
And your bundle needs to be started as well, i.e show an Activated status, not just Installed


On Oct 24, 2010, at 11:41 AM, Naira & Kobo wrote:

> 
> Hi all,
> 
> Pls, how do I export a package such that it will be visible in karaf. I used
> the <Export-Package> instruction in my POM, it was show as exported when I
> did headers {id} but when I did packages:exports {id} none were exported
> 
> Regards.
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/How-to-export-package-in-to-karaf-tp3234530p3234530.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Johan Edstrom

joed@opennms.org

They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety.

Benjamin Franklin, Historical Review of Pennsylvania, 1759






Re: How to export package in to karaf

Posted by Guillaume Nodet <gn...@gmail.com>.
If the package is both exported and imported, the framework will
choose either to export *or* import it when the bundle is resolved, so
you may end up in importing and not exporting the pacakge,  It can
happen if the same package is already exported by another bundle.

On Sun, Oct 24, 2010 at 19:41, Naira & Kobo <le...@gmail.com> wrote:
>
> Hi all,
>
> Pls, how do I export a package such that it will be visible in karaf. I used
> the <Export-Package> instruction in my POM, it was show as exported when I
> did headers {id} but when I did packages:exports {id} none were exported
>
> Regards.
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/How-to-export-package-in-to-karaf-tp3234530p3234530.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com