karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: Custom command for apache-karaf-4.0.0-20150507.135024-329.zip
Date Thu, 14 May 2015 21:14:49 GMT
You need to add a header to the manifest
   <Karaf-Commands>*</Karaf-Commands>

This header need to contain the list of packages containing commands, but a
* will scan all packages.

2015-05-14 22:03 GMT+02:00 rcbandit <peter.penzov@gmail.com>:

> I managed to find  the problem but I need some help.
>
> In my pom I use these instructions to import packages:
>
>                         <Import-Package>
>                             org.osgi.framework,
>                             org.osgi.util.tracker,
>                             org.apache.karaf.shell.api.action,
>                             org.apache.karaf.shell.api.console
>                         </Import-Package>
>
> It works when I import all packages:
>
>                         <Import-Package>
>                             *
>                         </Import-Package>
>
> So looks like that I need to import some package dynamically in order to
> make my command to work. Can you tell me which package I have to import?
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Custom-command-for-apache-karaf-4-0-0-20150507-135024-329-zip-tp4040353p4040361.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message