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