You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by if...@apache.org on 2022/05/05 09:11:07 UTC

[cassandra-harry] 01/02: disable harry-integration local (in-jvm) module for standalone mode

This is an automated email from the ASF dual-hosted git repository.

ifesdjeen pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-harry.git

commit dee239e915b13d778b9f0eb5b121ed1cb4b174eb
Author: Amos Kong <am...@scylladb.com>
AuthorDate: Tue Jan 19 21:55:37 2021 +0800

    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 <am...@scylladb.com>
---
 Makefile |  4 ++++
 pom.xml  | 27 ++++++++++++++++++++-------
 2 files changed, 24 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 86d4b28..c43804c 100644
--- a/Makefile
+++ b/Makefile
@@ -28,3 +28,7 @@ run: img
 
 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>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org