Elffuss BraidHub

kikocis/java-driver public

d4e2582cd34f · 17.3 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>3.0.0-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>io.dropwizard.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>${commons-exec.version}</version>
125 <scope>test</scope>
126 </dependency>
127
128 <dependency>
129 <groupId>io.netty</groupId>
130 <artifactId>netty-tcnative</artifactId>
131 <version>1.1.33.Fork10</version>
132 <classifier>${os.detected.classifier}</classifier>
133 <scope>test</scope>
134 </dependency>
135
136 </dependencies>
137
138 <build>
139 <resources>
140 <resource>
141 <directory>src/main/resources</directory>
142 <filtering>true</filtering>
143 </resource>
144 </resources>
145 <plugins>
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="[16.0.1,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="[16.0.1,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 <extensions>
281 <extension>
282 <groupId>kr.motd.maven</groupId>
283 <artifactId>os-maven-plugin</artifactId>
284 <version>1.4.1.Final</version>
285 </extension>
286 </extensions>
287 </build>
288
289 <profiles>
290 <profile>
291 <id>unit</id>
292 <properties>
293 <env>default</env>
294 </properties>
295 <!-- do not use activeByDefault as other profiles might be active -->
296 <activation>
297 <property>
298 <name>!activateUnitTests</name>
299 </property>
300 </activation>
301 <build>
302 <plugins>
303 <plugin>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-surefire-plugin</artifactId>
306 <version>2.16</version>
307 <configuration>
308 <groups>unit</groups>
309 <useFile>false</useFile>
310 <systemPropertyVariables>
311 <cassandra.version>${cassandra.version}</cassandra.version>
312 <ipprefix>${ipprefix}</ipprefix>
313 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
314 </systemPropertyVariables>
315 <classpathDependencyExcludes>
316 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
317 </classpathDependencyExcludes>
318 <!--May be needed for debugging-->
319 <!--<forkMode>never</forkMode>-->
320 </configuration>
321 </plugin>
322 </plugins>
323 </build>
324 </profile>
325
326 <profile>
327 <id>short</id>
328 <properties>
329 <env>default</env>
330 </properties>
331 <build>
332 <plugins>
333 <plugin>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-surefire-plugin</artifactId>
336 <version>2.16</version>
337 <configuration>
338 <groups>unit,short</groups>
339 <useFile>false</useFile>
340 <systemPropertyVariables>
341 <cassandra.version>${cassandra.version}</cassandra.version>
342 <ipprefix>${ipprefix}</ipprefix>
343 </systemPropertyVariables>
344 <classpathDependencyExcludes>
345 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
346 </classpathDependencyExcludes>
347 </configuration>
348 </plugin>
349 </plugins>
350 </build>
351 </profile>
352
353 <profile>
354 <id>isolated</id>
355 <properties>
356 <env>default</env>
357 </properties>
358 <build>
359 <plugins>
360 <plugin>
361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-surefire-plugin</artifactId>
363 <version>2.16</version>
364 <configuration>
365 <forkCount>1</forkCount>
366 <reuseForks>false</reuseForks>
367 <groups>isolated</groups>
368 <!-- Files containing tests to be included must be added here.
369 this prevents a fork being created for each test class. -->
370 <includes>
371 <include>**/SSL*Test.java</include>
372 </includes>
373 <reportNameSuffix>isolated</reportNameSuffix>
374 <useFile>false</useFile>
375 <systemPropertyVariables>
376 <cassandra.version>${cassandra.version}</cassandra.version>
377 <ipprefix>${ipprefix}</ipprefix>
378 </systemPropertyVariables>
379 <classpathDependencyExcludes>
380 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
381 </classpathDependencyExcludes>
382 </configuration>
383 </plugin>
384 </plugins>
385 </build>
386 </profile>
387
388 <profile>
389 <id>long</id>
390 <properties>
391 <env>default</env>
392 </properties>
393 <build>
394 <plugins>
395 <plugin>
396 <groupId>org.apache.maven.plugins</groupId>
397 <artifactId>maven-surefire-plugin</artifactId>
398 <version>2.16</version>
399 <configuration>
400 <groups>unit,short,long</groups>
401 <useFile>false</useFile>
402 <systemPropertyVariables>
403 <cassandra.version>${cassandra.version}</cassandra.version>
404 <ipprefix>${ipprefix}</ipprefix>
405 </systemPropertyVariables>
406 <classpathDependencyExcludes>
407 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
408 </classpathDependencyExcludes>
409 </configuration>
410 </plugin>
411 </plugins>
412 </build>
413 </profile>
414
415 <profile>
416 <id>duration</id>
417 <properties>
418 <env>default</env>
419 </properties>
420 <build>
421 <plugins>
422 <plugin>
423 <groupId>org.apache.maven.plugins</groupId>
424 <artifactId>maven-surefire-plugin</artifactId>
425 <version>2.16</version>
426 <configuration>
427 <groups>unit,short,long,duration</groups>
428 <useFile>false</useFile>
429 <systemPropertyVariables>
430 <cassandra.version>${cassandra.version}</cassandra.version>
431 <ipprefix>${ipprefix}</ipprefix>
432 </systemPropertyVariables>
433 <classpathDependencyExcludes>
434 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
435 </classpathDependencyExcludes>
436 </configuration>
437 </plugin>
438 </plugins>
439 </build>
440 </profile>
441
442 <profile>
443 <id>doc</id>
444 <properties>
445 <env>default</env>
446 </properties>
447 <build>
448 <plugins>
449 <plugin>
450 <groupId>org.apache.maven.plugins</groupId>
451 <artifactId>maven-surefire-plugin</artifactId>
452 <version>2.16</version>
453 <configuration>
454 <groups>unit,doc</groups>
455 <useFile>false</useFile>
456 <systemPropertyVariables>
457 <cassandra.version>${cassandra.version}</cassandra.version>
458 <ipprefix>${ipprefix}</ipprefix>
459 </systemPropertyVariables>
460 <classpathDependencyExcludes>
461 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
462 </classpathDependencyExcludes>
463 </configuration>
464 </plugin>
465 </plugins>
466 </build>
467 </profile>
468 </profiles>
469
470 <licenses>
471 <license>
472 <name>Apache 2</name>
473 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
474 <distribution>repo</distribution>
475 <comments>Apache License Version 2.0</comments>
476 </license>
477 </licenses>
478
479 <scm>
480 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
481 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
482 <url>https://github.com/datastax/java-driver</url>
483 <tag>HEAD</tag>
484 </scm>
485
486 <developers>
487 <developer>
488 <name>Various</name>
489 <organization>DataStax</organization>
490 </developer>
491 </developers>
492
493</project>
494