Elffuss BraidHub

kikocis/java-driver public

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