| 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>3.1.5-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 |
| 29 | (CQL3) and Cassandra's binary protocol. |
| 30 | </description> |
| 31 | <url>https://github.com/datastax/java-driver</url> |
| 32 | |
| 33 | <properties> |
| 34 | <main.basedir>${project.parent.basedir}</main.basedir> |
| 35 | </properties> |
| 36 | |
| 37 | <dependencies> |
| 38 | <dependency> |
| 39 | <groupId>io.netty</groupId> |
| 40 | <artifactId>netty-handler</artifactId> |
| 41 | <version>${netty.version}</version> |
| 42 | </dependency> |
| 43 | |
| 44 | <dependency> |
| 45 | <groupId>com.google.guava</groupId> |
| 46 | <artifactId>guava</artifactId> |
| 47 | <version>${guava.version}</version> |
| 48 | </dependency> |
| 49 | |
| 50 | <dependency> |
| 51 | <groupId>io.dropwizard.metrics</groupId> |
| 52 | <artifactId>metrics-core</artifactId> |
| 53 | <version>${metrics.version}</version> |
| 54 | </dependency> |
| 55 | |
| 56 | <dependency> |
| 57 | <groupId>com.github.jnr</groupId> |
| 58 | <artifactId>jnr-ffi</artifactId> |
| 59 | <version>${jnr-ffi.version}</version> |
| 60 | </dependency> |
| 61 | |
| 62 | <dependency> |
| 63 | <groupId>com.github.jnr</groupId> |
| 64 | <artifactId>jnr-posix</artifactId> |
| 65 | <version>${jnr-posix.version}</version> |
| 66 | </dependency> |
| 67 | |
| 68 | <!-- Compression libraries for the protocol. --> |
| 69 | <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers --> |
| 70 | |
| 71 | <dependency> |
| 72 | <groupId>org.xerial.snappy</groupId> |
| 73 | <artifactId>snappy-java</artifactId> |
| 74 | <version>${snappy.version}</version> |
| 75 | <optional>true</optional> |
| 76 | </dependency> |
| 77 | |
| 78 | <dependency> |
| 79 | <groupId>net.jpountz.lz4</groupId> |
| 80 | <artifactId>lz4</artifactId> |
| 81 | <version>${lz4.version}</version> |
| 82 | <optional>true</optional> |
| 83 | </dependency> |
| 84 | |
| 85 | <!-- End of compression libraries --> |
| 86 | |
| 87 | <dependency> |
| 88 | <groupId>io.netty</groupId> |
| 89 | <artifactId>netty-transport-native-epoll</artifactId> |
| 90 | <version>${netty.version}</version> |
| 91 | <optional>true</optional> |
| 92 | </dependency> |
| 93 | |
| 94 | <dependency> |
| 95 | <groupId>org.hdrhistogram</groupId> |
| 96 | <artifactId>HdrHistogram</artifactId> |
| 97 | <version>${hdr.version}</version> |
| 98 | <optional>true</optional> |
| 99 | </dependency> |
| 100 | |
| 101 | <dependency> |
| 102 | <groupId>org.testng</groupId> |
| 103 | <artifactId>testng</artifactId> |
| 104 | <version>${testng.version}</version> |
| 105 | <scope>test</scope> |
| 106 | </dependency> |
| 107 | |
| 108 | <dependency> |
| 109 | <groupId>org.assertj</groupId> |
| 110 | <artifactId>assertj-core</artifactId> |
| 111 | <version>${assertj.version}</version> |
| 112 | <scope>test</scope> |
| 113 | </dependency> |
| 114 | |
| 115 | <dependency> |
| 116 | <groupId>org.mockito</groupId> |
| 117 | <artifactId>mockito-all</artifactId> |
| 118 | <version>${mockito.version}</version> |
| 119 | <scope>test</scope> |
| 120 | </dependency> |
| 121 | |
| 122 | <dependency> |
| 123 | <groupId>org.scassandra</groupId> |
| 124 | <artifactId>java-client</artifactId> |
| 125 | <version>${scassandra.version}</version> |
| 126 | <scope>test</scope> |
| 127 | <exclusions> |
| 128 | <exclusion> |
| 129 | <groupId>ch.qos.logback</groupId> |
| 130 | <artifactId>logback-classic</artifactId> |
| 131 | </exclusion> |
| 132 | </exclusions> |
| 133 | </dependency> |
| 134 | |
| 135 | <dependency> |
| 136 | <groupId>org.apache.commons</groupId> |
| 137 | <artifactId>commons-exec</artifactId> |
| 138 | <version>${commons-exec.version}</version> |
| 139 | <scope>test</scope> |
| 140 | </dependency> |
| 141 | |
| 142 | <dependency> |
| 143 | <groupId>io.netty</groupId> |
| 144 | <artifactId>netty-tcnative</artifactId> |
| 145 | <version>1.1.33.Fork18</version> |
| 146 | <classifier>${os.detected.classifier}</classifier> |
| 147 | <scope>test</scope> |
| 148 | </dependency> |
| 149 | |
| 150 | <dependency> |
| 151 | <groupId>log4j</groupId> |
| 152 | <artifactId>log4j</artifactId> |
| 153 | <version>${log4j.version}</version> |
| 154 | <scope>test</scope> |
| 155 | </dependency> |
| 156 | |
| 157 | <dependency> |
| 158 | <groupId>org.slf4j</groupId> |
| 159 | <artifactId>slf4j-log4j12</artifactId> |
| 160 | <version>${slf4j-log4j12.version}</version> |
| 161 | <scope>test</scope> |
| 162 | </dependency> |
| 163 | |
| 164 | </dependencies> |
| 165 | |
| 166 | <build> |
| 167 | <resources> |
| 168 | <resource> |
| 169 | <directory>src/main/resources</directory> |
| 170 | <filtering>true</filtering> |
| 171 | </resource> |
| 172 | </resources> |
| 173 | <plugins> |
| 174 | <plugin> |
| 175 | <groupId>org.apache.maven.plugins</groupId> |
| 176 | <artifactId>maven-jar-plugin</artifactId> |
| 177 | <version>2.2</version> |
| 178 | <executions> |
| 179 | <execution> |
| 180 | <goals> |
| 181 | <goal>test-jar</goal> |
| 182 | </goals> |
| 183 | <phase>test-compile</phase> |
| 184 | </execution> |
| 185 | </executions> |
| 186 | </plugin> |
| 187 | <plugin> |
| 188 | <groupId>org.apache.felix</groupId> |
| 189 | <artifactId>maven-bundle-plugin</artifactId> |
| 190 | <extensions>true</extensions> |
| 191 | <version>2.4.0</version> |
| 192 | <!-- |
| 193 | Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase |
| 194 | (because the project uses the `bundle` packaging) |
| 195 | --> |
| 196 | <configuration> |
| 197 | <instructions> |
| 198 | <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName> |
| 199 | <Bundle-Version>${project.version}</Bundle-Version> |
| 200 | <_include>-osgi.bnd</_include> |
| 201 | <Import-Package> |
| 202 | <!-- JNR does not provide OSGi bundles, so exclude it; the driver can live without it --> |
| 203 | <![CDATA[com.google.common*;version="[${guava.version},20)",!jnr.*,*]]></Import-Package> |
| 204 | </instructions> |
| 205 | <supportedProjectTypes> |
| 206 | <supportedProjectType>jar</supportedProjectType> |
| 207 | <supportedProjectType>bundle</supportedProjectType> |
| 208 | <supportedProjectType>pom</supportedProjectType> |
| 209 | </supportedProjectTypes> |
| 210 | </configuration> |
| 211 | <executions> |
| 212 | <!-- Alternate execution to generate the shaded JAR's manifest --> |
| 213 | <execution> |
| 214 | <id>bundle-manifest-shaded</id> |
| 215 | <phase>prepare-package</phase> |
| 216 | <goals> |
| 217 | <goal>manifest</goal> |
| 218 | </goals> |
| 219 | <configuration> |
| 220 | <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation> |
| 221 | <instructions> |
| 222 | <Import-Package> |
| 223 | <!-- |
| 224 | JNR does not provide OSGi bundles, so exclude it; the driver can live without it |
| 225 | Explicitly import javax.security.cert because it's required by Netty, but Netty has been explicitly excluded |
| 226 | --> |
| 227 | <![CDATA[com.google.common.*;version="[${guava.version},20)",!jnr.*,!io.netty.*,javax.security.cert,*]]></Import-Package> |
| 228 | <Private-Package>com.datastax.shaded.*</Private-Package> |
| 229 | </instructions> |
| 230 | </configuration> |
| 231 | </execution> |
| 232 | </executions> |
| 233 | </plugin> |
| 234 | <plugin> |
| 235 | <artifactId>maven-shade-plugin</artifactId> |
| 236 | <version>2.3</version> |
| 237 | <executions> |
| 238 | <execution> |
| 239 | <phase>package</phase> |
| 240 | <goals> |
| 241 | <goal>shade</goal> |
| 242 | </goals> |
| 243 | <configuration> |
| 244 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 245 | <artifactSet> |
| 246 | <includes> |
| 247 | <include>io.netty:*</include> |
| 248 | </includes> |
| 249 | <excludes> |
| 250 | <exclude>io.netty:netty-transport-native-epoll</exclude> |
| 251 | </excludes> |
| 252 | </artifactSet> |
| 253 | <relocations> |
| 254 | <relocation> |
| 255 | <pattern>io.netty</pattern> |
| 256 | <shadedPattern>com.datastax.shaded.netty</shadedPattern> |
| 257 | </relocation> |
| 258 | </relocations> |
| 259 | <transformers> |
| 260 | <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| 261 | <resources> |
| 262 | <resource>META-INF/MANIFEST.MF</resource> |
| 263 | <resource>META-INF/io.netty.versions.properties</resource> |
| 264 | <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource> |
| 265 | <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource> |
| 266 | <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource> |
| 267 | <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource> |
| 268 | <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource> |
| 269 | <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource> |
| 270 | <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource> |
| 271 | <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource> |
| 272 | <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource> |
| 273 | <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource> |
| 274 | </resources> |
| 275 | </transformer> |
| 276 | <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin --> |
| 277 | <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| 278 | <resource>META-INF/MANIFEST.MF</resource> |
| 279 | <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file> |
| 280 | </transformer> |
| 281 | </transformers> |
| 282 | </configuration> |
| 283 | </execution> |
| 284 | </executions> |
| 285 | </plugin> |
| 286 | </plugins> |
| 287 | |
| 288 | <pluginManagement> |
| 289 | <plugins> |
| 290 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 291 | <plugin> |
| 292 | <groupId>org.eclipse.m2e</groupId> |
| 293 | <artifactId>lifecycle-mapping</artifactId> |
| 294 | <version>1.0.0</version> |
| 295 | <configuration> |
| 296 | <lifecycleMappingMetadata> |
| 297 | <pluginExecutions> |
| 298 | <pluginExecution> |
| 299 | <pluginExecutionFilter> |
| 300 | <groupId>org.apache.maven.plugins</groupId> |
| 301 | <artifactId>maven-jar-plugin</artifactId> |
| 302 | <versionRange>[2.2,)</versionRange> |
| 303 | <goals> |
| 304 | <goal>test-jar</goal> |
| 305 | </goals> |
| 306 | </pluginExecutionFilter> |
| 307 | <action> |
| 308 | <ignore /> |
| 309 | </action> |
| 310 | </pluginExecution> |
| 311 | </pluginExecutions> |
| 312 | </lifecycleMappingMetadata> |
| 313 | </configuration> |
| 314 | </plugin> |
| 315 | </plugins> |
| 316 | </pluginManagement> |
| 317 | <extensions> |
| 318 | <extension> |
| 319 | <groupId>kr.motd.maven</groupId> |
| 320 | <artifactId>os-maven-plugin</artifactId> |
| 321 | <version>1.4.1.Final</version> |
| 322 | </extension> |
| 323 | </extensions> |
| 324 | </build> |
| 325 | |
| 326 | <profiles> |
| 327 | <profile> |
| 328 | <id>isolated</id> |
| 329 | <properties> |
| 330 | <env>default</env> |
| 331 | </properties> |
| 332 | <build> |
| 333 | <plugins> |
| 334 | <plugin> |
| 335 | <groupId>org.apache.maven.plugins</groupId> |
| 336 | <artifactId>maven-surefire-plugin</artifactId> |
| 337 | <version>2.16</version> |
| 338 | <configuration> |
| 339 | <skip>false</skip> |
| 340 | <includes> |
| 341 | <include>**/SSL*Test.java</include> |
| 342 | <include>**/ControlConnectionTest.java</include> |
| 343 | <include>**/ExtendedPeerCheckDisabledTest.java</include> |
| 344 | <include>**/UUIDsPID*.java</include> |
| 345 | <include>**/FrameLengthTest.java</include> |
| 346 | <include>**/HeapCompressionTest.java</include> |
| 347 | </includes> |
| 348 | </configuration> |
| 349 | </plugin> |
| 350 | </plugins> |
| 351 | </build> |
| 352 | </profile> |
| 353 | </profiles> |
| 354 | |
| 355 | <licenses> |
| 356 | <license> |
| 357 | <name>Apache 2</name> |
| 358 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 359 | <distribution>repo</distribution> |
| 360 | <comments>Apache License Version 2.0</comments> |
| 361 | </license> |
| 362 | </licenses> |
| 363 | |
| 364 | <scm> |
| 365 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 366 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 367 | <url>https://github.com/datastax/java-driver</url> |
| 368 | <tag>HEAD</tag> |
| 369 | </scm> |
| 370 | |
| 371 | <developers> |
| 372 | <developer> |
| 373 | <name>Various</name> |
| 374 | <organization>DataStax</organization> |
| 375 | </developer> |
| 376 | </developers> |
| 377 | |
| 378 | </project> |
| 379 | |