All Products
Document Center

Install dependencies

Last Updated: Oct 10, 2019


The Content Moderation API SDK contains a common part and a content moderation part of Alibaba Cloud Java SDK. The dependency of the common part is aliyun-java-sdk-core, and the dependency of the content moderation part is aliyun-java-sdk-green.


You can use Maven Repo to introduce the Content Moderation API SDK or manually download the SDK.jar and then add it to the project.

Maven Dependencies

  1. <dependency>
  2. <groupId>com.aliyun</groupId>
  3. <artifactId>aliyun-java-sdk-core</artifactId>
  4. <version>4.1.1</version>
  5. </dependency>
  6. <dependency>
  7. <groupId>com.aliyun</groupId>
  8. <artifactId>aliyun-java-sdk-green</artifactId>
  9. <version>3.5.0</version>
  10. </dependency>
  11. <dependency>
  12. <groupId></groupId>
  13. <artifactId>fastjson</artifactId>
  14. <version>1.2.51</version>
  15. </dependency>
  16. <dependency>
  17. <groupId>com.aliyun.oss</groupId>
  18. <artifactId>aliyun-sdk-oss</artifactId>
  19. <version>2.8.3</version>
  20. </dependency>

Download jar