3

Since Maven cannot guarantee that a jar is also a bundle I want to use OBR as my project Repository. Of course in case of OSGi it has a lot of more nice features why I am using it :) So, are there possibilities to add jars published to a Maven Repository to an OBR Repository or could I simply add a whole Maven Repo to it? Or is it possible to address a Maven URL directly in you OBR metadata?

4

2 回答 2

4

您可以在部署时使用Maven Bundle Plugin将 OBR 元数据添加到您的存储库。

此插件会将 OBR 元数据添加到您部署的任何插件中。

我也认为 Nexus Open Source 现在支持 OBR,但我并不完全确定。

最后,PAX URL库可能对您有用。使用这个库,您可以使用 Pax 将为您解析的 maven 样式 url(例如 'mvn:groupid/artifactId')

问候,弗兰克

于 2012-05-13T09:02:17.933 回答
0

最好的办法是使用存储库管理器并将适当的存储库添加到存储库管理器的配置中。此外,还可以在您的 settings.xml 文件中添加一个存储库作为补充资源。

于 2012-05-13T08:14:34.327 回答