Elffuss BraidHub

kikocis/java-driver public

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