Help Center/ Graph Engine Service/ devg/ Importing a Project
Updated on 2022-11-14 GMT+08:00

Importing a Project

Importing External Jar Packages to the Local Maven Repository

  1. Decompress huaweicloud-ges-sdk-java-xxx.zip, open it, go to the maven-install directory, and execute the ges-sdk-java-maven-install.bat or ges-sdk-java-maven-install.sh file to install sdk-common-xxx.jar, ges-sdk-xxx.jar, graph-sdk-xxx.jar, cypher-jdbc-driver-xxx.jar, and java-sdk-core-xxx.jar to the local Maven repository.
  2. Create a Maven project and add the following dependency to the POM file.
    <dependency>
        <groupId>com.huawei.ges</groupId>
        <artifactId>ges-sdk</artifactId>
        <version>xxx</version>  // Enter the version number of the current management plane SDK.
    </dependency>
     
    <dependency>
        <groupId>com.huawei.ges.graph</groupId>
        <artifactId>graph-sdk</artifactId>
        <version>xxx</version>  // Enter the version number of the current service plane SDK.
    </dependency>
    <!-- Import the dependency if the Cypher JDBC driver is used.-->
    <dependency>
        <groupId>com.huawei.ges</groupId>
        <artifactId>cypher-jdbc-driver</artifactId>
       <version>xxx</version>  // Enter the version number of the Cypher JDBC driver.
    </dependency>
    

Importing the JAR Package from the Local PC

Create a project, decompress the huaweicloud-ges-sdk-java-xxx.zip package, open it, and import ges-sdk-xxx-jar-with-dependencies.jar and graph-sdk-xxx-jar-with-dependencies.jar files in the huaweicloud-ges-sdk-java-xxx directory to the project or import all packages in the ges-sdk-xxx.jar, graph-sdk-xxx.jar, cypher-jdbc-driver-xxx.jar, and libs directories to the project.