Elffuss BraidHub

kikocis/java-driver public

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