1

バンドルを Karaf にインストールするときにこのエラーが発生しました。私は OSGi と Karaf を初めて使用するので、エラーの解釈にいくつかのヘルプを使用できます。

Error executing command: Could not start bundle mvn:com.myexample/foobar/0.1.0.SNAPSHOT 
in feature(s) com.myexample.foobar-0.6.0.SNAPSHOT: Unresolved constraint in bundle 
com.myexample.foobar [102]: Unable to resolve 102.0: missing requirement [102.0] 
osgi.wiring.package; (&(osgi.wiring.package=org.apache.commons.fileupload)
(version>=1.3.0)(!(version>=2.0.0)))

これは私の中にありますfeature.xml

    <bundle>mvn:commons-fileupload/commons-fileupload/1.3</bundle>

そして私のPOMで

  <dependency>
     <groupId>commons-fileupload</groupId>
     <artifactId>commons-fileupload</artifactId>
     <version>1.3</version>
  </dependency>

Maven リポジトリには最新バージョンの 1.3 が表示されていますが、OSGi バージョンではない可能性があります。私も試しましたがwrap:mvn、それもうまくいきませんでした。

4

1 に答える 1