Importing a Project
Importing External Jar Packages to the Local Maven Repository
- 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.
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot