Elffuss BraidHub

kikocis/java-driver public

6cbc334fa86f · 17.1 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 <include>**/UUIDsPID*.java</include>
378 </includes>
379 </configuration>
380 </plugin>
381 </plugins>
382 </build>
383 </profile>
384
385 <profile>
386 <id>long</id>
387 <properties>
388 <env>default</env>
389 </properties>
390 <build>
391 <plugins>
392 <plugin>
393 <groupId>org.apache.maven.plugins</groupId>
394 <artifactId>maven-surefire-plugin</artifactId>
395 <version>2.16</version>
396 <configuration>
397 <groups>unit,short,long</groups>
398 <useFile>false</useFile>
399 <systemPropertyVariables>
400 <cassandra.version>${cassandra.version}</cassandra.version>
401 <ipprefix>${ipprefix}</ipprefix>
402 </systemPropertyVariables>
403 <classpathDependencyExcludes>
404 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
405 </classpathDependencyExcludes>
406 </configuration>
407 </plugin>
408 </plugins>
409 </build>
410 </profile>
411
412 <profile>
413 <id>duration</id>
414 <properties>
415 <env>default</env>
416 </properties>
417 <build>
418 <plugins>
419 <plugin>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-surefire-plugin</artifactId>
422 <version>2.16</version>
423 <configuration>
424 <groups>unit,short,long,duration</groups>
425 <useFile>false</useFile>
426 <systemPropertyVariables>
427 <cassandra.version>${cassandra.version}</cassandra.version>
428 <ipprefix>${ipprefix}</ipprefix>
429 </systemPropertyVariables>
430 <classpathDependencyExcludes>
431 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
432 </classpathDependencyExcludes>
433 </configuration>
434 </plugin>
435 </plugins>
436 </build>
437 </profile>
438
439 <profile>
440 <id>doc</id>
441 <properties>
442 <env>default</env>
443 </properties>
444 <build>
445 <plugins>
446 <plugin>
447 <groupId>org.apache.maven.plugins</groupId>
448 <artifactId>maven-surefire-plugin</artifactId>
449 <version>2.16</version>
450 <configuration>
451 <groups>unit,doc</groups>
452 <useFile>false</useFile>
453 <systemPropertyVariables>
454 <cassandra.version>${cassandra.version}</cassandra.version>
455 <ipprefix>${ipprefix}</ipprefix>
456 </systemPropertyVariables>
457 <classpathDependencyExcludes>
458 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
459 </classpathDependencyExcludes>
460 </configuration>
461 </plugin>
462 </plugins>
463 </build>
464 </profile>
465 </profiles>
466
467 <licenses>
468 <license>
469 <name>Apache 2</name>
470 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
471 <distribution>repo</distribution>
472 <comments>Apache License Version 2.0</comments>
473 </license>
474 </licenses>
475
476 <scm>
477 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
478 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
479 <url>https://github.com/datastax/java-driver</url>
480 <tag>HEAD</tag>
481 </scm>
482
483 <developers>
484 <developer>
485 <name>Various</name>
486 <organization>DataStax</organization>
487 </developer>
488 </developers>
489
490</project>
491