Elffuss BraidHub

kikocis/java-driver public

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