diff --git a/.gitignore b/.gitignore index 48612b14..65ce1101 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ target *.iml .idea *.*~ +src-gen \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 1bfdecd1..3a677e49 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,20 +3,3 @@ jdk: - oraclejdk8 sudo: true script: mvn clean install -before_install: -- sudo apt-get update -qq -- sudo apt-get install -y wget tar make openssl -install: -- mkdir tools -- cd tools -- wget http://download.geteventstore.com/binaries/EventStore-OSS-Ubuntu-14.04-v3.8.1.tar.gz -- tar -xzf EventStore-OSS-Ubuntu-14.04-v3.8.1.tar.gz -- cd EventStore-OSS-Ubuntu-14.04-v3.8.1 -- openssl req -x509 -sha256 -nodes -days 365 -subj "/CN=test.com" -newkey rsa:2048 -keyout domain.pem -out domain.csr -- openssl pkcs12 -passout "pass:" -export -inkey domain.pem -in domain.csr -out domain.p12 -- ./run-node.sh --mem-db --stats-period-sec 3000 --ext-tcp-port 7773 --ext-secure-tcp-port 7779 --certificate-file domain.p12 > /dev/null & -- cd ../ -- wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz -- tar -xzf protobuf-2.6.1.tar.gz -- cd protobuf-2.6.1 && ./configure --prefix=/usr && make > /dev/null 2>&1 && sudo make install > /dev/null 2>&1 -- cd ../../ \ No newline at end of file diff --git a/pom.xml b/pom.xml index 98d43b23..30134cee 100644 --- a/pom.xml +++ b/pom.xml @@ -91,6 +91,13 @@ + + + kr.motd.maven + os-maven-plugin + 1.3.0.Final + + org.apache.maven.plugins @@ -130,30 +137,25 @@ - - org.apache.maven.plugins - maven-antrun-plugin - 1.8 - - - compile-proto - generate-sources - - run - - - - - - - - - - - - - - + + org.xolstice.maven.plugins + protobuf-maven-plugin + 0.5.0 + true + + + + compile + + + false + ${project.basedir}/src/main/protobuf + ${project.basedir}/src-gen/main/protobuf + com.google.protobuf:protoc:2.6.1:exe:${os.detected.classifier} + + + + org.codehaus.mojo build-helper-maven-plugin @@ -166,7 +168,7 @@ - ${project.build.directory}/generated-sources/protobuf + ${project.basedir}/src-gen/main/protobuf @@ -200,6 +202,31 @@ + + org.fuin.esmp + es-maven-plugin + 0.4.1 + + + + download + certificate + start + stop + + + + + ${project.build.directory}/domain.p12 + + --mem-db=TRUE + --stats-period-sec=3000 + --ext-tcp-port=7773 + --ext-secure-tcp-port=7779 + --certificate-file=${project.build.directory}/domain.p12 + + +