karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Command-feature-error: "Unable to resolve ... : missing requirement"
Date Sun, 19 May 2019 14:15:47 GMT
Hi,

it's because you have import-package to org.apache.karaf.util which is
not a bundle.

You have to set org.apache.karaf.util as private-package of your bundle.

Regards
JB

On 19/05/2019 15:37, matthiaw wrote:
> I try to create a own feature on basis of
> https://github.com/apache/karaf/tree/master/examples/karaf-command-example.
> For that i used the maven archetypes and merged them to
> https://github.com/matthiaw/karaf-command-trial.
> 
> Then i try
> 
> feature:repo-add
> mvn:org.rogatio.circlead.sunray/circlead-core-features/LATEST/xml
> feature:install circlead-core-provider
> 
> This throws following error:
> 
> Error executing command: Unable to resolve root: missing requirement [root]
> osgi.identity; osgi.identity=circlead-core-provider; type=karaf.feature;
> version="[0.0.1,0.0.1]";
> filter:="(&(osgi.identity=circlead-core-provider)(type=karaf.feature)(version>=0.0.1)(version<=0.0.1))"
> [caused by: Unable to resolve circlead-core-provider/0.0.1: missing
> requirement [circlead-core-provider/0.0.1] osgi.identity;
> osgi.identity=circlead-core-provider; type=osgi.bundle;
> version="[0.0.1,0.0.1]"; resolution:=mandatory [caused by: Unable to resolve
> circlead-core-provider/0.0.1: missing requirement
> [circlead-core-provider/0.0.1] osgi.wiring.package;
> filter:="(osgi.wiring.package=org.apache.karaf.util.tracker)"]]
> 
> I see that in the compiled circlead-core-command.jar some karaf.util-classes
> are missing. I not know why (compared to karaf-command-example) and not know
> if that occurs the error.
> 
> Maybe i did something wrong in creating the feature, but i found no other
> "standalone" example. I Appreciate any hint, because i am trying this since
> at least 10 hours and did not find a full working example beside the
> karaf-command-example.
> 
> Do you have a working example to create a karaf-feature? Do you know what i
> am doning wrong?
> 
> Regards,
> Matthias
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message