Elffuss BraidHub

kikocis/java-driver public

5390190f3856 · 10.9 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></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-java</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 <arguments>-Penforce-java8</arguments>
184 </configuration>
185 </plugin>
186 <plugin>
187 <groupId>org.codehaus.mojo</groupId>
188 <artifactId>clirr-maven-plugin</artifactId>
189 <version>2.7</version>
190 <executions>
191 <execution>
192 <phase>compile</phase>
193 <goals><goal>check</goal></goals>
194 </execution>
195 </executions>
196 <configuration>
197 <comparisonVersion>3.0.0</comparisonVersion>
198 <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile>
199 <excludes>
200 <!-- Package-private, internal classes -->
201 <exclude>com/datastax/driver/core/Frame$*</exclude>
202 <exclude>com/datastax/driver/core/ProtocolEvent$*</exclude>
203 <exclude>com/datastax/driver/core/Message$*</exclude>
204 <exclude>com/datastax/driver/core/Requests$*</exclude>
205 <exclude>com/datastax/driver/core/Responses$*</exclude>
206 <exclude>com/datastax/driver/core/Connection$*</exclude>
207 </excludes>
208 </configuration>
209 <!--
210 Workaround to make clirr plugin work with Java 8.
211 The bug is actually in the BCEL library,
212 see https://issues.apache.org/jira/browse/BCEL-173.
213 See also https://github.com/RichardWarburton/lambda-behave/issues/31#issuecomment-86052095
214 -->
215 <dependencies>
216 <dependency>
217 <groupId>com.google.code.findbugs</groupId>
218 <artifactId>bcel-findbugs</artifactId>
219 <version>6.0</version>
220 </dependency>
221 </dependencies>
222 </plugin>
223 <plugin>
224 <groupId>org.codehaus.mojo</groupId>
225 <artifactId>build-helper-maven-plugin</artifactId>
226 <version>1.9.1</version>
227 <executions>
228 <execution>
229 <id>timestamp-property</id>
230 <phase>initialize</phase>
231 <goals>
232 <goal>timestamp-property</goal>
233 </goals>
234 <configuration>
235 <name>currentYear</name>
236 <pattern>yyyy</pattern>
237 <locale>en_US</locale>
238 </configuration>
239 </execution>
240 </executions>
241 </plugin>
242 <!--
243 To update license headers run:
244 mvn license:format -DcurrentYear=XXXX
245 -->
246 <plugin>
247 <groupId>com.mycila</groupId>
248 <artifactId>license-maven-plugin</artifactId>
249 <version>2.8</version>
250 <configuration>
251 <header>${main.basedir}/src/license/header.txt</header>
252 <includes>
253 <include>src/**/*.java</include>
254 <include>src/**/*.xml</include>
255 <include>src/**/*.properties</include>
256 <include>**/pom.xml</include>
257 </includes>
258 <excludes>
259 <exclude>**/src/main/config/ide/**</exclude>
260 </excludes>
261 <mapping>
262 <java>SLASHSTAR_STYLE</java>
263 <properties>SCRIPT_STYLE</properties>
264 </mapping>
265 <strictCheck>true</strictCheck>
266 </configuration>
267 <executions>
268 <execution>
269 <id>check-license</id>
270 <phase>initialize</phase>
271 <goals>
272 <goal>check</goal>
273 </goals>
274 <configuration>
275 <properties>
276 <currentYear>${currentYear}</currentYear>
277 </properties>
278 </configuration>
279 </execution>
280 </executions>
281 </plugin>
282 <plugin>
283 <groupId>org.codehaus.mojo</groupId>
284 <artifactId>animal-sniffer-maven-plugin</artifactId>
285 <version>1.14</version>
286 <configuration>
287 <signature>
288 <groupId>org.codehaus.mojo.signature</groupId>
289 <artifactId>java16</artifactId>
290 <version>1.0</version>
291 </signature>
292 </configuration>
293 <executions>
294 <execution>
295 <id>check</id>
296 <phase>compile</phase>
297 <goals>
298 <goal>check</goal>
299 </goals>
300 </execution>
301 </executions>
302 </plugin>
303 </plugins>
304 </build>
305
306 <licenses>
307 <license>
308 <name>Apache 2</name>
309 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
310 <distribution>repo</distribution>
311 <comments>Apache License Version 2.0</comments>
312 </license>
313 </licenses>
314
315 <scm>
316 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
317 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
318 <url>https://github.com/datastax/java-driver</url>
319 <tag>HEAD</tag>
320 </scm>
321
322 <developers>
323 <developer>
324 <name>Various</name>
325 <organization>DataStax</organization>
326 </developer>
327 </developers>
328</project>