当我尝试安装我的包时
mvn:br.com.mycompany/integration/1.0.0-SNAPSHOT
我收到以下错误:
Unable to start bundle mvn:br.com.dbitech/animus/1.0.0-SNAPSHOT: Unresolved constraint in bundle Integration [359]: Unable to resolve 359.0: missing requirement [359.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.dbcp2)(version>=2.1.0)(!(version>=3.0.0)))
当我尝试安装dbcp2功能时,跟随错误发生:
Error executing command: No feature named 'commons-dbcp2' with version '0.0.0' available
我如何安装不在保险丝索引中的功能?
答案 0 :(得分:0)
我找到了如何安装依赖项:
在这种情况下,我需要包装bundle和你的依赖项:
osgi:install -s wrap:mvn:org.apache.commons/commons-pool2/2.4.2
osgi:install -s wrap:mvn:org.apache.commons/commons-dbcp2/2.1.1