Elffuss BraidHub

kikocis/java-driver public

32526ca90a37 · 18.2 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.0</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.0.9</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 <skip>true</skip>
144 <forkCount>1</forkCount>
145 <reuseForks>false</reuseForks>
146 <reportNameSuffix>isolated</reportNameSuffix>
147 <!-- This requires includes to be explicitly specified by implementing classes.
148 This is needed to prevent creating a JVM fork for each test, even those that don't
149 have the isolated group. -->
150 <includes />
151 </configuration>
152 </plugin>
153 </plugins>
154 </build>
155 </profile>
156
157 <profile>
158 <id>enforce-java8</id>
159 <build>
160 <plugins>
161 <plugin>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-enforcer-plugin</artifactId>
164 <version>1.4.1</version>
165 <executions>
166 <execution>
167 <id>enforce-java8</id>
168 <goals>
169 <goal>enforce</goal>
170 </goals>
171 <configuration>
172 <rules>
173 <requireJavaVersion>
174 <version>1.8</version>
175 </requireJavaVersion>
176 </rules>
177 </configuration>
178 </execution>
179 </executions>
180 </plugin>
181 </plugins>
182 </build>
183 </profile>
184
185 </profiles>
186
187 <build>
188 <plugins>
189 <plugin>
190 <artifactId>maven-compiler-plugin</artifactId>
191 <version>3.3</version>
192 <configuration>
193 <source>${java.version}</source>
194 <target>${java.version}</target>
195 <optimize>true</optimize>
196 <showDeprecation>true</showDeprecation>
197 <showWarnings>true</showWarnings>
198 <!--
199 Avoids warnings when cross-compiling to older source levels, see
200 https://blogs.oracle.com/darcy/entry/bootclasspath_older_source
201 -->
202 <compilerArgument>-Xlint:-options</compilerArgument>
203 <!-- this actually means: use incremental compilation -->
204 <useIncrementalCompilation>false</useIncrementalCompilation>
205 </configuration>
206 </plugin>
207 <plugin>
208 <groupId>org.apache.maven.plugins</groupId>
209 <artifactId>maven-source-plugin</artifactId>
210 <version>2.2.1</version>
211 <executions>
212 <execution>
213 <id>attach-sources</id>
214 <phase>package</phase>
215 <goals>
216 <goal>jar-no-fork</goal>
217 </goals>
218 </execution>
219 </executions>
220 </plugin>
221 <plugin>
222 <groupId>org.apache.maven.plugins</groupId>
223 <artifactId>maven-javadoc-plugin</artifactId>
224 <version>2.9.1</version>
225 <inherited>true</inherited>
226 <configuration>
227 <verbose>false</verbose>
228 <additionalparam>${javadoc.opts}</additionalparam>
229 <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) -->
230 <header>
231 &lt;script type="text/javascript"
232 src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;
233 </header>
234 <!-- open external links in a separate window -->
235 <bottom>
236 &lt;script type="text/javascript"&gt;
237 for(var i in document.links) {
238 var link = document.links[i];
239 if (link.href.indexOf('is-external=true') != -1) link.target = '_blank';
240 }
241 &lt;/script&gt;
242 </bottom>
243 <links>
244 <link>https://docs.oracle.com/javase/8/docs/api/</link>
245 <link>http://docs.guava-libraries.googlecode.com/git-history/v16.0.1/javadoc/</link>
246 <link>http://netty.io/4.0/api/</link>
247 <!-- dependencies from driver-extras -->
248 <link>http://www.joda.org/joda-time/apidocs/</link>
249 <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
250 <link>http://fasterxml.github.io/jackson-databind/javadoc/2.6/</link>
251 <link>https://javaee-spec.java.net/nonav/javadocs/</link>
252 </links>
253 </configuration>
254 <executions>
255 <execution>
256 <id>attach-javadocs</id>
257 <goals>
258 <goal>jar</goal>
259 </goals>
260 </execution>
261 </executions>
262 </plugin>
263 <plugin>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-release-plugin</artifactId>
266 <version>2.5</version>
267 <configuration>
268 <tagNameFormat>@{project.version}</tagNameFormat>
269 <preparationGoals>clean verify -Penforce-java8</preparationGoals>
270 <!-- do NOT specify arguments tag here as it would override the arguments tag in this plugin's definition in the parent POM -->
271 </configuration>
272 </plugin>
273 <plugin>
274 <groupId>org.codehaus.mojo</groupId>
275 <artifactId>clirr-maven-plugin</artifactId>
276 <version>2.7</version>
277 <executions>
278 <execution>
279 <phase>compile</phase>
280 <goals>
281 <goal>check</goal>
282 </goals>
283 </execution>
284 </executions>
285 <configuration>
286 <comparisonVersion>3.0.3</comparisonVersion>
287 <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
288 </configuration>
289 <!--
290 Workaround to make clirr plugin work with Java 8.
291 The bug is actually in the BCEL library,
292 see https://issues.apache.org/jira/browse/BCEL-173.
293 See also https://github.com/RichardWarburton/lambda-behave/issues/31#issuecomment-86052095
294 -->
295 <dependencies>
296 <dependency>
297 <groupId>com.google.code.findbugs</groupId>
298 <artifactId>bcel-findbugs</artifactId>
299 <version>6.0</version>
300 </dependency>
301 </dependencies>
302 </plugin>
303 <!--
304 To update license headers run:
305 mvn license:format
306 -->
307 <plugin>
308 <groupId>com.mycila</groupId>
309 <artifactId>license-maven-plugin</artifactId>
310 <version>2.8</version>
311 <configuration>
312 <header>${main.basedir}/src/license/header.txt</header>
313 <includes>
314 <include>src/**/*.java</include>
315 <include>src/**/*.xml</include>
316 <include>src/**/*.properties</include>
317 <include>**/pom.xml</include>
318 </includes>
319 <excludes>
320 <exclude>**/src/main/config/ide/**</exclude>
321 </excludes>
322 <mapping>
323 <java>SLASHSTAR_STYLE</java>
324 <properties>SCRIPT_STYLE</properties>
325 </mapping>
326 <strictCheck>true</strictCheck>
327 </configuration>
328 <executions>
329 <execution>
330 <id>check-license</id>
331 <phase>initialize</phase>
332 <goals>
333 <goal>check</goal>
334 </goals>
335 <configuration>
336 <properties>
337 <currentYear>${currentYear}</currentYear>
338 </properties>
339 </configuration>
340 </execution>
341 </executions>
342 </plugin>
343 <plugin>
344 <groupId>org.codehaus.mojo</groupId>
345 <artifactId>animal-sniffer-maven-plugin</artifactId>
346 <version>1.15</version>
347 <configuration>
348 <signature>
349 <groupId>org.codehaus.mojo.signature</groupId>
350 <artifactId>java16</artifactId>
351 <version>1.0</version>
352 </signature>
353 </configuration>
354 <executions>
355 <execution>
356 <id>check</id>
357 <phase>compile</phase>
358 <goals>
359 <goal>check</goal>
360 </goals>
361 </execution>
362 </executions>
363 </plugin>
364 <plugin>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-surefire-plugin</artifactId>
367 <version>2.16</version>
368 <configuration>
369 <groups>${test.groups}</groups>
370 <useFile>false</useFile>
371 <systemPropertyVariables>
372 <cassandra.version>${cassandra.version}</cassandra.version>
373 <ipprefix>${ipprefix}</ipprefix>
374 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
375 </systemPropertyVariables>
376 <classpathDependencyExcludes>
377 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
378 </classpathDependencyExcludes>
379 <properties>
380 <property>
381 <!-- Don't skip tests after a @Before method throws a SkipException -->
382 <name>configfailurepolicy</name>
383 <value>continue</value>
384 </property>
385 </properties>
386 </configuration>
387 </plugin>
388 <plugin>
389 <groupId>org.apache.maven.plugins</groupId>
390 <artifactId>maven-failsafe-plugin</artifactId>
391 <version>2.16</version>
392 <configuration>
393 <groups>${test.groups}</groups>
394 <useFile>false</useFile>
395 <systemPropertyVariables>
396 <cassandra.version>${cassandra.version}</cassandra.version>
397 <ipprefix>${ipprefix}</ipprefix>
398 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
399 </systemPropertyVariables>
400 <classpathDependencyExcludes>
401 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
402 </classpathDependencyExcludes>
403 <properties>
404 <property>
405 <!-- Don't skip tests after a @Before method throws a SkipException -->
406 <name>configfailurepolicy</name>
407 <value>continue</value>
408 </property>
409 </properties>
410 </configuration>
411 </plugin>
412 </plugins>
413 </build>
414
415 <licenses>
416 <license>
417 <name>Apache 2</name>
418 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
419 <distribution>repo</distribution>
420 <comments>Apache License Version 2.0</comments>
421 </license>
422 </licenses>
423
424 <scm>
425 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
426 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
427 <url>https://github.com/datastax/java-driver</url>
428 <tag>3.1.0</tag>
429 </scm>
430
431 <developers>
432 <developer>
433 <name>Various</name>
434 <organization>DataStax</organization>
435 </developer>
436 </developers>
437</project>