Elffuss BraidHub

kikocis/java-driver public

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