Skip to content

Commit 0c4acc9

Browse files
committed
add java sdk
1 parent e285233 commit 0c4acc9

File tree

180 files changed

+50300
-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.

180 files changed

+50300
-0
lines changed

pom.xml

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<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">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>com.aliyun.openservices</groupId>
6+
<artifactId>ots-public</artifactId>
7+
<version>2.2.4</version>
8+
<packaging>jar</packaging>
9+
<name>Aliyun Open Services SDK for Java</name>
10+
<url>http://www.aliyun.com</url>
11+
<description>Aliyun Open Services SDK for Java Copyright (C) Alibaba Cloud Computing All rights reserved. 版权所有 (C)阿里云计算有限公司 http://www.aliyun.com</description>
12+
13+
<licenses>
14+
<license>
15+
<name></name>
16+
<url></url>
17+
<distribution></distribution>
18+
</license>
19+
</licenses>
20+
<scm>
21+
<url></url>
22+
<connection></connection>
23+
</scm>
24+
<developers>
25+
<developer>
26+
<id>aliyunproducts</id>
27+
<name>Aliyun SDK</name>
28+
<email>aliyunsdk@aliyun.com</email>
29+
</developer>
30+
</developers>
31+
32+
<distributionManagement>
33+
<snapshotRepository>
34+
<id>sonatype-nexus-snapshots</id>
35+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
36+
</snapshotRepository>
37+
<repository>
38+
<id>sonatype-nexus-staging</id>
39+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
40+
</repository>
41+
</distributionManagement>
42+
43+
44+
<dependencies>
45+
<dependency>
46+
<groupId>junit</groupId>
47+
<artifactId>junit</artifactId>
48+
<version>4.10</version>
49+
<scope>test</scope>
50+
</dependency>
51+
<dependency>
52+
<groupId>com.google.protobuf</groupId>
53+
<artifactId>protobuf-java</artifactId>
54+
<version>2.4.1</version>
55+
</dependency>
56+
<dependency>
57+
<groupId>org.apache.httpcomponents</groupId>
58+
<artifactId>httpasyncclient</artifactId>
59+
<version>4.0.2</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>joda-time</groupId>
63+
<artifactId>joda-time</artifactId>
64+
<version>2.9.1</version>
65+
</dependency>
66+
<dependency>
67+
<groupId>org.apache.logging.log4j</groupId>
68+
<artifactId>log4j-api</artifactId>
69+
<version>2.0.2</version>
70+
</dependency>
71+
<dependency>
72+
<groupId>org.apache.logging.log4j</groupId>
73+
<artifactId>log4j-core</artifactId>
74+
<version>2.0.2</version>
75+
</dependency>
76+
<dependency>
77+
<groupId>org.apache.logging.log4j</groupId>
78+
<artifactId>log4j-slf4j-impl</artifactId>
79+
<version>2.0.2</version>
80+
</dependency>
81+
<dependency>
82+
<groupId>com.lmax</groupId>
83+
<artifactId>disruptor</artifactId>
84+
<version>3.0.1</version>
85+
</dependency>
86+
</dependencies>
87+
<build>
88+
<plugins>
89+
<plugin>
90+
<artifactId>maven-compiler-plugin</artifactId>
91+
<version>2.3.2</version>
92+
<configuration>
93+
<source>1.6</source>
94+
<target>1.6</target>
95+
<encoding>UTF-8</encoding>
96+
</configuration>
97+
</plugin>
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-source-plugin</artifactId>
101+
<version>2.3</version>
102+
<executions>
103+
<execution>
104+
<id>attach-sources</id>
105+
<goals>
106+
<goal>jar-no-fork</goal>
107+
</goals>
108+
</execution>
109+
</executions>
110+
</plugin>
111+
<plugin>
112+
<groupId>org.apache.maven.plugins</groupId>
113+
<artifactId>maven-jar-plugin</artifactId>
114+
<version>2.3.2</version>
115+
<configuration/>
116+
</plugin>
117+
<plugin>
118+
<groupId>org.apache.maven.plugins</groupId>
119+
<artifactId>maven-surefire-plugin</artifactId>
120+
<version>2.10</version>
121+
<configuration>
122+
<argLine>-Dfile.encoding=UTF-8</argLine>
123+
</configuration>
124+
<executions>
125+
<execution>
126+
<id>run-test</id>
127+
<phase>test</phase>
128+
<goals>
129+
<goal>test</goal>
130+
</goals>
131+
<configuration>
132+
<excludes>
133+
<exclude>**/integration/*.java</exclude>
134+
</excludes>
135+
</configuration>
136+
</execution>
137+
</executions>
138+
</plugin>
139+
<plugin>
140+
<artifactId>maven-failsafe-plugin</artifactId>
141+
<version>2.6</version>
142+
<configuration>
143+
<argLine>-Dfile.encoding=UTF-8</argLine>
144+
</configuration>
145+
<executions>
146+
<execution>
147+
<goals>
148+
<goal>integration-test</goal>
149+
<goal>verify</goal>
150+
</goals>
151+
</execution>
152+
</executions>
153+
</plugin>
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-javadoc-plugin</artifactId>
157+
<version>2.8</version>
158+
<configuration>
159+
<encoding>UTF-8</encoding>
160+
<excludePackageNames>com.aliyun.common.*;*.internal;*.internal.*;*.impl;</excludePackageNames>
161+
<tags>
162+
<tag>
163+
<name>author</name>
164+
<placement>X</placement>
165+
</tag>
166+
</tags>
167+
</configuration>
168+
<executions>
169+
<execution>
170+
<phase>package</phase>
171+
<goals>
172+
<goal>jar</goal>
173+
</goals>
174+
</execution>
175+
</executions>
176+
</plugin>
177+
<plugin>
178+
<groupId>org.apache.maven.plugins</groupId>
179+
<artifactId>maven-shade-plugin</artifactId>
180+
<version>1.4</version>
181+
<configuration>
182+
<artifactSet>
183+
<excludes>
184+
<exclude>commons-logging:commons-logging:jar:</exclude>
185+
<exclude>joda-time:joda-time:jar:</exclude>
186+
<exclude>org.apache.logging.log4j:log4j-api:jar:</exclude>
187+
<exclude>org.apache.logging.log4j:log4j-core:jar:</exclude>
188+
<exclude>org.apache.logging.log4j:log4j-slf4j-impl:jar:</exclude>
189+
<exclude>org.slf4j:slf4j-api:jar:</exclude>
190+
</excludes>
191+
</artifactSet>
192+
<relocations>
193+
<relocation>
194+
<pattern>com.google.protobuf</pattern>
195+
<shadedPattern>com.aliyun.ots.thirdparty.com.google.protobuf</shadedPattern>
196+
</relocation>
197+
<relocation>
198+
<pattern>org.apache.http</pattern>
199+
<shadedPattern>com.aliyun.ots.thirdparty.org.apache.http</shadedPattern>
200+
</relocation>
201+
</relocations>
202+
<shadedClassifierName>jar-with-dependencies</shadedClassifierName>
203+
<shadedArtifactAttached>true</shadedArtifactAttached>
204+
</configuration>
205+
<executions>
206+
<execution>
207+
<phase>package</phase>
208+
<goals>
209+
<goal>shade</goal>
210+
</goals>
211+
</execution>
212+
</executions>
213+
</plugin>
214+
<plugin>
215+
<artifactId>maven-assembly-plugin</artifactId>
216+
<configuration>
217+
<descriptors>
218+
<descriptor>src/main/assembly/package.xml</descriptor>
219+
</descriptors>
220+
</configuration>
221+
<executions>
222+
<execution>
223+
<id>dwzip</id>
224+
<phase>package</phase>
225+
<goals>
226+
<goal>single</goal>
227+
</goals>
228+
</execution>
229+
</executions>
230+
</plugin>
231+
<plugin>
232+
<groupId>org.apache.maven.plugins</groupId>
233+
<artifactId>maven-gpg-plugin</artifactId>
234+
<version>1.5</version>
235+
<executions>
236+
<execution>
237+
<id>sign-artifacts</id>
238+
<phase>verify</phase>
239+
<goals>
240+
<goal>sign</goal>
241+
</goals>
242+
</execution>
243+
</executions>
244+
</plugin>
245+
<plugin>
246+
<groupId>org.sonatype.plugins</groupId>
247+
<artifactId>nexus-staging-maven-plugin</artifactId>
248+
<version>1.6.3</version>
249+
<extensions>true</extensions>
250+
<configuration>
251+
<serverId>sonatype-nexus-staging</serverId>
252+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
253+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
254+
</configuration>
255+
</plugin>
256+
</plugins>
257+
</build>
258+
</project>

src/main/assembly/package.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
4+
<id>release</id>
5+
<formats>
6+
<format>zip</format>
7+
</formats>
8+
<includeBaseDirectory>false</includeBaseDirectory>
9+
<fileSets>
10+
<fileSet>
11+
<directory>target/</directory>
12+
<includes>
13+
<include>ots*.jar</include>
14+
</includes>
15+
<outputDirectory></outputDirectory>
16+
</fileSet>
17+
<fileSet>
18+
<directory>src/test/java/examples/</directory>
19+
<outputDirectory>examples</outputDirectory>
20+
</fileSet>
21+
</fileSets>
22+
23+
<dependencySets>
24+
<dependencySet>
25+
<useProjectArtifact>false</useProjectArtifact>
26+
<outputDirectory>lib</outputDirectory><!-- 将scope为runtime的依赖包打包到lib目录下。 -->
27+
<scope>runtime</scope>
28+
</dependencySet>
29+
</dependencySets>
30+
</assembly>

0 commit comments

Comments
 (0)