Nexus Migration

MPDL

=Introduction= Due to massive performance problems of with we decided to migrate to other Repository Manager: Sonatype Nexus.

= Nexus Sonatype =
 * Current mpdl instance: http://archiva.mpdl.mpg.de/nexus/index.html
 * Why Nexus?
 * Archiva vs. Nexus
 * Nexus SSL support
 * Nexus OSS vs.commercial; matrix

= Advantages = MPDL feasible aspects
 * Stability
 * Better performance
 * More internal artifacts can be managed
 * Advanced Web-GUI
 * More administration possibilities
 * Advanced SSL support
 * Easy migration from Archiva
 * Proxy for Eclipse update sites
 * Repository groups concept

= What should be set up =

POMs
To be added centrally
 * [[media:Common_services_pom.xml|common_services/pom.xml]]
 * [[media:pubman_pom.xml|pubman/pom.xml]]

settings.xml
To be added added by developers on local PCs:

+ nexus : nexus http://rd.mpdl.mpg.de/nexus/content/groups/public * - archiva : archiva.default http://archiva.mpdl.mpg.de/archiva/repository/internal central - archiva deployment.webdav your_name your_passwd snapshots.webdav your_name your_passwd + nexus snapshots your_nexus_name your_nexus_passwd releases your_nexus_name your_nexus_passwd

new Nexus user accounts
and  should be created in Nexus via User Admin interface

Continuum
continuum should have its own account in Nexus, credentials should be written in /root/.m2/settings.xml of maven instance on continuum host's

= Migration MPDL Artifact Repositories from Archiva to Nexus (all actions) =
 * go through nexus migration doku
 * create nexus users for developers
 * setup settings.xml by all developers as described above
 * setup settings.xml for continuum
 * stop archiva
 * stop continuum
 * copy artifacts repositories in fs on from the archiva storage to nexus storage
 * paths
 * reindex nexus repos with web gui
 * nexus changes in [common_service|pubman]/pom.xml
 * on developer PCs
 * mvn clean install of common_service and pubman
 * start archiva (needed for VIRR and FACES, see)

= Migration MPDL Artifact Repositories from Archiva to Nexus (developer PCs) =
 * change user password in nexus user account
 * http://rd.mpdl.mpg.de/nexus -> Log In
 * Forgot your username or password? -> Click password
 * Enter your old_archiva_user_name and your email
 * Reset Password
 * Check email box and login with nexus generated password
 * Change password again with Security->Change Password (up to you)
 * setup settings.xml as described above
 * put your new password in element
 * mvn clean install of common_service and pubman
 * mvn clean install of common_service and pubman

= TODO =
 * migrate VIRR and FACES to Nexus
 * routing