From 775610ce95de19403d0f84355ba5440657598ec6 Mon Sep 17 00:00:00 2001 From: Tyler Benson Date: Mon, 3 Jul 2017 10:23:46 -0700 Subject: [PATCH] Add instructions for running nexus locally. --- DEVELOPERS.md | 25 ++++++++++++++++++++++++- pom.xml | 4 ++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index 639a5fdc05..deca81612f 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -1,6 +1,29 @@ ## Developer instructions -* How to release a new version +### Testing a release locally +Run nexus locally (assuming you have docker running locally): + +```bash +docker run -d -p 8081:8081 --name nexus sonatype/nexus +``` + +Configure the `distributionManagement` section in the root `pom.xml` to point to the repo on localhost. + +Add/update your `~/.m2/settings.xml` with the following config block: + +```xml + + + + nexus-local + admin + admin123 + + + +``` + +Perform the release process as described below. ### How to release a new version diff --git a/pom.xml b/pom.xml index 0a513e5a27..9da053e746 100644 --- a/pom.xml +++ b/pom.xml @@ -51,11 +51,11 @@ - nexus + nexus-local http://localhost:8081/nexus/content/repositories/snapshots - nexus + nexus-local http://localhost:8081/nexus/content/repositories/snapshots