Elffuss BraidHub

kikocis/java-driver public

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