Elffuss BraidHub

kikocis/java-driver public

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