2017-03-15 24 views
0

當我嘗試安裝我的包Jboss的保險絲,錯誤:沒有名爲「公地dbcp2」與版本「0.0.0」功能

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功能,後續錯誤ocurs:

Error executing command: No feature named 'commons-dbcp2' with version '0.0.0' available 

如何我安裝一個功能,在保險絲指數不就是?

回答

0

我發現怎麼安裝的依賴:

在這種情況下,我需要包裝的包和你的依賴:

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