Elffuss BraidHub

kikocis/java-driver public

876983ef4dbf · 15.5 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>2.1.11-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-examples</module>
42 <module>driver-dist</module>
43 </modules>
44
45 <properties>
46 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
47 <cassandra.version>2.1.9</cassandra.version>
48 <java.version>1.6</java.version>
49 <log4j.version>1.2.17</log4j.version>
50 <slf4j-log4j12.version>1.7.6</slf4j-log4j12.version>
51 <!--
52 We use an old version of Guava to be compatible with Spark 1.1.
53 Check with the spark-cassandra-connector team before upgrading this.
54 -->
55 <guava.version>14.0.1</guava.version>
56 <netty.version>4.0.33.Final</netty.version>
57 <metrics.version>3.0.2</metrics.version>
58 <snappy.version>1.0.5</snappy.version>
59 <lz4.version>1.2.0</lz4.version>
60 <hdr.version>2.1.4</hdr.version>
61 <jnr-ffi.version>2.0.7</jnr-ffi.version>
62 <jnr-posix.version>3.0.27</jnr-posix.version>
63 <!-- test dependency versions -->
64 <testng.version>6.8.8</testng.version>
65 <assertj.version>1.7.0</assertj.version>
66 <mockito.version>1.10.8</mockito.version>
67 <scassandra.version>1.0.3</scassandra.version>
68 <main.basedir>${project.basedir}</main.basedir>
69 <ipprefix>127.0.1.</ipprefix>
70 <test.groups>unit</test.groups>
71 </properties>
72
73 <dependencies>
74 <dependency>
75 <groupId>log4j</groupId>
76 <artifactId>log4j</artifactId>
77 <version>${log4j.version}</version>
78 <scope>test</scope>
79 </dependency>
80
81 <dependency>
82 <groupId>org.slf4j</groupId>
83 <artifactId>slf4j-log4j12</artifactId>
84 <version>${slf4j-log4j12.version}</version>
85 <scope>test</scope>
86 </dependency>
87 </dependencies>
88
89 <profiles>
90 <profile>
91 <id>default</id>
92 <properties>
93 <env>default</env>
94 <test.groups>unit</test.groups>
95 </properties>
96 <activation>
97 <activeByDefault>true</activeByDefault>
98 </activation>
99 </profile>
100 <profile>
101 <id>doclint-java8-disable</id>
102 <activation>
103 <jdk>[1.8,)</jdk>
104 </activation>
105 <properties>
106 <javadoc.opts>-Xdoclint:none</javadoc.opts>
107 </properties>
108 </profile>
109 <profile>
110 <id>short</id>
111 <properties>
112 <env>default</env>
113 <test.groups>unit,short</test.groups>
114 </properties>
115 </profile>
116 <profile>
117 <id>long</id>
118 <properties>
119 <env>default</env>
120 <test.groups>unit,short,long</test.groups>
121 </properties>
122 </profile>
123 <profile>
124 <id>duration</id>
125 <properties>
126 <env>default</env>
127 <test.groups>unit,short,long,duration</test.groups>
128 </properties>
129 </profile>
130 <profile>
131 <id>doc</id>
132 <properties>
133 <env>default</env>
134 <test.groups>unit,doc</test.groups>
135 </properties>
136 </profile>
137 <profile>
138 <!-- default profile settings for 'isolated' test group, will skip tests unless overridden in child module. -->
139 <id>isolated</id>
140 <properties>
141 <env>default</env>
142 <test.groups>isolated</test.groups>
143 </properties>
144 <build>
145 <plugins>
146 <plugin>
147 <groupId>org.apache.maven.plugins</groupId>
148 <artifactId>maven-surefire-plugin</artifactId>
149 <version>2.16</version>
150 <configuration>
151 <skip>true</skip>
152 <forkCount>1</forkCount>
153 <reuseForks>false</reuseForks>
154 <reportNameSuffix>isolated</reportNameSuffix>
155 <!-- This requires includes to be explicitly specified by implementing classes.
156 This is needed to prevent creating a JVM fork for each test, even those that don't
157 have the isolated group. -->
158 <includes />
159 </configuration>
160 </plugin>
161 </plugins>
162 </build>
163 </profile>
164 </profiles>
165
166 <build>
167 <plugins>
168 <plugin>
169 <artifactId>maven-compiler-plugin</artifactId>
170 <version>3.1</version>
171 <configuration>
172 <source>${java.version}</source>
173 <target>${java.version}</target>
174 <optimize>true</optimize>
175 <showDeprecation>true</showDeprecation>
176 <showWarnings>true</showWarnings>
177 </configuration>
178 </plugin>
179 <plugin>
180 <groupId>org.apache.maven.plugins</groupId>
181 <artifactId>maven-source-plugin</artifactId>
182 <version>2.2.1</version>
183 <executions>
184 <execution>
185 <id>attach-sources</id>
186 <goals>
187 <goal>jar-no-fork</goal>
188 </goals>
189 </execution>
190 </executions>
191 </plugin>
192 <plugin>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-javadoc-plugin</artifactId>
195 <version>2.9.1</version>
196 <configuration>
197 <verbose>false</verbose>
198 <additionalparam>${javadoc.opts}</additionalparam>
199 <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) -->
200 <header>
201 &lt;script type="text/javascript"
202 src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"&gt;&lt;/script&gt;
203 </header>
204 <!-- open external links in a separate window -->
205 <bottom>
206 &lt;script type="text/javascript"&gt;
207 for(var i in document.links) {
208 var link = document.links[i];
209 if (link.href.indexOf('is-external=true') != -1) link.target = '_blank';
210 }
211 &lt;/script&gt;
212 </bottom>
213 <links>
214 <link>https://docs.oracle.com/javase/8/docs/api/</link>
215 <link>http://docs.guava-libraries.googlecode.com/git-history/v16.0.1/javadoc/</link>
216 <link>http://netty.io/4.0/api/</link>
217 <!-- dependencies from driver-extras -->
218 <link>http://www.joda.org/joda-time/apidocs/</link>
219 <link>http://fasterxml.github.io/jackson-core/javadoc/2.6/</link>
220 <link>http://fasterxml.github.io/jackson-databind/javadoc/2.6/</link>
221 <link>https://javaee-spec.java.net/nonav/javadocs/</link>
222 </links>
223 </configuration>
224 <executions>
225 <execution>
226 <id>attach-javadocs</id>
227 <goals>
228 <goal>jar</goal>
229 </goals>
230 </execution>
231 </executions>
232 </plugin>
233 <plugin>
234 <groupId>org.apache.maven.plugins</groupId>
235 <artifactId>maven-release-plugin</artifactId>
236 <version>2.5</version>
237 <configuration>
238 <tagNameFormat>@{project.version}</tagNameFormat>
239 </configuration>
240 </plugin>
241 <plugin>
242 <groupId>org.codehaus.mojo</groupId>
243 <artifactId>clirr-maven-plugin</artifactId>
244 <version>2.6.1</version>
245 <executions>
246 <execution>
247 <phase>compile</phase>
248 <goals>
249 <goal>check</goal>
250 </goals>
251 </execution>
252 </executions>
253 <configuration>
254 <comparisonVersion>2.1.9</comparisonVersion>
255 <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
256 <excludes>
257 <!-- Package-private, internal classes -->
258 <exclude>com/datastax/driver/core/Frame$*</exclude>
259 <exclude>com/datastax/driver/core/ProtocolEvent$*</exclude>
260 <exclude>com/datastax/driver/core/Message$*</exclude>
261 <exclude>com/datastax/driver/core/Requests$*</exclude>
262 <exclude>com/datastax/driver/core/Responses$*</exclude>
263 <exclude>com/datastax/driver/core/Connection$*</exclude>
264 </excludes>
265 </configuration>
266 </plugin>
267 <!--
268 To update license headers run:
269 mvn license:format
270 -->
271 <plugin>
272 <groupId>com.mycila</groupId>
273 <artifactId>license-maven-plugin</artifactId>
274 <version>2.8</version>
275 <configuration>
276 <header>${main.basedir}/src/license/header.txt</header>
277 <includes>
278 <include>src/**/*.java</include>
279 <include>src/**/*.xml</include>
280 <include>src/**/*.properties</include>
281 <include>**/pom.xml</include>
282 </includes>
283 <excludes>
284 <exclude>**/src/main/config/ide/**</exclude>
285 </excludes>
286 <mapping>
287 <java>SLASHSTAR_STYLE</java>
288 <properties>SCRIPT_STYLE</properties>
289 </mapping>
290 <strictCheck>true</strictCheck>
291 </configuration>
292 <executions>
293 <execution>
294 <id>check-license</id>
295 <phase>initialize</phase>
296 <goals>
297 <goal>check</goal>
298 </goals>
299 </execution>
300 </executions>
301 </plugin>
302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-surefire-plugin</artifactId>
305 <version>2.16</version>
306 <configuration>
307 <groups>${test.groups}</groups>
308 <useFile>false</useFile>
309 <systemPropertyVariables>
310 <cassandra.version>${cassandra.version}</cassandra.version>
311 <ipprefix>${ipprefix}</ipprefix>
312 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
313 </systemPropertyVariables>
314 <classpathDependencyExcludes>
315 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
316 </classpathDependencyExcludes>
317 <properties>
318 <property>
319 <!-- Don't skip tests after a @Before method throws a SkipException -->
320 <name>configfailurepolicy</name>
321 <value>continue</value>
322 </property>
323 </properties>
324 </configuration>
325 </plugin>
326 <plugin>
327 <groupId>org.apache.maven.plugins</groupId>
328 <artifactId>maven-failsafe-plugin</artifactId>
329 <version>2.16</version>
330 <configuration>
331 <groups>${test.groups}</groups>
332 <useFile>false</useFile>
333 <systemPropertyVariables>
334 <cassandra.version>${cassandra.version}</cassandra.version>
335 <ipprefix>${ipprefix}</ipprefix>
336 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
337 </systemPropertyVariables>
338 <classpathDependencyExcludes>
339 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
340 </classpathDependencyExcludes>
341 <properties>
342 <property>
343 <!-- Don't skip tests after a @Before method throws a SkipException -->
344 <name>configfailurepolicy</name>
345 <value>continue</value>
346 </property>
347 </properties>
348 </configuration>
349 </plugin>
350 </plugins>
351
352 </build>
353
354 <licenses>
355 <license>
356 <name>Apache 2</name>
357 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
358 <distribution>repo</distribution>
359 <comments>Apache License Version 2.0</comments>
360 </license>
361 </licenses>
362
363 <scm>
364 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
365 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
366 <url>https://github.com/datastax/java-driver</url>
367 <tag>HEAD</tag>
368 </scm>
369
370 <developers>
371 <developer>
372 <name>Various</name>
373 <organization>DataStax</organization>
374 </developer>
375 </developers>
376</project>