Skip to content

Commit 85691f3

Browse files
committed
由春长发起的IMM SDK自动发布, BUILD_ID=311, 版本号:1.2.0
发布日志: 1, Support sts token
1 parent 685232f commit 85691f3

File tree

153 files changed

+13430
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+13430
-0
lines changed

aliyun-java-sdk-imm/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.idea
2+
config_test.properties
3+
aliyun-java-sdk-imm.iml
4+
.DS_Store
5+
java/io
6+
.project
7+
.classpath
8+
.settings
9+
src/test/resources/config_test.properties
10+
11+
archive
12+
archive.zip

aliyun-java-sdk-imm/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2018-02-27 Version: 1.2.0
2+
1, Support sts token
3+

aliyun-java-sdk-imm/Readme.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# aliyun-java-sdk-imm
2+
3+
4+
## 1. Usage
5+
6+
### (1) 将下面的依赖加入 pom.xml
7+
8+
```xml
9+
<dependency>
10+
<groupId>com.aliyun</groupId>
11+
<artifactId>aliyun-java-sdk-core</artifactId>
12+
<optional>true</optional>
13+
<version>3.5.1</version>
14+
</dependency>
15+
16+
<dependency>
17+
<groupId>com.aliyun</groupId>
18+
<artifactId>aliyun-java-sdk-imm</artifactId>
19+
<optional>true</optional>
20+
<version>1.2.0</version>
21+
</dependency>
22+
```
23+
24+
### (2) 用法
25+
26+
构造:
27+
28+
```
29+
IMMClient client = new IMMClient("cn-shanghai", accessKeyId, accessKeySecret);
30+
```
31+
32+
> client 的 3 种用法:
33+
34+
第1种:
35+
36+
```
37+
ListProjectsRequest req = new ListProjectsRequest();
38+
39+
ListProjectsResponse res = client.getResponse(req);
40+
```
41+
42+
第2种:
43+
44+
```
45+
ListProjectsRequest req = new ListProjectsRequest();
46+
47+
String resultJson = client.getResponseString(req);
48+
```
49+
50+
第3种(适合逻辑在前端的 web 服务):
51+
52+
```
53+
Map<String, String> map = new HashMap<String,String>();
54+
55+
map.put("Action","ListProjects");
56+
57+
String resultJson = client.getResponseString(map);
58+
```
59+
60+
各种 Action,请参看[API文档](https://help.aliyun.com/document_detail/63881.html)
61+

aliyun-java-sdk-imm/pom.xml

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2+
<modelVersion>4.0.0</modelVersion>
3+
<groupId>com.aliyun</groupId>
4+
<artifactId>aliyun-java-sdk-imm</artifactId>
5+
<packaging>jar</packaging>
6+
<version>1.2.0</version>
7+
<name>aliyun-java-sdk-imm</name>
8+
<url>http://www.aliyun.com</url>
9+
<description>Aliyun Open API SDK for Java
10+
11+
Copyright (C) Alibaba Cloud Computing
12+
All rights reserved.
13+
14+
版权所有 (C)阿里云计算有限公司
15+
16+
http://www.aliyun.com</description>
17+
18+
<distributionManagement>
19+
<snapshotRepository>
20+
<id>sonatype-nexus-snapshots</id>
21+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
22+
</snapshotRepository>
23+
<repository>
24+
<id>sonatype-nexus-staging</id>
25+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
26+
</repository>
27+
</distributionManagement>
28+
29+
<dependencies>
30+
<dependency>
31+
<groupId>com.aliyun</groupId>
32+
<artifactId>aliyun-java-sdk-core</artifactId>
33+
<optional>true</optional>
34+
<version>3.5.1</version>
35+
</dependency>
36+
37+
<dependency>
38+
<groupId>junit</groupId>
39+
<artifactId>junit</artifactId>
40+
<version>4.10</version>
41+
<scope>test</scope>
42+
</dependency>
43+
</dependencies>
44+
<licenses>
45+
<license>
46+
<name></name>
47+
<url></url>
48+
<distribution></distribution>
49+
</license>
50+
</licenses>
51+
<scm>
52+
<url></url>
53+
<connection></connection>
54+
</scm>
55+
<developers>
56+
<developer>
57+
<id>aliyunproducts</id>
58+
<name>Aliyun SDK</name>
59+
<email>aliyunsdk@aliyun.com</email>
60+
</developer>
61+
</developers>
62+
<build>
63+
<testResources>
64+
<testResource>
65+
<directory>src/test/resources</directory>
66+
<targetPath>resources</targetPath>
67+
<filtering>true</filtering>
68+
</testResource>
69+
</testResources>
70+
71+
<plugins>
72+
73+
<plugin>
74+
<groupId>org.apache.maven.plugins</groupId>
75+
<artifactId>maven-surefire-plugin</artifactId>
76+
<version>2.10</version>
77+
<configuration>
78+
<additionalClasspathElements>
79+
<additionalClasspathElement>
80+
${basedir}/target/test-classes
81+
</additionalClasspathElement>
82+
</additionalClasspathElements>
83+
<includes>
84+
<include>**/imm/test/v20170906/ft/**/*.java</include>
85+
86+
</includes>
87+
<!--<excludes>-->
88+
<!--<exclude>**/imm/test/v20170906/ft/ClusterInstanceTest.java</exclude>-->
89+
<!--</excludes>-->
90+
</configuration>
91+
</plugin>
92+
93+
<!--代码覆盖率-->
94+
<plugin>
95+
<groupId>org.codehaus.mojo</groupId>
96+
<artifactId>cobertura-maven-plugin</artifactId>
97+
<version>2.7</version>
98+
<configuration>
99+
<check>
100+
<branchRate>0</branchRate>
101+
<lineRate>0</lineRate>
102+
<haltOnFailure>true</haltOnFailure>
103+
<totalBranchRate>0</totalBranchRate>
104+
<totalLineRate>0</totalLineRate>
105+
<packageLineRate>0</packageLineRate>
106+
<packageBranchRate>0</packageBranchRate>
107+
<regexes>
108+
<regex>
109+
<pattern>com.aliyuncs.imm.*</pattern>
110+
<branchRate>0</branchRate>
111+
<lineRate>0</lineRate>
112+
</regex>
113+
</regexes>
114+
</check>
115+
</configuration>
116+
<executions>
117+
<execution>
118+
<goals>
119+
<goal>clean</goal>
120+
<goal>check</goal>
121+
</goals>
122+
</execution>
123+
</executions>
124+
</plugin>
125+
126+
127+
<plugin>
128+
<artifactId>maven-compiler-plugin</artifactId>
129+
<version>2.3.2</version>
130+
<configuration>
131+
<source>1.6</source>
132+
<target>1.6</target>
133+
<encoding>UTF-8</encoding>
134+
</configuration>
135+
</plugin>
136+
<plugin>
137+
<groupId>org.apache.maven.plugins</groupId>
138+
<artifactId>maven-jar-plugin</artifactId>
139+
<version>2.3.2</version>
140+
<configuration>
141+
<excludes>
142+
</excludes>
143+
</configuration>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-surefire-plugin</artifactId>
148+
<version>2.10</version>
149+
<configuration>
150+
<argLine>-Dfile.encoding=UTF-8</argLine>
151+
</configuration>
152+
</plugin>
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-javadoc-plugin</artifactId>
156+
<version>2.8</version>
157+
<configuration>
158+
<encoding>UTF-8</encoding>
159+
</configuration>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.apache.maven.plugins</groupId>
163+
<artifactId>maven-gpg-plugin</artifactId>
164+
<version>1.5</version>
165+
<executions>
166+
<execution>
167+
<id>sign-artifacts</id>
168+
<phase>verify</phase>
169+
<goals>
170+
<goal>sign</goal>
171+
</goals>
172+
</execution>
173+
</executions>
174+
</plugin>
175+
<plugin>
176+
<groupId>org.sonatype.plugins</groupId>
177+
<artifactId>nexus-staging-maven-plugin</artifactId>
178+
<version>1.6.3</version>
179+
<extensions>true</extensions>
180+
<configuration>
181+
<serverId>sonatype-nexus-staging</serverId>
182+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
183+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
184+
</configuration>
185+
</plugin>
186+
</plugins>
187+
</build>
188+
</project>

0 commit comments

Comments
 (0)