Elffuss BraidHub

kikocis/java-driver public

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