Apache Felix のバンドルに jar を追加するにはどうすればよいですか?
私は maven-bundle-plugin で maven を使用して、OBR でバンドルを管理しています。
しかし、jar の POM 内で依存関係を宣言する場所がわからないため、maven はそれを最終的なバンドルに正しくコンパイルします。
これは私のプラグインがpomでどのように見えるかです:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-Category>sample</Bundle-Category>
<Bundle-SymbolicName>${artifactId}
</Bundle-SymbolicName>
<Export-Package>
//blahblah
</Export-Package>
</instructions>
<!-- OBR -->
<remoteOBR>repo-rel</remoteOBR>
<prefixUrl>file:///C:/Users/blah/Projects/Eclipse3.6-RCP-64/Felix/obr-repo/releases</prefixUrl>
<ignoreLock>true</ignoreLock>
</configuration>