Updated pom and readme to do nexus deploys

This commit is contained in:
Jonathan Halterman 2014-03-06 15:35:43 -08:00
parent 453350ca7f
commit b86ad7c122
2 changed files with 36 additions and 19 deletions

View File

@ -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.
* [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]
```

View File

@ -16,7 +16,15 @@
<!-- Versioning -->
<versionNumber>1.0.0</versionNumber>
<computedVersion>${versionNumber}-SNAPSHOT</computedVersion>
<!-- Auto versioning and deployment -->
<snapshotRepoUrl>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots/</snapshotRepoUrl>
<releaseRepoUrl>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases/</releaseRepoUrl>
<snapshotRepoId>nexus</snapshotRepoId>
<releaseRepoId>nexus</releaseRepoId>
<deployRepoId>${snapshotRepoId}</deployRepoId>
<deployRepoUrl>${snapshotRepoUrl}</deployRepoUrl>
<skipITs>true</skipITs>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@ -41,32 +49,30 @@
<repositories>
<repository>
<id>nexus releases</id>
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases</url>
<id>ps-snapshots</id>
<url>${snapshotRepoUrl}</url>
</repository>
<repository>
<id>nexus 3rd party</id>
<id>ps-releases</id>
<url>${releaseRepoUrl}</url>
</repository>
<repository>
<id>ps-3rd-party</id>
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/thirdparty</url>
</repository>
<repository>
<id>nexus-snapshots</id>
<name>nexus snapshots</name>
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>nexus</id>
<name>Internal Releases</name>
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/releases</url>
</repository>
<snapshotRepository>
<id>nexus</id>
<name>Snapshots</name>
<uniqueVersion>false</uniqueVersion>
<url>http://nexus.paas.hpcloud.net:8081/nexus/content/repositories/snapshots</url>
<id>${snapshotRepoId}</id>
<name>Snapshots Repo</name>
<url>${snapshotRepoUrl}</url>
</snapshotRepository>
<repository>
<id>${releaseRepoId}</id>
<name>Release Repo</name>
<url>${releaseRepoUrl}</url>
</repository>
</distributionManagement>
<profiles>
@ -78,6 +84,9 @@
</property>
</activation>
<properties>
<deployRepoId>${releaseRepoId}</deployRepoId>
<deployRepoUrl>${releaseRepoUrl}</deployRepoUrl>
<isRelease>true</isRelease>
<computedVersion>${versionNumber}.${BUILD_NUM}</computedVersion>
</properties>
</profile>