【发布时间】:2011-02-02 14:33:29
【问题描述】:
如何在 Apache Felix 中将 jar 添加到我的包中?
我正在使用 maven 和 maven-bundle-plugin 为我在 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>
【问题讨论】:
标签: osgi apache-felix