由于在项目中使用了redis-clients的包jedis,编译没有问题,但是OSGI启动这个容器时报错:
org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=emsp-cache; type=karaf.feature; version=0.0.1.SNAPSHOT [caused by: Unable to resolve emsp-cache/0.0.1.SNAPSHOT: missing requirement [emsp-cache/0.0.1.SNAPSHOT] osgi.identity; osgi.identity=emsp-cache; type=osgi.bundle; version="[0.0.1.SNAPSHOT,0.0.1.SNAPSHOT]"; resolution:=mandatory [caused by: Unable to resolve emsp-cache/0.0.1.SNAPSHOT: missing requirement [emsp-cache/0.0.1.SNAPSHOT] osgi.wiring.package; filter:="(&(osgi.wiring.package=redis.clients.jedis)(version>=2.8.0)(!(version>=3.0.0)))"]]
请问有知道怎么解决的吗?谢谢。