Repository Management with Nexus
Support for custom metadata is part of Nexus Professional. You can view, edit and search for additional metadata associated to any artifact in your Nexus repositories.
The features for custom metadata usage need to be activated by adding and enabling the Custom Metadata capability as described in Section 6.6, “Accessing and Configuring Capabilities”.
Prior to Nexus 2.7 custom metadata support was an optional plugin that needed to be installed following the instructions in Section 19.1, “Managing Nexus Plugins”. The directory containing the plugin code is called nexus-custom-metadata-plugin-X.Y.Z. Install the plugin
Security privileges allow you to define read only as well as write acces for custom metadata as well as grant or disallow access.
When viewing a specific artifact from browsing repository storage or a repository index or from a search, the Artifact Metadata tab displays the interface shown in Figure 5.7, “Viewing Artifact Metadata”.
Artifact metadata consists of a key, a value, and a namespace.
Existing metadata from an artifact’s POM is given a
namespace, and custom attributes are stored under the
To add a custom attribute, click on an artifact in Nexus, and select the Artifact Metadata tab. Click on the Add… button there and a new row will be inserted into the list of attributes. Supply a Key and Value and click the Save button to update the artifact’s metadata. Figure 5.8, “Editing Artifact Metadata” shows the Artifact Metadata panel with two custom attributes: "approvedBy" and "approved".