Elffuss BraidHub

kikocis/java-driver public

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