- Download source codes from github ,build and install the jars into local maven repository (or deploy to a central Maven repository). github link: https://github.com/XiaoMi/galaxy-fds-sdk-java.git
mvn clean package install
- If use Maven to management, users can download the latest jar for maven central repository.The latest version is 1.5.0.
- Import the above jars into the project classpath or add the following dependency if your project is managed with Maven.
<dependency>
<groupId>com.xiaomi.infra.galaxy</groupId>
<artifactId>galaxy-fds-sdk-java</artifactId>
<version>3.0.41</version>
</dependency>
- Add the jar to classpath.
-
Visit https://dev.mi.com/keycenter and edit galaxy-fds-sdk-java/src/test/resources/test.properties like this:
-
Run galaxy-fds-sdk-java/src/test/java/com/xiaomi/infra/galaxy/fds/client/TestGalaxyFDSClient.java as unit test.