Elffuss BraidHub

kikocis/java-driver public

b32166e873b8 · 16.9 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 <dependency>
55 <groupId>com.github.jnr</groupId>
56 <artifactId>jnr-ffi</artifactId>
57 <version>${jnr-ffi.version}</version>
58 </dependency>
59
60 <!-- Compression libraries for the protocol. -->
61 <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
62
63 <dependency>
64 <groupId>org.xerial.snappy</groupId>
65 <artifactId>snappy-java</artifactId>
66 <version>${snappy.version}</version>
67 <optional>true</optional>
68 </dependency>
69
70 <dependency>
71 <groupId>net.jpountz.lz4</groupId>
72 <artifactId>lz4</artifactId>
73 <version>${lz4.version}</version>
74 <optional>true</optional>
75 </dependency>
76
77 <!-- End of compression libraries -->
78
79 <dependency>
80 <groupId>io.netty</groupId>
81 <artifactId>netty-transport-native-epoll</artifactId>
82 <version>${netty.version}</version>
83 <optional>true</optional>
84 </dependency>
85
86 <dependency>
87 <groupId>org.hdrhistogram</groupId>
88 <artifactId>HdrHistogram</artifactId>
89 <version>${hdr.version}</version>
90 <optional>true</optional>
91 </dependency>
92
93 <dependency>
94 <groupId>org.testng</groupId>
95 <artifactId>testng</artifactId>
96 <version>${testng.version}</version>
97 <scope>test</scope>
98 </dependency>
99
100 <dependency>
101 <groupId>org.assertj</groupId>
102 <artifactId>assertj-core</artifactId>
103 <version>${assertj.version}</version>
104 <scope>test</scope>
105 </dependency>
106
107 <dependency>
108 <groupId>org.mockito</groupId>
109 <artifactId>mockito-all</artifactId>
110 <version>${mockito.version}</version>
111 <scope>test</scope>
112 </dependency>
113
114 <dependency>
115 <groupId>org.scassandra</groupId>
116 <artifactId>java-client</artifactId>
117 <version>${scassandra.version}</version>
118 <scope>test</scope>
119 <exclusions>
120 <exclusion>
121 <groupId>ch.qos.logback</groupId>
122 <artifactId>logback-classic</artifactId>
123 </exclusion>
124 </exclusions>
125 </dependency>
126
127 <dependency>
128 <groupId>org.apache.commons</groupId>
129 <artifactId>commons-exec</artifactId>
130 <version>1.3</version>
131 <scope>test</scope>
132 </dependency>
133
134 </dependencies>
135
136 <build>
137 <resources>
138 <resource>
139 <directory>src/main/resources</directory>
140 <filtering>true</filtering>
141 </resource>
142 </resources>
143 <plugins>
144 <plugin>
145 <artifactId>maven-compiler-plugin</artifactId>
146 <configuration>
147 <compilerArgument>-Xlint:all</compilerArgument>
148 <showWarnings>true</showWarnings>
149 <showDeprecation>true</showDeprecation>
150 </configuration>
151 </plugin>
152 <plugin>
153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-jar-plugin</artifactId>
155 <version>2.2</version>
156 <executions>
157 <execution>
158 <goals>
159 <goal>test-jar</goal>
160 </goals>
161 <phase>test-compile</phase>
162 </execution>
163 </executions>
164 </plugin>
165 <plugin>
166 <groupId>org.apache.felix</groupId>
167 <artifactId>maven-bundle-plugin</artifactId>
168 <extensions>true</extensions>
169 <version>2.4.0</version>
170 <!--
171 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
172 (because the project uses the `bundle` packaging)
173 -->
174 <configuration>
175 <instructions>
176 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
177 <Bundle-Version>${project.version}</Bundle-Version>
178 <_include>-osgi.bnd</_include>
179 <Import-Package>
180 <!-- JNR does not provide OSGi bundles, so exclude it; the driver can live without it -->
181 <![CDATA[com.google.common*;version="[14.0,19)",!jnr.*,*]]></Import-Package>
182 </instructions>
183 <supportedProjectTypes>
184 <supportedProjectType>jar</supportedProjectType>
185 <supportedProjectType>bundle</supportedProjectType>
186 <supportedProjectType>pom</supportedProjectType>
187 </supportedProjectTypes>
188 </configuration>
189 <executions>
190 <!-- Alternate execution to generate the shaded JAR's manifest -->
191 <execution>
192 <id>bundle-manifest-shaded</id>
193 <phase>prepare-package</phase>
194 <goals>
195 <goal>manifest</goal>
196 </goals>
197 <configuration>
198 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
199 <instructions>
200 <Import-Package>
201 <!--
202 JNR does not provide OSGi bundles, so exclude it; the driver can live without it
203 Explicitly import javax.security.cert because it's required by Netty, but Netty has been explicitly excluded
204 -->
205 <![CDATA[com.google.common.*;version="[14.0,19)",!jnr.*,!io.netty.*,javax.security.cert,*]]></Import-Package>
206 <Private-Package>com.datastax.shaded.*</Private-Package>
207 </instructions>
208 </configuration>
209 </execution>
210 </executions>
211 </plugin>
212 <plugin>
213 <artifactId>maven-shade-plugin</artifactId>
214 <version>2.3</version>
215 <executions>
216 <execution>
217 <phase>package</phase>
218 <goals><goal>shade</goal></goals>
219 <configuration>
220 <shadedArtifactAttached>true</shadedArtifactAttached>
221 <artifactSet>
222 <includes>
223 <include>io.netty:*</include>
224 </includes>
225 <excludes>
226 <exclude>io.netty:netty-transport-native-epoll</exclude>
227 </excludes>
228 </artifactSet>
229 <relocations>
230 <relocation>
231 <pattern>io.netty</pattern>
232 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
233 </relocation>
234 </relocations>
235 <transformers>
236 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
237 <resources>
238 <resource>META-INF/MANIFEST.MF</resource>
239 <resource>META-INF/io.netty.versions.properties</resource>
240 <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
241 <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
242 <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
243 <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
244 <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
245 <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
246 <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
247 <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
248 <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
249 <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
250 </resources>
251 </transformer>
252 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
253 <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
254 <resource>META-INF/MANIFEST.MF</resource>
255 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
256 </transformer>
257 </transformers>
258 </configuration>
259 </execution>
260 </executions>
261 </plugin>
262 </plugins>
263
264 <pluginManagement>
265 <plugins>
266 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
267 <plugin>
268 <groupId>org.eclipse.m2e</groupId>
269 <artifactId>lifecycle-mapping</artifactId>
270 <version>1.0.0</version>
271 <configuration>
272 <lifecycleMappingMetadata>
273 <pluginExecutions>
274 <pluginExecution>
275 <pluginExecutionFilter>
276 <groupId>org.apache.maven.plugins</groupId>
277 <artifactId>maven-jar-plugin</artifactId>
278 <versionRange>[2.2,)</versionRange>
279 <goals>
280 <goal>test-jar</goal>
281 </goals>
282 </pluginExecutionFilter>
283 <action>
284 <ignore />
285 </action>
286 </pluginExecution>
287 </pluginExecutions>
288 </lifecycleMappingMetadata>
289 </configuration>
290 </plugin>
291 </plugins>
292 </pluginManagement>
293 </build>
294
295 <profiles>
296 <profile>
297 <id>default</id>
298 <properties>
299 <env>default</env>
300 </properties>
301 <activation>
302 <activeByDefault>true</activeByDefault>
303 </activation>
304 <build>
305 <plugins>
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-surefire-plugin</artifactId>
309 <version>2.16</version>
310 <configuration>
311 <groups>unit</groups>
312 <useFile>false</useFile>
313 <systemPropertyVariables>
314 <cassandra.version>${cassandra.version}</cassandra.version>
315 <ipprefix>${ipprefix}</ipprefix>
316 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
317 </systemPropertyVariables>
318 <classpathDependencyExcludes>
319 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
320 </classpathDependencyExcludes>
321 <!--May be needed for debugging-->
322 <!--<forkMode>never</forkMode>-->
323 </configuration>
324 </plugin>
325 </plugins>
326 </build>
327 </profile>
328
329 <profile>
330 <id>short</id>
331 <properties>
332 <env>default</env>
333 </properties>
334 <build>
335 <plugins>
336 <plugin>
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-surefire-plugin</artifactId>
339 <version>2.16</version>
340 <configuration>
341 <groups>unit,short</groups>
342 <useFile>false</useFile>
343 <systemPropertyVariables>
344 <cassandra.version>${cassandra.version}</cassandra.version>
345 <ipprefix>${ipprefix}</ipprefix>
346 </systemPropertyVariables>
347 <classpathDependencyExcludes>
348 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
349 </classpathDependencyExcludes>
350 </configuration>
351 </plugin>
352 </plugins>
353 </build>
354 </profile>
355
356 <profile>
357 <id>isolated</id>
358 <properties>
359 <env>default</env>
360 </properties>
361 <build>
362 <plugins>
363 <plugin>
364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-surefire-plugin</artifactId>
366 <version>2.16</version>
367 <configuration>
368 <skip>false</skip>
369 <includes>
370 <include>**/SSL*Test.java</include>
371 </includes>
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