disable harry-integration local (in-jvm) module for standalone mode
In case we don't need the docker integration of `harry-integration`
and we are using an external running cassandra
Signed-off-by: Amos Kong <amos@scylladb.com>
diff --git a/Makefile b/Makefile
index 86d4b28..c43804c 100644
--- a/Makefile
+++ b/Makefile
@@ -28,3 +28,7 @@
run-last:
docker run -v `pwd`/shared:/shared -it ${DOCKER_REPO}:latest-local
+
+standalone:
+ rm -fr shared/*
+ mvn clean && mvn package -DskipTests -P standalone
diff --git a/pom.xml b/pom.xml
index 5a34eac..c044783 100755
--- a/pom.xml
+++ b/pom.xml
@@ -41,13 +41,26 @@
<version>0.0.2-SNAPSHOT</version>
<name>Harry</name>
-
- <modules>
- <module>harry-core</module>
- <module>harry-integration</module>
- <module>harry-integration-external</module>
- </modules>
-
+ <profiles>
+ <profile>
+ <id>default</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>harry-core</module>
+ <module>harry-integration</module>
+ <module>harry-integration-external</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>standalone</id>
+ <modules>
+ <module>harry-core</module>
+ <module>harry-integration-external</module>
+ </modules>
+ </profile>
+ </profiles>
<properties>
<skipTests>true</skipTests>
<javac.target>1.8</javac.target>