From b86ad7c122e53710115835419c7f2835a84211d8 Mon Sep 17 00:00:00 2001 From: Jonathan Halterman Date: Thu, 6 Mar 2014 15:35:43 -0800 Subject: [PATCH] Updated pom and readme to do nexus deploys --- README.md | 10 +++++++++- java/pom.xml | 45 +++++++++++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 57c63d7d..cb9cb495 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,12 @@ * [mon-persistence](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-persistence) - Persistence related infrastructure and utilities. * [mon-service](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-service) - Simple service abstractions and utilities. * [mon-testing](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-testing) - A set of testing related dependencies. -* [mon-util](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-util) - Various utilities such as for serialization, dependency injection, date and time, invocation retries, concurrency, etc. \ No newline at end of file +* [mon-util](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-util) - Various utilities such as for serialization, dependency injection, date and time, invocation retries, concurrency, etc. + +### Deploying to Nexus + +To deploy to nexus, just run the command below, inserting a version number that is greater than the current nexus version (this command is usually performed by Jenkins): + +``` +mvn deploy -DBUILD_NUM=[verion_number] +``` \ No newline at end of file diff --git a/java/pom.xml b/java/pom.xml index 35283e8b..70568a55 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -16,7 +16,15 @@ 1.0.0 ${versionNumber}-SNAPSHOT - + + + http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots/ + http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases/ + nexus + nexus + ${snapshotRepoId} + ${snapshotRepoUrl} + true UTF-8 UTF-8 @@ -41,32 +49,30 @@ - nexus releases - http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases + ps-snapshots + ${snapshotRepoUrl} - nexus 3rd party + ps-releases + ${releaseRepoUrl} + + + ps-3rd-party http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/thirdparty - - nexus-snapshots - nexus snapshots - http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots - - - nexus - Internal Releases - http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases - - nexus - Snapshots - false - http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots + ${snapshotRepoId} + Snapshots Repo + ${snapshotRepoUrl} + + ${releaseRepoId} + Release Repo + ${releaseRepoUrl} + @@ -78,6 +84,9 @@ + ${releaseRepoId} + ${releaseRepoUrl} + true ${versionNumber}.${BUILD_NUM}