- OSS SDK for Java V2(alibabacloud-oss-java-sdk-v2) has been released, it is a major rewrite of OSS SDK for Java V1 (aliyun-oss-java-sdk).
- V2 simplifies underlying operations such as identification authentication, automatic retry of failed requests, and error handling. It provides flexible parameter configuration methods and rich advanced operations, such as paginator, transmission managers, and File-like operations. This comprehensively improves development efficiency and experience.
The Aliyun OSS SDK for Java enables Java developers to easily work with Aliyun OSS. You can get started in minutes using Maven or by downloading a single zip file.
- Java 1.6 or later
- Maven
The recommended way to use the Aliyun OSS SDK for Java in your project is to consume it from Maven. Import as follows:
<dependency>
<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>3.18.4</version>
</dependency>
See the Setup section of the SDK Reference for more information about installing the SDK through other means.
Once you check out the code from GitHub, you can build it using Maven. Use the following command to build:
mvn clean install -DskipTests