Elffuss BraidHub

kikocis/java-driver public

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