Elffuss BraidHub

kikocis/java-driver public

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