Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wey-gu/e87140ab8e622ba6b024dfe88ffbef34 to your computer and use it in GitHub Desktop.
Save wey-gu/e87140ab8e622ba6b024dfe88ffbef34 to your computer and use it in GitHub Desktop.
Build nebula graph spark connector with your downstream local build of nebula java client

Compile your nebula-java client with modifications

cd nebula-java
mvn -B package -Dmaven.test.skip  -Dmaven.javadoc.skip=true
ls client/target/client-*-SNAPSHOT.jar

Compile your nebula-spark-connector.

Make changes on nebula-spark-connector/pom.xml

@@ -42,6 +42,8 @@
             <groupId>com.vesoft</groupId>
             <artifactId>client</artifactId>
             <version>${nebula.version}</version>
+	    <scope>system</scope>
+	    <systemPath>/root/nebula-java/client/target/client-3.0-SNAPSHOT.jar</systemPath>
         </dependency>
         <dependency>
             <artifactId>commons-codec</artifactId>
@@ -214,6 +216,11 @@
                <groupId>net.alchim31.maven</groupId>
                <artifactId>scala-maven-plugin</artifactId>
                <version>3.2.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>testCompile</goal>
                        </goals>
+                        <configuration>
+                            <args>
+                                <arg>-nobootcp</arg>
+                            </args>
+                        </configuration>
                     </execution>
                     <execution>
                         <id>Scaladoc</id>
mvn -B package -Dmaven.test.skip  -Dmaven.javadoc.skip=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment