forked from couchbase/couchbase-java-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
378 lines (350 loc) · 14.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
<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">
<modelVersion>4.0.0</modelVersion>
<!-- Quickstart & Common Reference:
- run all tests (unit & int): mvn test
- run only unit tests: mvn test -Dunit
- compile and build: mvn package
- build and install into ~/.m2: mvn install
- skip tests on install or package add -Dmaven.test.skip
- stage & close (but not release) on maven central: mvn clean deploy
note that -SNAPSHOT is not allowed on deploy
-->
<groupId>com.couchbase.client</groupId>
<artifactId>java-client</artifactId>
<version>2.5.6-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Couchbase Java SDK</name>
<description>The official Couchbase Java SDK</description>
<url>http://couchbase.com</url>
<properties>
<java-compat.version>1.6</java-compat.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<core.version>1.5.6-SNAPSHOT</core.version>
<junit.version>4.12</junit.version>
<mockito.version>1.10.19</mockito.version>
<slf4j.version>1.7.7</slf4j.version>
<log4j.version>1.2.17</log4j.version>
<commons-logging.version>1.1.3</commons-logging.version>
<assertj.version>1.7.1</assertj.version>
<guavatest.version>19.0</guavatest.version>
<core.apidocs>${project.build.directory}/coredocs</core.apidocs>
<couchbasemock.version>1.5.9</couchbasemock.version>
</properties>
<organization>
<name>Couchbase, Inc.</name>
<url>http://couchbase.com</url>
</organization>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>/~https://github.com/couchbase/couchbase-java-client</url>
<connection>
scm:git:git://github.com/couchbase/couchbase-java-client
</connection>
<developerConnection>
scm:git:git://github.com/couchbase/couchbase-java-client
</developerConnection>
</scm>
<issueManagement>
<system>Couchbase JIRA</system>
<url>http://www.couchbase.com/issues/browse/JCBC</url>
</issueManagement>
<developers>
<developer>
<id>daschl</id>
<name>Michael Nitschinger</name>
<email>michael.nitschinger@couchbase.com</email>
</developer>
<developer>
<id>subalakr</id>
<name>Subhashni Balakrishnan</name>
<email>subhashni@couchbase.com</email>
</developer>
<developer>
<id>dnault</id>
<name>David Nault</name>
<email>david.nault@couchbase.com</email>
</developer>
<developer>
<id>avsej</id>
<name>Sergey Avseyev</name>
<email>sergey@couchbase.com</email>
</developer>
</developers>
<dependencies>
<!-- Exposed, Required Dependencies -->
<dependency>
<groupId>com.couchbase.client</groupId>
<artifactId>core-io</artifactId>
<version>${core.version}</version>
</dependency>
<!-- Exposed, Optional Dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<optional>true</optional>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons-logging.version}</version>
<optional>true</optional>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
<optional>true</optional>
<scope>provided</scope>
</dependency>
<!-- Test Dependencies -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>eu.codearte.catch-exception</groupId>
<artifactId>catch-exception</artifactId>
<version>1.4.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>${assertj.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava-testlib</artifactId>
<version>${guavatest.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.couchbase.mock</groupId>
<artifactId>CouchbaseMock</artifactId>
<version>${couchbasemock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions>
<execution>
<!-- this execution unpacks the core-io javadocs jar into
the build directory for later reuse in offline linking of the
java-client javadoc
-->
<id>unpack-core-docs</id>
<phase>package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.couchbase.client</groupId>
<artifactId>core-io</artifactId>
<version>${core.version}</version>
<type>jar</type>
<classifier>javadoc</classifier>
<overWrite>true</overWrite>
<outputDirectory>${core.apidocs}</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<links>
<link>http://reactivex.io/RxJava/javadoc/</link>
</links>
<offlineLinks>
<offlineLink>
<!--link the core api docs in a offline manner since they won't have been published yet-->
<url>http://docs.couchbase.com/sdk-api/couchbase-core-io-${core.version}/</url>
<!--the javadoc build process will rely on the locally unpack core-io javadoc jar-->
<location>${core.apidocs}/</location>
</offlineLink>
</offlineLinks>
<doclet>ch.raffael.doclets.pegdown.PegdownDoclet</doclet>
<docletArtifact>
<groupId>ch.raffael.pegdown-doclet</groupId>
<artifactId>pegdown-doclet</artifactId>
<version>1.1</version>
</docletArtifact>
<useStandardDocletOptions>true</useStandardDocletOptions>
<windowtitle>Couchbase Java SDK</windowtitle>
<doctitle>Couchbase Java SDK (${project.version})</doctitle>
<bottom><![CDATA[Copyright © 2015 Couchbase, Inc.]]></bottom>
<overview>docs/teaser.html</overview>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${java-compat.version}</source>
<target>${java-compat.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.3</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.9.1</version>
<executions>
<execution>
<id>add-integration-test-source-as-test-sources</id>
<phase>generate-test-sources</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<!-- add the following sources in addition to the unit tests -->
<source>${test-source-directory}</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.2.0</version>
<executions>
<execution>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.14</version>
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java16</artifactId>
<version>1.0</version>
</signature>
</configuration>
<executions>
<execution>
<id>ensure-java-1.6-class-library</id>
<phase>compile</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
</build>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- by default, add also the int tests -->
<test-source-directory>src/integration/java</test-source-directory>
</properties>
</profile>
<profile>
<id>unit</id>
<activation>
<property>
<name>unit</name>
<value>true</value>
</property>
</activation>
<properties>
<!-- just adding the unit tests again, noop. -->
<test-source-directory>src/test/java</test-source-directory>
</properties>
</profile>
</profiles>
</project>