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