Elffuss BraidHub

kikocis/java-driver public

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