Add instructions for running nexus locally.
This commit is contained in:
parent
f2c0668f1c
commit
775610ce95
|
@ -1,6 +1,29 @@
|
||||||
## Developer instructions
|
## 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
|
||||||
|
<settings>
|
||||||
|
<servers>
|
||||||
|
<server>
|
||||||
|
<id>nexus-local</id>
|
||||||
|
<username>admin</username>
|
||||||
|
<password>admin123</password>
|
||||||
|
</server>
|
||||||
|
</servers>
|
||||||
|
</settings>
|
||||||
|
```
|
||||||
|
|
||||||
|
Perform the release process as described below.
|
||||||
|
|
||||||
|
|
||||||
### How to release a new version
|
### How to release a new version
|
||||||
|
|
4
pom.xml
4
pom.xml
|
@ -51,11 +51,11 @@
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<snapshotRepository>
|
<snapshotRepository>
|
||||||
<id>nexus</id>
|
<id>nexus-local</id>
|
||||||
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
|
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
|
||||||
</snapshotRepository>
|
</snapshotRepository>
|
||||||
<repository>
|
<repository>
|
||||||
<id>nexus</id>
|
<id>nexus-local</id>
|
||||||
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
|
<url>http://localhost:8081/nexus/content/repositories/snapshots</url>
|
||||||
</repository>
|
</repository>
|
||||||
<!--<snapshotRepository>-->
|
<!--<snapshotRepository>-->
|
||||||
|
|
Loading…
Reference in New Issue