Creating a Project
This section uses the Maven project tcpdemo as an example to describe how to create a project.
Procedure
- Download the SDK package dmssdk.zip.
The dmssdk.zip contains the following files:
- dms.sdk-1.0.0.jar: DMS TCP SDK package
- dms.protocol-1.0.0.jar: DMS TCP SDK package
- dms.client.properties: configuration file
- README.txt: release description file
- third_lib.zip: third-party JAR package on which DMS TCP SDK depends
- dms.sdk.api.chm: API reference
- On Eclipse (the recommended version is 4.6 or later), create a Maven project. The project name tcpdemo is used as an example.

- Click Finish.
- Import the DMS TCP SDK JAR packages.
- Right-click the new project tcpdemo, and create a libs folder.
- Copy dms.sdk-1.0.0.jar and dms.protocol-1.0.0.jar to the libs directory.
- Add the following information to the pom.xml file to import the JAR packages into the Maven repository:
<dependency> <groupId>com.huawei.middleware.dms</groupId> <artifactId>dms.protocol</artifactId> <version>1.0.0</version> <type>jar</type> <scope>system</scope> <systemPath>${basedir}/libs/dms.protocol-1.0.0.jar</systemPath> </dependency> <dependency> <groupId>com.huawei.middleware.dms</groupId> <artifactId>dms.sdk</artifactId> <version>1.0.0</version> <type>jar</type> <scope>system</scope> <systemPath>${basedir}/libs/dms.sdk-1.0.0.jar</systemPath> </dependency> - Save the pom.xml file.
- If the third-party dependency package is not automatically imported, import the package in third_lib.zip into the Maven repository by referring to Compiling the Sample Project Code.
Last Article: Preparing the Environment
Next Article: Configuring Parameters
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.