1
karaf@root> install -s mvn:com.thoughtworks.xstream/xstream/1.4.7
Bundle ID: 169
Error executing command: Error installing bundles:
    Unable to start bundle mvn:com.thoughtworks.xstream/xstream/1.4.7: 
    Unresolved constraint in bundle xstream [169]: 
    Unable to resolve 169.0: missing requirement [169.0] osgi.wiring.package; (osgi.wiring.package=sun.misc)

xstream の適切な Maven 依存関係が見つかりません ... あまりにも多くのリンクを検索しましたが、結果は同じです ... この問題を克服する別の方法はありますか ... Maven バンドル形式の JAR を作成できますか? はいの場合、どのように?

4

1 に答える 1

2

この欠落しているクラス「sun.misc」をkarafのconfig.propertiesファイルに追加することでこの問題を解決しました...「sun.misc」はjdkのライブラリであることがわかったので、karafはそれを使用できなかったので、私はこのクラスを karaf の config.properties ファイルに追加すると、問題が解決されます。

于 2014-06-25T05:02:41.487 に答える