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