| 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>com.datastax.cassandra</groupId> |
| 22 | <artifactId>cassandra-driver-parent</artifactId> |
| 23 | <version>2.0.12.1</version> |
| 24 | </parent> |
| 25 | <artifactId>cassandra-driver-core</artifactId> |
| 26 | <packaging>bundle</packaging> |
| 27 | <name>DataStax Java Driver for Apache Cassandra - Core</name> |
| 28 | <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> |
| 29 | <url>https://github.com/datastax/java-driver</url> |
| 30 | |
| 31 | <properties> |
| 32 | <main.basedir>${project.parent.basedir}</main.basedir> |
| 33 | </properties> |
| 34 | |
| 35 | <dependencies> |
| 36 | <dependency> |
| 37 | <groupId>io.netty</groupId> |
| 38 | <artifactId>netty-handler</artifactId> |
| 39 | <version>${netty.version}</version> |
| 40 | </dependency> |
| 41 | |
| 42 | <dependency> |
| 43 | <groupId>com.google.guava</groupId> |
| 44 | <artifactId>guava</artifactId> |
| 45 | <version>${guava.version}</version> |
| 46 | </dependency> |
| 47 | |
| 48 | <dependency> |
| 49 | <groupId>com.codahale.metrics</groupId> |
| 50 | <artifactId>metrics-core</artifactId> |
| 51 | <version>${metrics.version}</version> |
| 52 | </dependency> |
| 53 | |
| 54 | <!-- Compression libraries for the protocol. --> |
| 55 | <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers --> |
| 56 | |
| 57 | <dependency> |
| 58 | <groupId>org.xerial.snappy</groupId> |
| 59 | <artifactId>snappy-java</artifactId> |
| 60 | <version>${snappy.version}</version> |
| 61 | <optional>true</optional> |
| 62 | </dependency> |
| 63 | |
| 64 | <dependency> |
| 65 | <groupId>net.jpountz.lz4</groupId> |
| 66 | <artifactId>lz4</artifactId> |
| 67 | <version>${lz4.version}</version> |
| 68 | <optional>true</optional> |
| 69 | </dependency> |
| 70 | |
| 71 | <!-- End of compression libraries --> |
| 72 | |
| 73 | <dependency> |
| 74 | <groupId>io.netty</groupId> |
| 75 | <artifactId>netty-transport-native-epoll</artifactId> |
| 76 | <version>${netty.version}</version> |
| 77 | <optional>true</optional> |
| 78 | </dependency> |
| 79 | |
| 80 | <dependency> |
| 81 | <groupId>org.hdrhistogram</groupId> |
| 82 | <artifactId>HdrHistogram</artifactId> |
| 83 | <version>${hdr.version}</version> |
| 84 | <optional>true</optional> |
| 85 | </dependency> |
| 86 | |
| 87 | <dependency> |
| 88 | <groupId>org.testng</groupId> |
| 89 | <artifactId>testng</artifactId> |
| 90 | <version>${testng.version}</version> |
| 91 | <scope>test</scope> |
| 92 | </dependency> |
| 93 | |
| 94 | <dependency> |
| 95 | <groupId>org.assertj</groupId> |
| 96 | <artifactId>assertj-core</artifactId> |
| 97 | <version>${assertj.version}</version> |
| 98 | <scope>test</scope> |
| 99 | </dependency> |
| 100 | |
| 101 | <dependency> |
| 102 | <groupId>org.mockito</groupId> |
| 103 | <artifactId>mockito-all</artifactId> |
| 104 | <version>${mockito.version}</version> |
| 105 | <scope>test</scope> |
| 106 | </dependency> |
| 107 | |
| 108 | <dependency> |
| 109 | <groupId>org.scassandra</groupId> |
| 110 | <artifactId>java-client</artifactId> |
| 111 | <version>${scassandra.version}</version> |
| 112 | <scope>test</scope> |
| 113 | <exclusions> |
| 114 | <exclusion> |
| 115 | <groupId>ch.qos.logback</groupId> |
| 116 | <artifactId>logback-classic</artifactId> |
| 117 | </exclusion> |
| 118 | </exclusions> |
| 119 | </dependency> |
| 120 | |
| 121 | <dependency> |
| 122 | <groupId>org.apache.commons</groupId> |
| 123 | <artifactId>commons-exec</artifactId> |
| 124 | <version>1.3</version> |
| 125 | <scope>test</scope> |
| 126 | </dependency> |
| 127 | |
| 128 | </dependencies> |
| 129 | |
| 130 | <build> |
| 131 | <resources> |
| 132 | <resource> |
| 133 | <directory>src/main/resources</directory> |
| 134 | <filtering>true</filtering> |
| 135 | </resource> |
| 136 | </resources> |
| 137 | <plugins> |
| 138 | <plugin> |
| 139 | <artifactId>maven-compiler-plugin</artifactId> |
| 140 | <configuration> |
| 141 | <compilerArgument>-Xlint:all</compilerArgument> |
| 142 | <showWarnings>true</showWarnings> |
| 143 | <showDeprecation>true</showDeprecation> |
| 144 | </configuration> |
| 145 | </plugin> |
| 146 | <plugin> |
| 147 | <groupId>org.apache.maven.plugins</groupId> |
| 148 | <artifactId>maven-jar-plugin</artifactId> |
| 149 | <version>2.2</version> |
| 150 | <executions> |
| 151 | <execution> |
| 152 | <goals> |
| 153 | <goal>test-jar</goal> |
| 154 | </goals> |
| 155 | <phase>test-compile</phase> |
| 156 | </execution> |
| 157 | </executions> |
| 158 | </plugin> |
| 159 | <plugin> |
| 160 | <groupId>org.apache.felix</groupId> |
| 161 | <artifactId>maven-bundle-plugin</artifactId> |
| 162 | <extensions>true</extensions> |
| 163 | <version>2.4.0</version> |
| 164 | <!-- |
| 165 | Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase |
| 166 | (because the project uses the `bundle` packaging) |
| 167 | --> |
| 168 | <configuration> |
| 169 | <instructions> |
| 170 | <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName> |
| 171 | <Bundle-Version>${project.version}</Bundle-Version> |
| 172 | <_include>-osgi.bnd</_include> |
| 173 | <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package> |
| 174 | </instructions> |
| 175 | <supportedProjectTypes> |
| 176 | <supportedProjectType>jar</supportedProjectType> |
| 177 | <supportedProjectType>bundle</supportedProjectType> |
| 178 | <supportedProjectType>pom</supportedProjectType> |
| 179 | </supportedProjectTypes> |
| 180 | </configuration> |
| 181 | <executions> |
| 182 | <!-- Alternate execution to generate the shaded JAR's manifest --> |
| 183 | <execution> |
| 184 | <id>bundle-manifest-shaded</id> |
| 185 | <phase>prepare-package</phase> |
| 186 | <goals> |
| 187 | <goal>manifest</goal> |
| 188 | </goals> |
| 189 | <configuration> |
| 190 | <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation> |
| 191 | <instructions> |
| 192 | <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",!io.netty.*,*]]></Import-Package> |
| 193 | <Private-Package>com.datastax.shaded.*</Private-Package> |
| 194 | </instructions> |
| 195 | </configuration> |
| 196 | </execution> |
| 197 | </executions> |
| 198 | </plugin> |
| 199 | <plugin> |
| 200 | <artifactId>maven-shade-plugin</artifactId> |
| 201 | <version>2.3</version> |
| 202 | <executions> |
| 203 | <execution> |
| 204 | <phase>package</phase> |
| 205 | <goals><goal>shade</goal></goals> |
| 206 | <configuration> |
| 207 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 208 | <artifactSet> |
| 209 | <includes> |
| 210 | <include>io.netty:*</include> |
| 211 | </includes> |
| 212 | <excludes> |
| 213 | <exclude>io.netty:netty-transport-native-epoll</exclude> |
| 214 | </excludes> |
| 215 | </artifactSet> |
| 216 | <relocations> |
| 217 | <relocation> |
| 218 | <pattern>io.netty</pattern> |
| 219 | <shadedPattern>com.datastax.shaded.netty</shadedPattern> |
| 220 | </relocation> |
| 221 | </relocations> |
| 222 | <transformers> |
| 223 | <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| 224 | <resources> |
| 225 | <resource>META-INF/MANIFEST.MF</resource> |
| 226 | <resource>META-INF/io.netty.versions.properties</resource> |
| 227 | <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource> |
| 228 | <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource> |
| 229 | <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource> |
| 230 | <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource> |
| 231 | <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource> |
| 232 | <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource> |
| 233 | <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource> |
| 234 | <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource> |
| 235 | <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource> |
| 236 | <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource> |
| 237 | </resources> |
| 238 | </transformer> |
| 239 | <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin --> |
| 240 | <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| 241 | <resource>META-INF/MANIFEST.MF</resource> |
| 242 | <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file> |
| 243 | </transformer> |
| 244 | </transformers> |
| 245 | </configuration> |
| 246 | </execution> |
| 247 | </executions> |
| 248 | </plugin> |
| 249 | </plugins> |
| 250 | <pluginManagement> |
| 251 | <plugins> |
| 252 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 253 | <plugin> |
| 254 | <groupId>org.eclipse.m2e</groupId> |
| 255 | <artifactId>lifecycle-mapping</artifactId> |
| 256 | <version>1.0.0</version> |
| 257 | <configuration> |
| 258 | <lifecycleMappingMetadata> |
| 259 | <pluginExecutions> |
| 260 | <pluginExecution> |
| 261 | <pluginExecutionFilter> |
| 262 | <groupId>org.apache.maven.plugins</groupId> |
| 263 | <artifactId>maven-jar-plugin</artifactId> |
| 264 | <versionRange>[2.2,)</versionRange> |
| 265 | <goals> |
| 266 | <goal>test-jar</goal> |
| 267 | </goals> |
| 268 | </pluginExecutionFilter> |
| 269 | <action> |
| 270 | <ignore /> |
| 271 | </action> |
| 272 | </pluginExecution> |
| 273 | </pluginExecutions> |
| 274 | </lifecycleMappingMetadata> |
| 275 | </configuration> |
| 276 | </plugin> |
| 277 | </plugins> |
| 278 | </pluginManagement> |
| 279 | </build> |
| 280 | |
| 281 | <profiles> |
| 282 | <profile> |
| 283 | <id>default</id> |
| 284 | <properties> |
| 285 | <env>default</env> |
| 286 | </properties> |
| 287 | <activation> |
| 288 | <activeByDefault>true</activeByDefault> |
| 289 | </activation> |
| 290 | <build> |
| 291 | <plugins> |
| 292 | <plugin> |
| 293 | <groupId>org.apache.maven.plugins</groupId> |
| 294 | <artifactId>maven-surefire-plugin</artifactId> |
| 295 | <version>2.16</version> |
| 296 | <configuration> |
| 297 | <groups>unit</groups> |
| 298 | <useFile>false</useFile> |
| 299 | <systemPropertyVariables> |
| 300 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 301 | <ipprefix>${ipprefix}</ipprefix> |
| 302 | <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS> |
| 303 | </systemPropertyVariables> |
| 304 | <classpathDependencyExcludes> |
| 305 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 306 | </classpathDependencyExcludes> |
| 307 | <!--May be needed for debugging--> |
| 308 | <!--<forkMode>never</forkMode>--> |
| 309 | </configuration> |
| 310 | </plugin> |
| 311 | </plugins> |
| 312 | </build> |
| 313 | </profile> |
| 314 | |
| 315 | <profile> |
| 316 | <id>short</id> |
| 317 | <properties> |
| 318 | <env>default</env> |
| 319 | </properties> |
| 320 | <build> |
| 321 | <plugins> |
| 322 | <plugin> |
| 323 | <groupId>org.apache.maven.plugins</groupId> |
| 324 | <artifactId>maven-surefire-plugin</artifactId> |
| 325 | <version>2.16</version> |
| 326 | <configuration> |
| 327 | <groups>unit,short</groups> |
| 328 | <useFile>false</useFile> |
| 329 | <systemPropertyVariables> |
| 330 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 331 | <ipprefix>${ipprefix}</ipprefix> |
| 332 | </systemPropertyVariables> |
| 333 | <classpathDependencyExcludes> |
| 334 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 335 | </classpathDependencyExcludes> |
| 336 | </configuration> |
| 337 | </plugin> |
| 338 | </plugins> |
| 339 | </build> |
| 340 | </profile> |
| 341 | |
| 342 | <profile> |
| 343 | <id>isolated</id> |
| 344 | <properties> |
| 345 | <env>default</env> |
| 346 | </properties> |
| 347 | <build> |
| 348 | <plugins> |
| 349 | <plugin> |
| 350 | <groupId>org.apache.maven.plugins</groupId> |
| 351 | <artifactId>maven-surefire-plugin</artifactId> |
| 352 | <version>2.16</version> |
| 353 | <configuration> |
| 354 | <forkCount>1</forkCount> |
| 355 | <reuseForks>false</reuseForks> |
| 356 | <groups>isolated</groups> |
| 357 | <!-- Files containing tests to be included must be added here. |
| 358 | this prevents a fork being created for each test class. --> |
| 359 | <includes> |
| 360 | <include>**/SSL*Test.java</include> |
| 361 | </includes> |
| 362 | <reportNameSuffix>isolated</reportNameSuffix> |
| 363 | <useFile>false</useFile> |
| 364 | <systemPropertyVariables> |
| 365 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 366 | <ipprefix>${ipprefix}</ipprefix> |
| 367 | </systemPropertyVariables> |
| 368 | <classpathDependencyExcludes> |
| 369 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 370 | </classpathDependencyExcludes> |
| 371 | </configuration> |
| 372 | </plugin> |
| 373 | </plugins> |
| 374 | </build> |
| 375 | </profile> |
| 376 | |
| 377 | <profile> |
| 378 | <id>long</id> |
| 379 | <properties> |
| 380 | <env>default</env> |
| 381 | </properties> |
| 382 | <build> |
| 383 | <plugins> |
| 384 | <plugin> |
| 385 | <groupId>org.apache.maven.plugins</groupId> |
| 386 | <artifactId>maven-surefire-plugin</artifactId> |
| 387 | <version>2.16</version> |
| 388 | <configuration> |
| 389 | <groups>unit,short,long</groups> |
| 390 | <useFile>false</useFile> |
| 391 | <systemPropertyVariables> |
| 392 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 393 | <ipprefix>${ipprefix}</ipprefix> |
| 394 | </systemPropertyVariables> |
| 395 | <classpathDependencyExcludes> |
| 396 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 397 | </classpathDependencyExcludes> |
| 398 | </configuration> |
| 399 | </plugin> |
| 400 | </plugins> |
| 401 | </build> |
| 402 | </profile> |
| 403 | |
| 404 | <profile> |
| 405 | <id>duration</id> |
| 406 | <properties> |
| 407 | <env>default</env> |
| 408 | </properties> |
| 409 | <build> |
| 410 | <plugins> |
| 411 | <plugin> |
| 412 | <groupId>org.apache.maven.plugins</groupId> |
| 413 | <artifactId>maven-surefire-plugin</artifactId> |
| 414 | <version>2.16</version> |
| 415 | <configuration> |
| 416 | <groups>unit,short,long,duration</groups> |
| 417 | <useFile>false</useFile> |
| 418 | <systemPropertyVariables> |
| 419 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 420 | <ipprefix>${ipprefix}</ipprefix> |
| 421 | </systemPropertyVariables> |
| 422 | <classpathDependencyExcludes> |
| 423 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 424 | </classpathDependencyExcludes> |
| 425 | </configuration> |
| 426 | </plugin> |
| 427 | </plugins> |
| 428 | </build> |
| 429 | </profile> |
| 430 | |
| 431 | <profile> |
| 432 | <id>doc</id> |
| 433 | <properties> |
| 434 | <env>default</env> |
| 435 | </properties> |
| 436 | <build> |
| 437 | <plugins> |
| 438 | <plugin> |
| 439 | <groupId>org.apache.maven.plugins</groupId> |
| 440 | <artifactId>maven-surefire-plugin</artifactId> |
| 441 | <version>2.16</version> |
| 442 | <configuration> |
| 443 | <groups>unit,doc</groups> |
| 444 | <useFile>false</useFile> |
| 445 | <systemPropertyVariables> |
| 446 | <cassandra.version>${cassandra.version}</cassandra.version> |
| 447 | <ipprefix>${ipprefix}</ipprefix> |
| 448 | </systemPropertyVariables> |
| 449 | <classpathDependencyExcludes> |
| 450 | <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes> |
| 451 | </classpathDependencyExcludes> |
| 452 | </configuration> |
| 453 | </plugin> |
| 454 | </plugins> |
| 455 | </build> |
| 456 | </profile> |
| 457 | </profiles> |
| 458 | |
| 459 | <licenses> |
| 460 | <license> |
| 461 | <name>Apache 2</name> |
| 462 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 463 | <distribution>repo</distribution> |
| 464 | <comments>Apache License Version 2.0</comments> |
| 465 | </license> |
| 466 | </licenses> |
| 467 | |
| 468 | <scm> |
| 469 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 470 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 471 | <url>https://github.com/datastax/java-driver</url> |
| 472 | <tag>2.0.12.1</tag> |
| 473 | </scm> |
| 474 | |
| 475 | <developers> |
| 476 | <developer> |
| 477 | <name>Various</name> |
| 478 | <organization>DataStax</organization> |
| 479 | </developer> |
| 480 | </developers> |
| 481 | |
| 482 | </project> |
| 483 | |