Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install obr plugin in Nexus

Tags:

osgi

nexus

obr

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

The OBR-plugin seems not to be shipped in the Standard Nexus OSS. I could find the 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 shipped with Nexus, every plugin seems to be in a folder containing the jar,Manifestfile (under META-INF) and required dependencies.

I placed the jar in the folder plugin-repository/nexus-obr-plugin-2.10.0-02/nexus-obr-plugin-2.10.0-02.jar. Downloaded required dependecies 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 states that the OBR-Plugin is Activated. But there is no OBR Provider available under 'Create new Hosted repository'.

Is there a good explanation how to install the obr plugin and where can the plugin with all dependencies and MANIFEST File be downloaded?

like image 911
reikermann Avatar asked Oct 19 '14 16:10

reikermann


People also ask

How do I add a plugin to my Nexus repository?

Plugins supplied by third parties or ones that you authored are installed by copying the folder with the plugin code into sonatype-work/nexus/plugin-repository or extracting the plugin bundle zip file in that folder. After a restart of the repository manager, the new plugins will be active and ready to use.

Can Nexus 2 be migrated to Nexus 3 True or false?

Yes it supports this.

What is Nexus OSS repository?

Nexus Repository OSS is an open source repository that supports many artifact formats, including Docker, Java™, and npm. With the Nexus tool integration, pipelines in your toolchain can publish and retrieve versioned apps and their dependencies by using central repositories that are accessible from other environments.

What is sonatype work directory?

The Sonatype Work directory sonatype-work is created as a sibling to the nexus application directory, and the location of this directory can be configured via the nexus. properties file which is described in Configuration Directory. This directory contains a log of all IP addresses accessing the repository manager.


1 Answers

You need to install the bundle folder rather than just the jar file. These can be downloaded in zip format from the sonatype repository:

https://repository.sonatype.org

For the 2.10.0-02 OBR bundle you'll 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 that to the plugin-repository folder and restart nexus.

like image 96
Nick Wilson Avatar answered Sep 30 '22 12:09

Nick Wilson