Elffuss BraidHub

kikocis/java-driver public

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