Elffuss BraidHub

kikocis/java-driver public

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