Elffuss BraidHub

kikocis/java-driver public

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