Elffuss BraidHub

kikocis/java-driver public

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