Elffuss BraidHub

kikocis/java-driver public

503af700a078 · 20.4 KiBRawPermalink
1<!--
2
3 Copyright (C) 2012-2015 DataStax Inc.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17-->
18<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/maven-v4_0_0.xsd">
19 <modelVersion>4.0.0</modelVersion>
20 <parent>
21 <groupId>org.sonatype.oss</groupId>
22 <artifactId>oss-parent</artifactId>
23 <version>7</version>
24 <relativePath />
25 </parent>
26
27 <groupId>com.datastax.cassandra</groupId>
28 <artifactId>cassandra-driver-parent</artifactId>
29 <version>3.0.8-SNAPSHOT</version>
30 <packaging>pom</packaging>
31 <name>DataStax Java Driver for Apache Cassandra</name>
32 <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3
33 (CQL3) and Cassandra's binary protocol.
34 </description>
35 <url>https://github.com/datastax/java-driver</url>
36 <inceptionYear>2012</inceptionYear>
37
38 <modules>
39 <module>driver-core</module>
40 <module>driver-mapping</module>
41 <module>driver-extras</module>
42 <module>driver-examples</module>
43 <module>driver-tests</module>
44 <module>driver-dist</module>
45 </modules>
46
47 <properties>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
49 <cassandra.version>3.10</cassandra.version>
50 <java.version>1.6</java.version>
51 <log4j.version>1.2.17</log4j.version>
52 <slf4j-log4j12.version>1.7.6</slf4j-log4j12.version>
53 <guava.version>16.0.1</guava.version>
54 <netty.version>4.0.37.Final</netty.version>
55 <metrics.version>3.1.2</metrics.version>
56 <snappy.version>1.0.5</snappy.version>
57 <lz4.version>1.3.0</lz4.version>
58 <hdr.version>2.1.4</hdr.version>
59 <!-- driver-extras module -->
60 <jackson.version>2.6.3</jackson.version>
61 <joda.version>2.9.1</joda.version>
62 <jsr353-api.version>1.0</jsr353-api.version>
63 <jsr353-ri.version>1.0.4</jsr353-ri.version>
64 <!-- test dependency versions -->
65 <testng.version>6.8.8</testng.version>
66 <assertj.version>1.7.0</assertj.version>
67 <mockito.version>1.10.8</mockito.version>
68 <commons-exec.version>1.3</commons-exec.version>
69 <scassandra.version>1.1.2</scassandra.version>
70 <main.basedir>${project.basedir}</main.basedir>
71 <ipprefix>127.0.1.</ipprefix>
72 <test.groups>unit</test.groups>
73 <!-- Set default javadoc.opts, overriden by profiles -->
74 <javadoc.opts />
75 </properties>
76
77 <profiles>
78 <profile>
79 <id>default</id>
80 <properties>
81 <env>default</env>
82 <test.groups>unit</test.groups>
83 </properties>
84 <activation>
85 <activeByDefault>true</activeByDefault>
86 </activation>
87 </profile>
88
89 <profile>
90 <id>doclint-java8-disable</id>
91 <activation>
92 <jdk>[1.8,)</jdk>
93 </activation>
94 <properties>
95 <javadoc.opts>-Xdoclint:none</javadoc.opts>
96 </properties>
97 </profile>
98
99 <profile>
100 <id>short</id>
101 <properties>
102 <env>default</env>
103 <test.groups>unit,short</test.groups>
104 </properties>
105 </profile>
106 <profile>
107 <id>long</id>
108 <properties>
109 <env>default</env>
110 <test.groups>unit,short,long</test.groups>
111 </properties>
112 </profile>
113 <profile>
114 <id>duration</id>
115 <properties>
116 <env>default</env>
117 <test.groups>unit,short,long,duration</test.groups>
118 </properties>
119 </profile>
120 <profile>
121 <id>doc</id>
122 <properties>
123 <env>default</env>
124 <test.groups>unit,doc</test.groups>
125 </properties>
126 </profile>
127 <profile>
128 <!-- default profile settings for 'isolated' test group, will skip tests unless overridden in child module. -->
129 <id>isolated</id>
130 <properties>
131 <env>default</env>
132 <test.groups>isolated</test.groups>
133 </properties>
134 <build>
135 <plugins>
136 <plugin>
137 <groupId>org.apache.maven.plugins</groupId>
138 <artifactId>maven-surefire-plugin</artifactId>
139 <version>2.16</version>
140 <configuration>
141 <property>
142 <name>usedefaultlisteners</name>
143 <value>false</value> <!-- disable default listeners as some of the html reports do a lot of File I/O -->
144 </property>
145 <skip>true</skip>
146 <forkCount>1</forkCount>
147 <reuseForks>false</reuseForks>
148 <reportNameSuffix>isolated</reportNameSuffix>
149 <!-- This requires includes to be explicitly specified by implementing classes.
150 This is needed to prevent creating a JVM fork for each test, even those that don't
151 have the isolated group. -->
152 <includes />
153 </configuration>
154 </plugin>
155 </plugins>
156 </build>
157 </profile>
158
159 <profile>
160 <id>enforce-java8</id>
161 <build>
162 <plugins>
163 <plugin>
164 <groupId>org.apache.maven.plugins</groupId>
165 <artifactId>maven-enforcer-plugin</artifactId>
166 <version>1.4.1</version>
167 <executions>
168 <execution>
169 <id>enforce-java8</id>
170 <goals>
171 <goal>enforce</goal>
172 </goals>
173 <configuration>
174 <rules>
175 <requireJavaVersion>
176 <version>1.8</version>
177 </requireJavaVersion>
178 </rules>
179 </configuration>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </build>
185 </profile>
186
187 </profiles>
188
189 <build>
190 <plugins>
191 <plugin>
192 <artifactId>maven-compiler-plugin</artifactId>
193 <version>3.3</version>
194 <configuration>
195 <source>${java.version}</source>
196 <target>${java.version}</target>
197 <optimize>true</optimize>
198 <showDeprecation>true</showDeprecation>
199 <showWarnings>true</showWarnings>
200 <!--
201 Avoids warnings when cross-compiling to older source levels, see
202 https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
203 -->
204 <compilerArgument>-Xlint:-options</compilerArgument>
205 <!-- this actually means: use incremental compilation -->
206 <useIncrementalCompilation>false</useIncrementalCompilation>
207 </configuration>
208 </plugin>
209 <plugin>
210 <groupId>org.apache.maven.plugins</groupId>
211 <artifactId>maven-source-plugin</artifactId>
212 <version>2.2.1</version>
213 <executions>
214 <execution>
215 <id>attach-sources</id>
216 <phase>package</phase>
217 <goals>
218 <goal>jar-no-fork</goal>
219 </goals>
220 </execution>
221 </executions>
222 </plugin>
223 <plugin>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-javadoc-plugin</artifactId>
226 <version>2.9.1</version>
227 <inherited>true</inherited>
228 <configuration>
229 <quiet>true</quiet>
230 <verbose>false</verbose>
231 <additionalparam>${javadoc.opts}</additionalparam>
232 <links>
233 <link>https://docs.oracle.com/javase/8/docs/api/</link>
234 <link>http://google.github.io/guava/releases/16.0.1/api/docs/</link>
235 <link>http://netty.io/4.0/api/</link>
236 <!-- dependencies from driver-extras -->
237 <link>http://www.joda.org/joda-time/apidocs/</link>
238 <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
239 <link>http://fasterxml.github.io/jackson-databind/javadoc/2.6/</link>
240 <link>https://javaee-spec.java.net/nonav/javadocs/</link>
241 </links>
242 <!-- optional dependencies from other modules (must be explicitly declared here in order to be correctly resolved) -->
243 <additionalDependencies>
244 <additionalDependency>
245 <groupId>org.xerial.snappy</groupId>
246 <artifactId>snappy-java</artifactId>
247 <version>${snappy.version}</version>
248 </additionalDependency>
249 <additionalDependency>
250 <groupId>net.jpountz.lz4</groupId>
251 <artifactId>lz4</artifactId>
252 <version>${lz4.version}</version>
253 </additionalDependency>
254 <additionalDependency>
255 <groupId>org.hdrhistogram</groupId>
256 <artifactId>HdrHistogram</artifactId>
257 <version>${hdr.version}</version>
258 </additionalDependency>
259 <additionalDependency>
260 <groupId>com.fasterxml.jackson.core</groupId>
261 <artifactId>jackson-core</artifactId>
262 <version>${jackson.version}</version>
263 </additionalDependency>
264 <additionalDependency>
265 <groupId>com.fasterxml.jackson.core</groupId>
266 <artifactId>jackson-annotations</artifactId>
267 <version>${jackson.version}</version>
268 </additionalDependency>
269 <additionalDependency>
270 <groupId>com.fasterxml.jackson.core</groupId>
271 <artifactId>jackson-databind</artifactId>
272 <version>${jackson.version}</version>
273 </additionalDependency>
274 <additionalDependency>
275 <groupId>joda-time</groupId>
276 <artifactId>joda-time</artifactId>
277 <version>${joda.version}</version>
278 </additionalDependency>
279 <additionalDependency>
280 <groupId>javax.json</groupId>
281 <artifactId>javax.json-api</artifactId>
282 <version>${jsr353-api.version}</version>
283 </additionalDependency>
284 </additionalDependencies>
285 </configuration>
286 <executions>
287 <execution>
288 <id>attach-javadocs</id>
289 <goals>
290 <goal>jar</goal>
291 </goals>
292 </execution>
293 </executions>
294 </plugin>
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-release-plugin</artifactId>
298 <version>2.5</version>
299 <configuration>
300 <tagNameFormat>@{project.version}</tagNameFormat>
301 <preparationGoals>clean verify -Penforce-java8</preparationGoals>
302 <!-- do NOT specify arguments tag here as it would override the arguments tag in this plugin's definition in the parent POM -->
303 </configuration>
304 </plugin>
305 <plugin>
306 <groupId>org.codehaus.mojo</groupId>
307 <artifactId>clirr-maven-plugin</artifactId>
308 <version>2.7</version>
309 <executions>
310 <execution>
311 <phase>compile</phase>
312 <goals>
313 <goal>check</goal>
314 </goals>
315 </execution>
316 </executions>
317 <configuration>
318 <comparisonVersion>3.0.6</comparisonVersion>
319 <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
320 </configuration>
321 <!--
322 Workaround to make clirr plugin work with Java 8.
323 The bug is actually in the BCEL library,
324 see https://issues.apache.org/jira/browse/BCEL-173.
325 See also https://github.com/RichardWarburton/lambda-behave/issues/31#issuecomment-86052095
326 -->
327 <dependencies>
328 <dependency>
329 <groupId>com.google.code.findbugs</groupId>
330 <artifactId>bcel-findbugs</artifactId>
331 <version>6.0</version>
332 </dependency>
333 </dependencies>
334 </plugin>
335 <!--
336 To update license headers run:
337 mvn license:format
338 -->
339 <plugin>
340 <groupId>com.mycila</groupId>
341 <artifactId>license-maven-plugin</artifactId>
342 <version>2.8</version>
343 <configuration>
344 <header>${main.basedir}/src/license/header.txt</header>
345 <includes>
346 <include>src/**/*.java</include>
347 <include>src/**/*.xml</include>
348 <include>src/**/*.properties</include>
349 <include>**/pom.xml</include>
350 </includes>
351 <excludes>
352 <exclude>**/src/main/config/ide/**</exclude>
353 </excludes>
354 <mapping>
355 <java>SLASHSTAR_STYLE</java>
356 <properties>SCRIPT_STYLE</properties>
357 </mapping>
358 <strictCheck>true</strictCheck>
359 </configuration>
360 <executions>
361 <execution>
362 <id>check-license</id>
363 <phase>initialize</phase>
364 <goals>
365 <goal>check</goal>
366 </goals>
367 <configuration>
368 <properties>
369 <currentYear>${currentYear}</currentYear>
370 </properties>
371 </configuration>
372 </execution>
373 </executions>
374 </plugin>
375 <plugin>
376 <groupId>org.codehaus.mojo</groupId>
377 <artifactId>animal-sniffer-maven-plugin</artifactId>
378 <version>1.15</version>
379 <configuration>
380 <signature>
381 <groupId>org.codehaus.mojo.signature</groupId>
382 <artifactId>java16</artifactId>
383 <version>1.0</version>
384 </signature>
385 </configuration>
386 <executions>
387 <execution>
388 <id>check</id>
389 <phase>compile</phase>
390 <goals>
391 <goal>check</goal>
392 </goals>
393 </execution>
394 </executions>
395 </plugin>
396 <plugin>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-surefire-plugin</artifactId>
399 <version>2.16</version>
400 <configuration>
401 <groups>${test.groups}</groups>
402 <useFile>false</useFile>
403 <systemPropertyVariables>
404 <cassandra.version>${cassandra.version}</cassandra.version>
405 <ipprefix>${ipprefix}</ipprefix>
406 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
407 </systemPropertyVariables>
408 <classpathDependencyExcludes>
409 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
410 </classpathDependencyExcludes>
411 <properties>
412 <property>
413 <name>usedefaultlisteners</name>
414 <value>false</value> <!-- disable default listeners as some of the html reports do a lot of File I/O -->
415 </property>
416 <property>
417 <!-- Don't skip tests after a @Before method throws a SkipException -->
418 <name>configfailurepolicy</name>
419 <value>continue</value>
420 </property>
421 </properties>
422 </configuration>
423 </plugin>
424 <plugin>
425 <groupId>org.apache.maven.plugins</groupId>
426 <artifactId>maven-failsafe-plugin</artifactId>
427 <version>2.16</version>
428 <configuration>
429 <groups>${test.groups}</groups>
430 <useFile>false</useFile>
431 <systemPropertyVariables>
432 <cassandra.version>${cassandra.version}</cassandra.version>
433 <ipprefix>${ipprefix}</ipprefix>
434 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
435 </systemPropertyVariables>
436 <classpathDependencyExcludes>
437 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
438 </classpathDependencyExcludes>
439 <properties>
440 <property>
441 <!-- Don't skip tests after a @Before method throws a SkipException -->
442 <name>configfailurepolicy</name>
443 <value>continue</value>
444 </property>
445 </properties>
446 </configuration>
447 </plugin>
448 </plugins>
449 </build>
450
451 <licenses>
452 <license>
453 <name>Apache 2</name>
454 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
455 <distribution>repo</distribution>
456 <comments>Apache License Version 2.0</comments>
457 </license>
458 </licenses>
459
460 <scm>
461 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
462 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
463 <url>https://github.com/datastax/java-driver</url>
464 <tag>HEAD</tag>
465 </scm>
466
467 <developers>
468 <developer>
469 <name>Various</name>
470 <organization>DataStax</organization>
471 </developer>
472 </developers>
473</project>