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