Elffuss BraidHub

kikocis/java-driver public

0fc2037f3536 · 18.8 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.1</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 <verbose>false</verbose>
232 <additionalparam>${javadoc.opts}</additionalparam>
233 <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) -->
234 <header>
235 &lt;script type="text/javascript"
236 src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;
237 </header>
238 <!-- open external links in a separate window -->
239 <bottom>
240 &lt;script type="text/javascript"&gt;
241 for(var i in document.links) {
242 var link = document.links[i];
243 if (link.href.indexOf('is-external=true') != -1) link.target = '_blank';
244 }
245 &lt;/script&gt;
246 </bottom>
247 <links>
248 <link>https://docs.oracle.com/javase/8/docs/api/</link>
249 <link>http://docs.guava-libraries.googlecode.com/git-history/v16.0.1/javadoc/</link>
250 <link>http://netty.io/4.0/api/</link>
251 <!-- dependencies from driver-extras -->
252 <link>http://www.joda.org/joda-time/apidocs/</link>
253 <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
254 <link>http://fasterxml.github.io/jackson-databind/javadoc/2.6/</link>
255 <link>https://javaee-spec.java.net/nonav/javadocs/</link>
256 </links>
257 </configuration>
258 <executions>
259 <execution>
260 <id>attach-javadocs</id>
261 <goals>
262 <goal>jar</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
267 <plugin>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-release-plugin</artifactId>
270 <version>2.5</version>
271 <configuration>
272 <tagNameFormat>@{project.version}</tagNameFormat>
273 <preparationGoals>clean verify -Penforce-java8</preparationGoals>
274 <!-- do NOT specify arguments tag here as it would override the arguments tag in this plugin's definition in the parent POM -->
275 </configuration>
276 </plugin>
277 <plugin>
278 <groupId>org.codehaus.mojo</groupId>
279 <artifactId>clirr-maven-plugin</artifactId>
280 <version>2.7</version>
281 <executions>
282 <execution>
283 <phase>compile</phase>
284 <goals>
285 <goal>check</goal>
286 </goals>
287 </execution>
288 </executions>
289 <configuration>
290 <comparisonVersion>3.1.3</comparisonVersion>
291 <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
292 </configuration>
293 <!--
294 Workaround to make clirr plugin work with Java 8.
295 The bug is actually in the BCEL library,
296 see https://issues.apache.org/jira/browse/BCEL-173.
297 See also https://github.com/RichardWarburton/lambda-behave/issues/31#issuecomment-86052095
298 -->
299 <dependencies>
300 <dependency>
301 <groupId>com.google.code.findbugs</groupId>
302 <artifactId>bcel-findbugs</artifactId>
303 <version>6.0</version>
304 </dependency>
305 </dependencies>
306 </plugin>
307 <!--
308 To update license headers run:
309 mvn license:format
310 -->
311 <plugin>
312 <groupId>com.mycila</groupId>
313 <artifactId>license-maven-plugin</artifactId>
314 <version>2.8</version>
315 <configuration>
316 <header>${main.basedir}/src/license/header.txt</header>
317 <includes>
318 <include>src/**/*.java</include>
319 <include>src/**/*.xml</include>
320 <include>src/**/*.properties</include>
321 <include>**/pom.xml</include>
322 </includes>
323 <excludes>
324 <exclude>**/src/main/config/ide/**</exclude>
325 </excludes>
326 <mapping>
327 <java>SLASHSTAR_STYLE</java>
328 <properties>SCRIPT_STYLE</properties>
329 </mapping>
330 <strictCheck>true</strictCheck>
331 </configuration>
332 <executions>
333 <execution>
334 <id>check-license</id>
335 <phase>initialize</phase>
336 <goals>
337 <goal>check</goal>
338 </goals>
339 <configuration>
340 <properties>
341 <currentYear>${currentYear}</currentYear>
342 </properties>
343 </configuration>
344 </execution>
345 </executions>
346 </plugin>
347 <plugin>
348 <groupId>org.codehaus.mojo</groupId>
349 <artifactId>animal-sniffer-maven-plugin</artifactId>
350 <version>1.15</version>
351 <configuration>
352 <signature>
353 <groupId>org.codehaus.mojo.signature</groupId>
354 <artifactId>java16</artifactId>
355 <version>1.0</version>
356 </signature>
357 </configuration>
358 <executions>
359 <execution>
360 <id>check</id>
361 <phase>compile</phase>
362 <goals>
363 <goal>check</goal>
364 </goals>
365 </execution>
366 </executions>
367 </plugin>
368 <plugin>
369 <groupId>org.apache.maven.plugins</groupId>
370 <artifactId>maven-surefire-plugin</artifactId>
371 <version>2.16</version>
372 <configuration>
373 <groups>${test.groups}</groups>
374 <useFile>false</useFile>
375 <systemPropertyVariables>
376 <cassandra.version>${cassandra.version}</cassandra.version>
377 <ipprefix>${ipprefix}</ipprefix>
378 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
379 </systemPropertyVariables>
380 <classpathDependencyExcludes>
381 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
382 </classpathDependencyExcludes>
383 <properties>
384 <property>
385 <name>usedefaultlisteners</name>
386 <value>false</value> <!-- disable default listeners as some of the html reports do a lot of File I/O -->
387 </property>
388 <property>
389 <!-- Don't skip tests after a @Before method throws a SkipException -->
390 <name>configfailurepolicy</name>
391 <value>continue</value>
392 </property>
393 </properties>
394 </configuration>
395 </plugin>
396 <plugin>
397 <groupId>org.apache.maven.plugins</groupId>
398 <artifactId>maven-failsafe-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 <!-- Don't skip tests after a @Before method throws a SkipException -->
414 <name>configfailurepolicy</name>
415 <value>continue</value>
416 </property>
417 </properties>
418 </configuration>
419 </plugin>
420 </plugins>
421 </build>
422
423 <licenses>
424 <license>
425 <name>Apache 2</name>
426 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
427 <distribution>repo</distribution>
428 <comments>Apache License Version 2.0</comments>
429 </license>
430 </licenses>
431
432 <scm>
433 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
434 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
435 <url>https://github.com/datastax/java-driver</url>
436 <tag>HEAD</tag>
437 </scm>
438
439 <developers>
440 <developer>
441 <name>Various</name>
442 <organization>DataStax</organization>
443 </developer>
444 </developers>
445</project>