Elffuss BraidHub

kikocis/java-driver public

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