| 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>2.0.12.1-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-examples</module> |
| 39 | <module>driver-dist</module> |
| 40 | </modules> |
| 41 | |
| 42 | <properties> |
| 43 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 44 | <cassandra.version>2.0.16</cassandra.version> |
| 45 | <java.version>1.6</java.version> |
| 46 | <log4j.version>1.2.17</log4j.version> |
| 47 | <slf4j-log4j12.version>1.7.6</slf4j-log4j12.version> |
| 48 | <!-- |
| 49 | We use an old version of Guava to be compatible with Spark 1.1. |
| 50 | Check with the spark-cassandra-connector team before upgrading this. |
| 51 | --> |
| 52 | <guava.version>14.0.1</guava.version> |
| 53 | <netty.version>4.0.27.Final</netty.version> |
| 54 | <metrics.version>3.0.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 | <!-- test dependency versions --> |
| 59 | <testng.version>6.8.8</testng.version> |
| 60 | <assertj.version>1.7.0</assertj.version> |
| 61 | <mockito.version>1.10.8</mockito.version> |
| 62 | <scassandra.version>0.10.0</scassandra.version> |
| 63 | <main.basedir>${project.basedir}</main.basedir> |
| 64 | </properties> |
| 65 | |
| 66 | <dependencies> |
| 67 | <dependency> |
| 68 | <groupId>log4j</groupId> |
| 69 | <artifactId>log4j</artifactId> |
| 70 | <version>${log4j.version}</version> |
| 71 | <scope>test</scope> |
| 72 | </dependency> |
| 73 | |
| 74 | <dependency> |
| 75 | <groupId>org.slf4j</groupId> |
| 76 | <artifactId>slf4j-log4j12</artifactId> |
| 77 | <version>${slf4j-log4j12.version}</version> |
| 78 | <scope>test</scope> |
| 79 | </dependency> |
| 80 | </dependencies> |
| 81 | |
| 82 | <profiles> |
| 83 | <profile> |
| 84 | <id>doclint-java8-disable</id> |
| 85 | <activation> |
| 86 | <jdk>[1.8,)</jdk> |
| 87 | </activation> |
| 88 | <properties> |
| 89 | <javadoc.opts>-Xdoclint:none</javadoc.opts> |
| 90 | </properties> |
| 91 | </profile> |
| 92 | </profiles> |
| 93 | |
| 94 | <build> |
| 95 | <plugins> |
| 96 | <plugin> |
| 97 | <artifactId>maven-compiler-plugin</artifactId> |
| 98 | <version>3.1</version> |
| 99 | <configuration> |
| 100 | <source>${java.version}</source> |
| 101 | <target>${java.version}</target> |
| 102 | <optimize>true</optimize> |
| 103 | <showDeprecation>true</showDeprecation> |
| 104 | <showWarnings>true</showWarnings> |
| 105 | </configuration> |
| 106 | </plugin> |
| 107 | <plugin> |
| 108 | <groupId>org.apache.maven.plugins</groupId> |
| 109 | <artifactId>maven-source-plugin</artifactId> |
| 110 | <version>2.2.1</version> |
| 111 | <executions> |
| 112 | <execution> |
| 113 | <id>attach-sources</id> |
| 114 | <goals> |
| 115 | <goal>jar</goal> |
| 116 | </goals> |
| 117 | </execution> |
| 118 | </executions> |
| 119 | </plugin> |
| 120 | <plugin> |
| 121 | <groupId>org.apache.maven.plugins</groupId> |
| 122 | <artifactId>maven-javadoc-plugin</artifactId> |
| 123 | <version>2.9.1</version> |
| 124 | <configuration> |
| 125 | <!-- I can haz math in my javadoc (see http://zverovich.net/2012/01/14/beautiful-math-in-javadoc.html) --> |
| 126 | <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam> |
| 127 | </configuration> |
| 128 | <executions> |
| 129 | <execution> |
| 130 | <id>attach-javadocs</id> |
| 131 | <goals> |
| 132 | <goal>jar</goal> |
| 133 | </goals> |
| 134 | <configuration> |
| 135 | <additionalparam>${javadoc.opts}</additionalparam> |
| 136 | </configuration> |
| 137 | </execution> |
| 138 | </executions> |
| 139 | </plugin> |
| 140 | <plugin> |
| 141 | <artifactId>maven-assembly-plugin</artifactId> |
| 142 | <version>2.4</version> |
| 143 | <configuration> |
| 144 | <descriptorRefs> |
| 145 | <descriptorRef>jar-with-dependencies</descriptorRef> |
| 146 | </descriptorRefs> |
| 147 | </configuration> |
| 148 | </plugin> |
| 149 | <plugin> |
| 150 | <groupId>org.apache.maven.plugins</groupId> |
| 151 | <artifactId>maven-release-plugin</artifactId> |
| 152 | <version>2.5</version> |
| 153 | <configuration> |
| 154 | <tagNameFormat>@{project.version}</tagNameFormat> |
| 155 | </configuration> |
| 156 | </plugin> |
| 157 | <plugin> |
| 158 | <groupId>org.codehaus.mojo</groupId> |
| 159 | <artifactId>clirr-maven-plugin</artifactId> |
| 160 | <version>2.6.1</version> |
| 161 | <executions> |
| 162 | <execution> |
| 163 | <phase>compile</phase> |
| 164 | <goals><goal>check</goal></goals> |
| 165 | </execution> |
| 166 | </executions> |
| 167 | <configuration> |
| 168 | <comparisonVersion>2.0.11</comparisonVersion> |
| 169 | <ignoredDifferencesFile>../clirr-ignores.xml</ignoredDifferencesFile> |
| 170 | <excludes> |
| 171 | <!-- Package-private, internal classes --> |
| 172 | <exclude>com/datastax/driver/core/Frame$*</exclude> |
| 173 | <exclude>com/datastax/driver/core/ProtocolEvent$*</exclude> |
| 174 | <exclude>com/datastax/driver/core/Message$*</exclude> |
| 175 | <exclude>com/datastax/driver/core/Requests$*</exclude> |
| 176 | <exclude>com/datastax/driver/core/Responses$*</exclude> |
| 177 | <exclude>com/datastax/driver/core/Connection$*</exclude> |
| 178 | </excludes> |
| 179 | </configuration> |
| 180 | </plugin> |
| 181 | <!-- |
| 182 | To update license headers run: |
| 183 | mvn license:format |
| 184 | --> |
| 185 | <plugin> |
| 186 | <groupId>com.mycila</groupId> |
| 187 | <artifactId>license-maven-plugin</artifactId> |
| 188 | <version>2.8</version> |
| 189 | <configuration> |
| 190 | <header>${main.basedir}/src/license/header.txt</header> |
| 191 | <includes> |
| 192 | <include>src/**/*.java</include> |
| 193 | <include>src/**/*.xml</include> |
| 194 | <include>src/**/*.properties</include> |
| 195 | <include>**/pom.xml</include> |
| 196 | </includes> |
| 197 | <excludes> |
| 198 | <exclude>**/src/main/config/ide/**</exclude> |
| 199 | </excludes> |
| 200 | <mapping> |
| 201 | <java>SLASHSTAR_STYLE</java> |
| 202 | <properties>SCRIPT_STYLE</properties> |
| 203 | </mapping> |
| 204 | <strictCheck>true</strictCheck> |
| 205 | </configuration> |
| 206 | <executions> |
| 207 | <execution> |
| 208 | <id>check-license</id> |
| 209 | <phase>initialize</phase> |
| 210 | <goals> |
| 211 | <goal>check</goal> |
| 212 | </goals> |
| 213 | </execution> |
| 214 | </executions> |
| 215 | </plugin> |
| 216 | </plugins> |
| 217 | </build> |
| 218 | |
| 219 | <licenses> |
| 220 | <license> |
| 221 | <name>Apache 2</name> |
| 222 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 223 | <distribution>repo</distribution> |
| 224 | <comments>Apache License Version 2.0</comments> |
| 225 | </license> |
| 226 | </licenses> |
| 227 | |
| 228 | <scm> |
| 229 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 230 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 231 | <url>https://github.com/datastax/java-driver</url> |
| 232 | <tag>HEAD</tag> |
| 233 | </scm> |
| 234 | |
| 235 | <developers> |
| 236 | <developer> |
| 237 | <name>Various</name> |
| 238 | <organization>DataStax</organization> |
| 239 | </developer> |
| 240 | </developers> |
| 241 | </project> |