Install obr plugin in Nexus

I would like to install the Nexus-obr-plugin GitHub in my Nexus oss 2.10.0-02.

The OBR plugin does not seem to ship in the standard Nexus OSS. I could find a jar version of this plugin http://mvnrepository.com/artifact/org.sonatype.nexus.plugins/nexus-obr-plugin/2.10.0-02 .

I looked at the other plugins supplied with Nexus, each plugin seems to be located in the folder containing the jar, Manifestfile (in META-INF format) and the required dependencies.

I put the jar in the plugin-repository/nexus-obr-plugin-2.10.0-02/nexus-obr-plugin-2.10.0-02.jar . Downloaded required dependencies in the dependencies folder:

 <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> </dependency> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.osgi.service.obr</artifactId> </dependency> 

and created a MANIFEST file based on other MANIFEST files from other Nexus plugins. With this, I managed to start Nexus without errors, and the plugin console indicated that OBR-Plugin was activated. But there is no OBR provider available under the Create a New Hosted Repository section.

Is there a good explanation on how to install the obr plugin and where can I download the plugin with all the dependencies and the MANIFEST file?

+5
source share
1 answer

You need to install the package folder, not just the jar file. They can be downloaded in zip format from the sonata repository:

https://repository.sonatype.org

For the OBR 2.10.0-02 package, you will find it here:

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

unzip this to the plugin-repository folder and restart the nexus.

+6
source

Source: https://habr.com/ru/post/1205022/


All Articles