我想在我的 Nexus oss 2.10.0-02 中安装 Nexus-obr-plugin GitHub 。
OBR 插件似乎没有在标准 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
。在依赖项文件夹中下载所需的依赖项:
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.osgi.service.obr</artifactId>
</dependency>
并根据来自其他 Nexus 插件的其他清单文件创建了一个清单文件。有了这个,我成功地启动了 Nexus,并且插件控制台声明 OBR 插件已激活。但是“创建新的托管存储库”下没有可用的 OBR 提供程序。
有没有很好的解释如何安装 obr 插件以及在哪里可以下载具有所有依赖项和 MANIFEST 文件的插件?