| 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/xsd/maven-4.0.0.xsd"> |
| 19 | <parent> |
| 20 | <artifactId>cassandra-driver-parent</artifactId> |
| 21 | <groupId>com.datastax.cassandra</groupId> |
| 22 | <version>3.1.5-SNAPSHOT</version> |
| 23 | </parent> |
| 24 | <modelVersion>4.0.0</modelVersion> |
| 25 | |
| 26 | <artifactId>cassandra-driver-extras</artifactId> |
| 27 | <packaging>bundle</packaging> |
| 28 | <name>DataStax Java Driver for Apache Cassandra - Extras</name> |
| 29 | <description>Extended functionality for the Java driver.</description> |
| 30 | <url>https://github.com/datastax/java-driver</url> |
| 31 | |
| 32 | <properties> |
| 33 | <main.basedir>${project.parent.basedir}</main.basedir> |
| 34 | <test.groups>unit</test.groups> |
| 35 | <jdk8.excludes>none</jdk8.excludes> |
| 36 | </properties> |
| 37 | |
| 38 | <dependencies> |
| 39 | |
| 40 | <dependency> |
| 41 | <groupId>com.datastax.cassandra</groupId> |
| 42 | <artifactId>cassandra-driver-core</artifactId> |
| 43 | <version>${project.parent.version}</version> |
| 44 | </dependency> |
| 45 | |
| 46 | <dependency> |
| 47 | <groupId>com.google.guava</groupId> |
| 48 | <artifactId>guava</artifactId> |
| 49 | <version>${guava.version}</version> |
| 50 | </dependency> |
| 51 | |
| 52 | <dependency> |
| 53 | <groupId>com.fasterxml.jackson.core</groupId> |
| 54 | <artifactId>jackson-databind</artifactId> |
| 55 | <version>${jackson.version}</version> |
| 56 | <optional>true</optional> |
| 57 | </dependency> |
| 58 | |
| 59 | <dependency> |
| 60 | <groupId>joda-time</groupId> |
| 61 | <artifactId>joda-time</artifactId> |
| 62 | <version>${joda.version}</version> |
| 63 | <optional>true</optional> |
| 64 | </dependency> |
| 65 | |
| 66 | <dependency> |
| 67 | <groupId>javax.json</groupId> |
| 68 | <artifactId>javax.json-api</artifactId> |
| 69 | <version>${jsr353-api.version}</version> |
| 70 | <optional>true</optional> |
| 71 | </dependency> |
| 72 | |
| 73 | <dependency> |
| 74 | <groupId>com.datastax.cassandra</groupId> |
| 75 | <artifactId>cassandra-driver-core</artifactId> |
| 76 | <version>${project.parent.version}</version> |
| 77 | <type>test-jar</type> |
| 78 | <scope>test</scope> |
| 79 | </dependency> |
| 80 | |
| 81 | <dependency> |
| 82 | <groupId>com.datastax.cassandra</groupId> |
| 83 | <artifactId>cassandra-driver-mapping</artifactId> |
| 84 | <version>${project.parent.version}</version> |
| 85 | <scope>test</scope> |
| 86 | </dependency> |
| 87 | |
| 88 | <dependency> |
| 89 | <groupId>org.testng</groupId> |
| 90 | <artifactId>testng</artifactId> |
| 91 | <version>${testng.version}</version> |
| 92 | <scope>test</scope> |
| 93 | </dependency> |
| 94 | |
| 95 | <dependency> |
| 96 | <groupId>org.assertj</groupId> |
| 97 | <artifactId>assertj-core</artifactId> |
| 98 | <version>${assertj.version}</version> |
| 99 | <scope>test</scope> |
| 100 | </dependency> |
| 101 | |
| 102 | <dependency> |
| 103 | <groupId>org.mockito</groupId> |
| 104 | <artifactId>mockito-all</artifactId> |
| 105 | <version>${mockito.version}</version> |
| 106 | <scope>test</scope> |
| 107 | </dependency> |
| 108 | |
| 109 | <dependency> |
| 110 | <groupId>org.apache.commons</groupId> |
| 111 | <artifactId>commons-exec</artifactId> |
| 112 | <version>${commons-exec.version}</version> |
| 113 | <scope>test</scope> |
| 114 | </dependency> |
| 115 | |
| 116 | <dependency> |
| 117 | <groupId>org.glassfish</groupId> |
| 118 | <artifactId>javax.json</artifactId> |
| 119 | <version>${jsr353-ri.version}</version> |
| 120 | <scope>test</scope> |
| 121 | </dependency> |
| 122 | |
| 123 | <dependency> |
| 124 | <groupId>log4j</groupId> |
| 125 | <artifactId>log4j</artifactId> |
| 126 | <version>${log4j.version}</version> |
| 127 | <scope>test</scope> |
| 128 | </dependency> |
| 129 | |
| 130 | <dependency> |
| 131 | <groupId>org.slf4j</groupId> |
| 132 | <artifactId>slf4j-log4j12</artifactId> |
| 133 | <version>${slf4j-log4j12.version}</version> |
| 134 | <scope>test</scope> |
| 135 | </dependency> |
| 136 | |
| 137 | </dependencies> |
| 138 | |
| 139 | <build> |
| 140 | |
| 141 | <plugins> |
| 142 | |
| 143 | <plugin> |
| 144 | <groupId>org.apache.maven.plugins</groupId> |
| 145 | <artifactId>maven-compiler-plugin</artifactId> |
| 146 | <configuration> |
| 147 | <excludes> |
| 148 | <exclude>${jdk8.excludes}</exclude> |
| 149 | </excludes> |
| 150 | <testExcludes> |
| 151 | <exclude>${jdk8.excludes}</exclude> |
| 152 | </testExcludes> |
| 153 | </configuration> |
| 154 | </plugin> |
| 155 | |
| 156 | <plugin> |
| 157 | <groupId>org.codehaus.mojo</groupId> |
| 158 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 159 | <executions> |
| 160 | <execution> |
| 161 | <id>check</id> |
| 162 | <phase>process-classes</phase> |
| 163 | <goals> |
| 164 | <goal>check</goal> |
| 165 | </goals> |
| 166 | <configuration> |
| 167 | <signature> |
| 168 | <groupId>org.codehaus.mojo.signature</groupId> |
| 169 | <artifactId>java16</artifactId> |
| 170 | <version>1.0</version> |
| 171 | </signature> |
| 172 | <annotations> |
| 173 | <annotation>com.datastax.driver.extras.codecs.jdk8.IgnoreJDK6Requirement</annotation> |
| 174 | </annotations> |
| 175 | </configuration> |
| 176 | </execution> |
| 177 | <execution> |
| 178 | <id>check-jdk8</id> |
| 179 | <phase>process-classes</phase> |
| 180 | <goals> |
| 181 | <goal>check</goal> |
| 182 | </goals> |
| 183 | <configuration> |
| 184 | <signature> |
| 185 | <groupId>org.codehaus.mojo.signature</groupId> |
| 186 | <artifactId>java18</artifactId> |
| 187 | <version>1.0</version> |
| 188 | </signature> |
| 189 | </configuration> |
| 190 | </execution> |
| 191 | </executions> |
| 192 | </plugin> |
| 193 | |
| 194 | <plugin> |
| 195 | <groupId>org.apache.maven.plugins</groupId> |
| 196 | <artifactId>maven-surefire-plugin</artifactId> |
| 197 | <version>2.16</version> |
| 198 | <configuration> |
| 199 | <groups>${test.groups}</groups> |
| 200 | <useFile>false</useFile> |
| 201 | <systemPropertyVariables> |
| 202 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 203 | <ipprefix>${ipprefix}</ipprefix> |
| 204 | </systemPropertyVariables> |
| 205 | <classpathDependencyExcludes> |
| 206 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 207 | </classpathDependencyExcludes> |
| 208 | <excludes> |
| 209 | <exclude>${jdk8.excludes}</exclude> |
| 210 | </excludes> |
| 211 | </configuration> |
| 212 | </plugin> |
| 213 | |
| 214 | <plugin> |
| 215 | <groupId>org.apache.felix</groupId> |
| 216 | <artifactId>maven-bundle-plugin</artifactId> |
| 217 | <extensions>true</extensions> |
| 218 | <version>2.4.0</version> |
| 219 | <executions> |
| 220 | <execution> |
| 221 | <id>bundle-manifest</id> |
| 222 | <phase>process-classes</phase> |
| 223 | <goals> |
| 224 | <goal>manifest</goal> |
| 225 | </goals> |
| 226 | </execution> |
| 227 | </executions> |
| 228 | <configuration> |
| 229 | <instructions> |
| 230 | <Bundle-SymbolicName>com.datastax.driver.extras</Bundle-SymbolicName> |
| 231 | <Bundle-Version>${project.version}</Bundle-Version> |
| 232 | <_include>-osgi.bnd</_include> |
| 233 | <Import-Package><![CDATA[com.google.common*;version="[16.0.1,20)",*]]></Import-Package> |
| 234 | </instructions> |
| 235 | <supportedProjectTypes> |
| 236 | <supportedProjectType>jar</supportedProjectType> |
| 237 | <supportedProjectType>bundle</supportedProjectType> |
| 238 | <supportedProjectType>pom</supportedProjectType> |
| 239 | </supportedProjectTypes> |
| 240 | </configuration> |
| 241 | </plugin> |
| 242 | |
| 243 | </plugins> |
| 244 | |
| 245 | </build> |
| 246 | |
| 247 | <profiles> |
| 248 | |
| 249 | <profile> |
| 250 | <id>short</id> |
| 251 | <properties> |
| 252 | <test.groups>unit,short</test.groups> |
| 253 | </properties> |
| 254 | </profile> |
| 255 | |
| 256 | <profile> |
| 257 | <id>long</id> |
| 258 | <properties> |
| 259 | <test.groups>unit,short,long</test.groups> |
| 260 | </properties> |
| 261 | </profile> |
| 262 | |
| 263 | <!-- |
| 264 | This profile excludes all JDK 8 dependent classes from |
| 265 | compilation. Use this when running tests with a legacy JDK (6 or 7) |
| 266 | --> |
| 267 | <profile> |
| 268 | <id>legacy-jdks</id> |
| 269 | <activation> |
| 270 | <jdk>[,1.8)</jdk> |
| 271 | </activation> |
| 272 | <properties> |
| 273 | <jdk8.excludes>**/jdk8/*.java</jdk8.excludes> |
| 274 | </properties> |
| 275 | </profile> |
| 276 | |
| 277 | </profiles> |
| 278 | |
| 279 | <licenses> |
| 280 | <license> |
| 281 | <name>Apache 2</name> |
| 282 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 283 | <distribution>repo</distribution> |
| 284 | <comments>Apache License Version 2.0</comments> |
| 285 | </license> |
| 286 | </licenses> |
| 287 | |
| 288 | <scm> |
| 289 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 290 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 291 | <url>https://github.com/datastax/java-driver</url> |
| 292 | <tag>HEAD</tag> |
| 293 | </scm> |
| 294 | |
| 295 | <developers> |
| 296 | <developer> |
| 297 | <name>Various</name> |
| 298 | <organization>DataStax</organization> |
| 299 | </developer> |
| 300 | </developers> |
| 301 | |
| 302 | </project> |