From a463c1b2de50a3f0eea8de8ea998fed515015e9b Mon Sep 17 00:00:00 2001 From: Anqi Date: Wed, 22 Feb 2023 11:37:22 +0800 Subject: [PATCH 1/2] use provided for dependency scope --- nebula-spark-common/pom.xml | 4 ++++ nebula-spark-connector/pom.xml | 10 ++++++++++ nebula-spark-connector_2.2/pom.xml | 10 ++++++++++ pom.xml | 1 + 4 files changed, 25 insertions(+) diff --git a/nebula-spark-common/pom.xml b/nebula-spark-common/pom.xml index 6a5121a7..9eea5315 100644 --- a/nebula-spark-common/pom.xml +++ b/nebula-spark-common/pom.xml @@ -30,16 +30,19 @@ org.apache.spark spark-core_${scala.binary.version} ${spark.version} + provided org.apache.spark spark-sql_${scala.binary.version} ${spark.version} + provided org.apache.spark spark-graphx_${scala.binary.version} ${spark.version} + provided com.vesoft @@ -56,6 +59,7 @@ org.scalatest scalatest-funsuite_2.11 ${scalatest.version} + test diff --git a/nebula-spark-connector/pom.xml b/nebula-spark-connector/pom.xml index 61d3c79e..08a65f42 100644 --- a/nebula-spark-connector/pom.xml +++ b/nebula-spark-connector/pom.xml @@ -23,16 +23,19 @@ org.apache.spark spark-core_2.11 ${spark2.4.version} + provided org.apache.spark spark-sql_2.11 ${spark2.4.version} + provided org.apache.spark spark-graphx_2.11 ${spark2.4.version} + provided @@ -40,6 +43,13 @@ nebula-spark-common ${project.version} + + + org.scalatest + scalatest-funsuite_2.11 + ${scalatest.version} + test + diff --git a/nebula-spark-connector_2.2/pom.xml b/nebula-spark-connector_2.2/pom.xml index 23c7331e..26e46cc3 100644 --- a/nebula-spark-connector_2.2/pom.xml +++ b/nebula-spark-connector_2.2/pom.xml @@ -23,22 +23,32 @@ org.apache.spark spark-core_2.11 ${spark2.2.version} + provided org.apache.spark spark-sql_2.11 ${spark2.2.version} + provided org.apache.spark spark-graphx_2.11 ${spark2.2.version} + provided com.vesoft nebula-spark-common ${project.version} + + + org.scalatest + scalatest-funsuite_2.11 + ${scalatest.version} + test + diff --git a/pom.xml b/pom.xml index 3f1e8f8a..e0c2e1df 100644 --- a/pom.xml +++ b/pom.xml @@ -11,6 +11,7 @@ UTF-8 + 3.2.3 From c5917fa54911355da7049063ee86f7730f8d7cd7 Mon Sep 17 00:00:00 2001 From: Anqi Date: Wed, 22 Feb 2023 11:52:07 +0800 Subject: [PATCH 2/2] add graphx dep for example --- example/pom.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/example/pom.xml b/example/pom.xml index 63ee51d7..6bc48864 100644 --- a/example/pom.xml +++ b/example/pom.xml @@ -151,6 +151,11 @@ spark-sql_2.11 2.4.4 + + org.apache.spark + spark-graphx_2.11 + 2.4.4 + com.vesoft