Elffuss BraidHub

kikocis/java-driver public

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