Maven Nexus repository at OW2

Repositories

Snapshot repository:

http://repository.ow2.org/nexus/content/repositories/snapshots/

XLcloud project snapshot artifacts: http://repository.ow2.org/nexus/content/repositories/snapshots/org/ow2/xlcloud/

Staging release repository:

http://repository.ow2.org/nexus/content/repositories/releases/ - artifacts from this repository after release are pushed to Central Maven Repo.

Configuration

maven settings.xml (needed to be able to deploy snapshot and releases):

<servers>
  <server>
    <id>ow2.release</id>
    <username>xlcloud</username>
    <password>xlcloud</password>
  </server>
  <server>
    <id>ow2.snapshot</id>
    <username>xlcloud</username>
    <password>xlcloud</password>
  </server>
</servers>

GPG keys configuration:

https://docs.sonatype.org/display/Repository/How+To+Generate+PGP+Signatures+With+Maven

How to

Artifacts deployment to Nexus maven repo should be performed only by Continous Integration tool (Jenkins). We will do so, after there will be access from CI server to GIT and Nexus repo.

General instructions:
http://www.ow2.org/view/IT_Infrastructure/NexusMigrationGuide

If you want to deploy snapshot versions to snapshot repository (hosted at OW2):

  1. You need to have configured settings.xml and gpg keys as described above
  2. Your artifacts should have SNAPSHOT version in pom.xml's
  3. Type: mvn clean deploy -DskipTests=true
  4. All artifacts will be deployed at: http://repository.ow2.org/nexus/content/repositories/snapshots/

If you want to perform release (deploy NON SNAPSHOT versions to central maven repo)

  1. You need to have configured settings.xml and gpg keys as described above
  2. Your artifacts should have NON SNAPSHOT version in pom.xml's
  3. Type: mvn clean deploy -DskipTests=true -Phpc,rr,release -Dgpg.passphrase=xlcloud2012
  4. New staging repository will be created automatically at nexus.ow2.org 
  5. Your artifacts will be deployed to that new staging repository
  6. You can login into Nexus UI: http://repository.ow2.org/nexus/index.html (xlcloud/xlcloud)
  7. You can perform relase of this staging repsitory from Nexus UI (your artifacts will be checked against OW2 validation rules and pushed to Central Maven Repository)
The GPG passphrase above is for key 9077491B stored on xlcloud@toolcloud. When deploying from another location, you will need to supply the password you set for your GPG key.

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 5.4.6 - Documentation - Legal Notice

Site maintained by