在Nexus中安装obr插件

rei*_*ann 5 osgi obr nexus

我想在我的Nexus oss 2.10.0-02中安装Nexus-obr-plugin GitHub.

OBR-plugin似乎没有在标准Nexus OSS中提供.我可以找到这个插件的jar版本http://mvnrepository.com/artifact/org.sonatype.nexus.plugins/nexus-obr-plugin/2.10.0-02.

我查看了Nexus附带的其他插件,每个插件似乎都在包含jar,Manifestfile(在META-INF下)和所需依赖项的文件夹中.

我把罐子放在文件夹里plugin-repository/nexus-obr-plugin-2.10.0-02/nexus-obr-plugin-2.10.0-02.jar.在dependencies文件夹中下载了所需的dependecies:

<dependency>
  <groupId>org.osgi</groupId>
  <artifactId>org.osgi.core</artifactId>
</dependency>

<dependency>
  <groupId>org.apache.felix</groupId>
  <artifactId>org.osgi.service.obr</artifactId>
</dependency>
Run Code Online (Sandbox Code Playgroud)

并根据其他Nexus插件的其他MANIFEST文件创建了一个MANIFEST文件.有了这个,我设法启动Nexus没有错误,插件控制台声明OBR插件已激活.但是"创建新的托管存储库"下没有可用的OBR提供程序.

是否有一个很好的解释如何安装obr插件,哪里可以下载所有依赖项和MANIFEST文件的插件?

Nic*_*son 6

您需要安装bundle文件夹而不仅仅是jar文件.这些可以从sonatype存储库以zip格式下载:

https://repository.sonatype.org

对于2.10.0-02 OBR软件包,您可以在此处找到它:

https://repository.sonatype.org/service/local/repo_groups/forge/content/org/sonatype/nexus/plugins/nexus-obr-plugin/2.10.0-02/nexus-obr-plugin-2.10.0-02-bundle.zip

将其解压缩到该plugin-repository文件夹并重新启动nexus.