| 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.1.11-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>com.codahale.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>1.3</version> |
| 139 | <scope>test</scope> |
| 140 | </dependency> |
| 141 | |
| 142 | </dependencies> |
| 143 | |
| 144 | <build> |
| 145 | <resources> |
| 146 | <resource> |
| 147 | <directory>src/main/resources</directory> |
| 148 | <filtering>true</filtering> |
| 149 | </resource> |
| 150 | </resources> |
| 151 | <plugins> |
| 152 | <plugin> |
| 153 | <artifactId>maven-compiler-plugin</artifactId> |
| 154 | <configuration> |
| 155 | <compilerArgument>-Xlint:all</compilerArgument> |
| 156 | <showWarnings>true</showWarnings> |
| 157 | <showDeprecation>true</showDeprecation> |
| 158 | </configuration> |
| 159 | </plugin> |
| 160 | <plugin> |
| 161 | <groupId>org.apache.maven.plugins</groupId> |
| 162 | <artifactId>maven-jar-plugin</artifactId> |
| 163 | <version>2.2</version> |
| 164 | <executions> |
| 165 | <execution> |
| 166 | <goals> |
| 167 | <goal>test-jar</goal> |
| 168 | </goals> |
| 169 | <phase>test-compile</phase> |
| 170 | </execution> |
| 171 | </executions> |
| 172 | </plugin> |
| 173 | <plugin> |
| 174 | <groupId>org.apache.felix</groupId> |
| 175 | <artifactId>maven-bundle-plugin</artifactId> |
| 176 | <extensions>true</extensions> |
| 177 | <version>2.4.0</version> |
| 178 | <!-- |
| 179 | Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase |
| 180 | (because the project uses the `bundle` packaging) |
| 181 | --> |
| 182 | <configuration> |
| 183 | <instructions> |
| 184 | <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName> |
| 185 | <Bundle-Version>${project.version}</Bundle-Version> |
| 186 | <_include>-osgi.bnd</_include> |
| 187 | <Import-Package> |
| 188 | <!-- JNR does not provide OSGi bundles, so exclude it; the driver can live without it --> |
| 189 | <![CDATA[com.google.common*;version="[14.0,19)",!jnr.*,*]]></Import-Package> |
| 190 | </instructions> |
| 191 | <supportedProjectTypes> |
| 192 | <supportedProjectType>jar</supportedProjectType> |
| 193 | <supportedProjectType>bundle</supportedProjectType> |
| 194 | <supportedProjectType>pom</supportedProjectType> |
| 195 | </supportedProjectTypes> |
| 196 | </configuration> |
| 197 | <executions> |
| 198 | <!-- Alternate execution to generate the shaded JAR's manifest --> |
| 199 | <execution> |
| 200 | <id>bundle-manifest-shaded</id> |
| 201 | <phase>prepare-package</phase> |
| 202 | <goals> |
| 203 | <goal>manifest</goal> |
| 204 | </goals> |
| 205 | <configuration> |
| 206 | <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation> |
| 207 | <instructions> |
| 208 | <Import-Package> |
| 209 | <!-- |
| 210 | JNR does not provide OSGi bundles, so exclude it; the driver can live without it |
| 211 | Explicitly import javax.security.cert because it's required by Netty, but Netty has been explicitly excluded |
| 212 | --> |
| 213 | <![CDATA[com.google.common.*;version="[14.0,19)",!jnr.*,!io.netty.*,javax.security.cert,*]]></Import-Package> |
| 214 | <Private-Package>com.datastax.shaded.*</Private-Package> |
| 215 | </instructions> |
| 216 | </configuration> |
| 217 | </execution> |
| 218 | </executions> |
| 219 | </plugin> |
| 220 | <plugin> |
| 221 | <artifactId>maven-shade-plugin</artifactId> |
| 222 | <version>2.3</version> |
| 223 | <executions> |
| 224 | <execution> |
| 225 | <phase>package</phase> |
| 226 | <goals> |
| 227 | <goal>shade</goal> |
| 228 | </goals> |
| 229 | <configuration> |
| 230 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 231 | <artifactSet> |
| 232 | <includes> |
| 233 | <include>io.netty:*</include> |
| 234 | </includes> |
| 235 | <excludes> |
| 236 | <exclude>io.netty:netty-transport-native-epoll</exclude> |
| 237 | </excludes> |
| 238 | </artifactSet> |
| 239 | <relocations> |
| 240 | <relocation> |
| 241 | <pattern>io.netty</pattern> |
| 242 | <shadedPattern>com.datastax.shaded.netty</shadedPattern> |
| 243 | </relocation> |
| 244 | </relocations> |
| 245 | <transformers> |
| 246 | <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
| 247 | <resources> |
| 248 | <resource>META-INF/MANIFEST.MF</resource> |
| 249 | <resource>META-INF/io.netty.versions.properties</resource> |
| 250 | <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource> |
| 251 | <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource> |
| 252 | <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource> |
| 253 | <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource> |
| 254 | <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource> |
| 255 | <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource> |
| 256 | <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource> |
| 257 | <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource> |
| 258 | <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource> |
| 259 | <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource> |
| 260 | </resources> |
| 261 | </transformer> |
| 262 | <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin --> |
| 263 | <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
| 264 | <resource>META-INF/MANIFEST.MF</resource> |
| 265 | <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file> |
| 266 | </transformer> |
| 267 | </transformers> |
| 268 | </configuration> |
| 269 | </execution> |
| 270 | </executions> |
| 271 | </plugin> |
| 272 | </plugins> |
| 273 | |
| 274 | <pluginManagement> |
| 275 | <plugins> |
| 276 | <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 277 | <plugin> |
| 278 | <groupId>org.eclipse.m2e</groupId> |
| 279 | <artifactId>lifecycle-mapping</artifactId> |
| 280 | <version>1.0.0</version> |
| 281 | <configuration> |
| 282 | <lifecycleMappingMetadata> |
| 283 | <pluginExecutions> |
| 284 | <pluginExecution> |
| 285 | <pluginExecutionFilter> |
| 286 | <groupId>org.apache.maven.plugins</groupId> |
| 287 | <artifactId>maven-jar-plugin</artifactId> |
| 288 | <versionRange>[2.2,)</versionRange> |
| 289 | <goals> |
| 290 | <goal>test-jar</goal> |
| 291 | </goals> |
| 292 | </pluginExecutionFilter> |
| 293 | <action> |
| 294 | <ignore /> |
| 295 | </action> |
| 296 | </pluginExecution> |
| 297 | </pluginExecutions> |
| 298 | </lifecycleMappingMetadata> |
| 299 | </configuration> |
| 300 | </plugin> |
| 301 | </plugins> |
| 302 | </pluginManagement> |
| 303 | </build> |
| 304 | |
| 305 | <profiles> |
| 306 | <profile> |
| 307 | <id>isolated</id> |
| 308 | <properties> |
| 309 | <env>default</env> |
| 310 | </properties> |
| 311 | <build> |
| 312 | <plugins> |
| 313 | <plugin> |
| 314 | <groupId>org.apache.maven.plugins</groupId> |
| 315 | <artifactId>maven-surefire-plugin</artifactId> |
| 316 | <version>2.16</version> |
| 317 | <configuration> |
| 318 | <skip>false</skip> |
| 319 | <includes> |
| 320 | <include>**/SSL*Test.java</include> |
| 321 | <include>**/UUIDsPID*.java</include> |
| 322 | <include>**/ControlConnectionTest.java</include> |
| 323 | <include>**/ExtendedPeerCheckDisabledTest.java</include> |
| 324 | </includes> |
| 325 | </configuration> |
| 326 | </plugin> |
| 327 | </plugins> |
| 328 | </build> |
| 329 | </profile> |
| 330 | </profiles> |
| 331 | |
| 332 | <licenses> |
| 333 | <license> |
| 334 | <name>Apache 2</name> |
| 335 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 336 | <distribution>repo</distribution> |
| 337 | <comments>Apache License Version 2.0</comments> |
| 338 | </license> |
| 339 | </licenses> |
| 340 | |
| 341 | <scm> |
| 342 | <connection>scm:git:git@github.com:datastax/java-driver.git</connection> |
| 343 | <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection> |
| 344 | <url>https://github.com/datastax/java-driver</url> |
| 345 | <tag>HEAD</tag> |
| 346 | </scm> |
| 347 | |
| 348 | <developers> |
| 349 | <developer> |
| 350 | <name>Various</name> |
| 351 | <organization>DataStax</organization> |
| 352 | </developer> |
| 353 | </developers> |
| 354 | |
| 355 | </project> |
| 356 | |