Nexus Guide

Setup Staging

Staging is necessary to ensure that deployed artifacts are acceptable for central synchronization.

Administrator must respect the name conventions when setting up staging.

Repository target

An administrator has to create a new Repository Target (click on the 'Add' green button).
This acts as a filter to detect when an artifact is uploaded to which project it belongs.
In our case, the pattern reflects the main groupId of the project (should be of the form 'org.ow2.<project>').


  • name : OW2 Chameleon (Maven2)
  • repo type : maven2
  • pattern: .*/org/ow2/chameleon/.*


Staging Profile

A Staging Profile is the central configuration point of staging repositories.
It mainly answers theses questions:

  • In which hosted repository the artifacts will finally be placed ?
  • Will the profile accept deploy (from maven) and/or upload (from UI) artifacts ?
  • What are the rules to be checked on the artifacts before promoting the repository ?

Click on the 'Add' green button and select *Staging Profile*.


  • Profile Name : OW2 Chameleon
  • Staging Mode : Deploy
  • Template: Maven2
  • Repository Target : OW2 Chameleon (Maven2)
  • Release Repository : Releases
  • Target Groups: Public Repositories
  • Close Repository Staging RuleSet : Closing RuleSet
Configure the notifications accordingly to the project's convenience.


Nexus can map a role on an LDAP group.
This is particularily handy when we want to define a role for all the committers of a project (each GForge project having a unique LDAP group).
Then it will be possible to gives additionnal permissions/roles to this new role.

Open the *Roles* page (in the *Security* section on the left).
Click on the 'Add' green button and select *External Role Mapping*.
The specified ID *must be* the name of the LDAP role (usually the GForge project's unix ID).


  • Role Id : chameleon
  • Name : OW2 Chameleon (chameleon)
  • Description : External mapping for chameleon (LDAP)

Additional Roles

If left 'as is', the new role cannot do anything interesting, extra roles have to be assigned:

  • Nexus Developer role
  • OW2 Upload to Snapshot Role
  • Staging: deployer (OW2 Chameleon)
  • UI: Staging Repositories
  • Repo: All Repositories (Read)
  • Staging: Profile OW2 Chameleon (promote)

First Release


This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.4.4 - Documentation
Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice