diff --git a/.gitreview b/.gitreview new file mode 100644 index 00000000..fd156fde --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=stackforge/monasca-common diff --git a/README.md b/README.md index d5736434..33cb9ebc 100644 --- a/README.md +++ b/README.md @@ -3,25 +3,24 @@ `mon-common` is a collection of sub-projects containing reusable application and platform code for building monitoring related services. ### Build Instructions -Download and do mvn install from within the java directory. +Download and do mvn install. ``` -cd java mvn clean install ``` ### Application Specific Sub-Projects -* [mon-model](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-model) - Common domain and event models for monitoring services. +* [mon-model](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-model) - Common domain and event models for monitoring services. ### Platform Sub-Projects -* [mon-dropwizard](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-dropwizard) - Utilities for building and testing dropwizard services. -* [mon-kafka](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-kafka) - Various utilities for working with Kafka. -* [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-streaming](https://git.hpcloud.net/mon/mon-common/tree/master/java/mon-streaming) - Streaming related 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-dropwizard](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-dropwizard) - Utilities for building and testing dropwizard services. +* [mon-kafka](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-kafka) - Various utilities for working with Kafka. +* [mon-persistence](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-persistence) - Persistence related infrastructure and utilities. +* [mon-service](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-service) - Simple service abstractions and utilities. +* [mon-streaming](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-streaming) - Streaming related utilities. +* [mon-testing](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-testing) - A set of testing related dependencies. +* [mon-util](https://git.hpcloud.netstackforge/monasca-common/tree/master/mon-util) - Various utilities such as for serialization, dependency injection, date and time, invocation retries, concurrency, etc. ### Deploying to Nexus diff --git a/java/pom.xml b/java/pom.xml index ac8dfe13..19fdfce7 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -23,8 +23,8 @@ - scm:git:git@github.com:hpcloud-mon/mon-common - scm:git:git@github.com:hpcloud-mon/mon-common + scm:git:git@github.com:stackforge/monasca-common + scm:git:git@github.com:stackforge/monasca-common diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..60b3a5dc --- /dev/null +++ b/pom.xml @@ -0,0 +1,41 @@ + + 4.0.0 + + com.hpcloud + mon-common + 1.0.0 + http://github.com/stackforge/monasca-common + pom + + + + ${sun.java.command} + true + UTF-8 + UTF-8 + + + + + + org.codehaus.mojo + exec-maven-plugin + 1.1.1 + + + package-execution + package + + exec + + + + + run_maven.sh + + + + + + diff --git a/run_maven.sh b/run_maven.sh new file mode 100755 index 00000000..b2b5c1c2 --- /dev/null +++ b/run_maven.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Download maven 3 if the system maven isn't maven 3 +VERSION=`mvn -v | grep "Apache Maven 3"` +if [ -z "${VERSION}" ]; then + curl http://archive.apache.org/dist/maven/binaries/apache-maven-3.2.1-bin.tar.gz > apache-maven-3.2.1-bin.tar.gz + tar -xvzf apache-maven-3.2.1-bin.tar.gz + MVN=${PWD}/apache-maven-3.2.1/bin/mvn +else + MVN=mvn +fi + +# Get rid of the java property name containing the args +shift + +# Invoke the maven 3 on the real pom.xml +( cd java; ${MVN} $* ) +rm -fr apache-maven-3.2.1*