Elffuss BraidHub

kikocis/java-driver public

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