Elffuss BraidHub

kikocis/java-driver public

dbbfbb772ad4 · 16.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>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 <!-- 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>1.3</version>
125 <scope>test</scope>
126 </dependency>
127
128 </dependencies>
129
130 <build>
131 <resources>
132 <resource>
133 <directory>src/main/resources</directory>
134 <filtering>true</filtering>
135 </resource>
136 </resources>
137 <plugins>
138 <plugin>
139 <artifactId>maven-compiler-plugin</artifactId>
140 <configuration>
141 <compilerArgument>-Xlint:all</compilerArgument>
142 <showWarnings>true</showWarnings>
143 <showDeprecation>true</showDeprecation>
144 </configuration>
145 </plugin>
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="[14.0,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="[14.0,19)",!io.netty.*,javax.security.cert,*]]></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 </build>
281
282 <profiles>
283 <profile>
284 <id>default</id>
285 <properties>
286 <env>default</env>
287 </properties>
288 <activation>
289 <activeByDefault>true</activeByDefault>
290 </activation>
291 <build>
292 <plugins>
293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-surefire-plugin</artifactId>
296 <version>2.16</version>
297 <configuration>
298 <groups>unit</groups>
299 <useFile>false</useFile>
300 <systemPropertyVariables>
301 <cassandra.version>${cassandra.version}</cassandra.version>
302 <ipprefix>${ipprefix}</ipprefix>
303 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
304 </systemPropertyVariables>
305 <classpathDependencyExcludes>
306 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
307 </classpathDependencyExcludes>
308 <!--May be needed for debugging-->
309 <!--<forkMode>never</forkMode>-->
310 </configuration>
311 </plugin>
312 </plugins>
313 </build>
314 </profile>
315
316 <profile>
317 <id>short</id>
318 <properties>
319 <env>default</env>
320 </properties>
321 <build>
322 <plugins>
323 <plugin>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-surefire-plugin</artifactId>
326 <version>2.16</version>
327 <configuration>
328 <groups>unit,short</groups>
329 <useFile>false</useFile>
330 <systemPropertyVariables>
331 <cassandra.version>${cassandra.version}</cassandra.version>
332 <ipprefix>${ipprefix}</ipprefix>
333 </systemPropertyVariables>
334 <classpathDependencyExcludes>
335 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
336 </classpathDependencyExcludes>
337 </configuration>
338 </plugin>
339 </plugins>
340 </build>
341 </profile>
342
343 <profile>
344 <id>isolated</id>
345 <properties>
346 <env>default</env>
347 </properties>
348 <build>
349 <plugins>
350 <plugin>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-surefire-plugin</artifactId>
353 <version>2.16</version>
354 <configuration>
355 <skip>false</skip>
356 <includes>
357 <include>**/SSL*Test.java</include>
358 </includes>
359 </configuration>
360 </plugin>
361 </plugins>
362 </build>
363 </profile>
364
365 <profile>
366 <id>long</id>
367 <properties>
368 <env>default</env>
369 </properties>
370 <build>
371 <plugins>
372 <plugin>
373 <groupId>org.apache.maven.plugins</groupId>
374 <artifactId>maven-surefire-plugin</artifactId>
375 <version>2.16</version>
376 <configuration>
377 <groups>unit,short,long</groups>
378 <useFile>false</useFile>
379 <systemPropertyVariables>
380 <cassandra.version>${cassandra.version}</cassandra.version>
381 <ipprefix>${ipprefix}</ipprefix>
382 </systemPropertyVariables>
383 <classpathDependencyExcludes>
384 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
385 </classpathDependencyExcludes>
386 </configuration>
387 </plugin>
388 </plugins>
389 </build>
390 </profile>
391
392 <profile>
393 <id>duration</id>
394 <properties>
395 <env>default</env>
396 </properties>
397 <build>
398 <plugins>
399 <plugin>
400 <groupId>org.apache.maven.plugins</groupId>
401 <artifactId>maven-surefire-plugin</artifactId>
402 <version>2.16</version>
403 <configuration>
404 <groups>unit,short,long,duration</groups>
405 <useFile>false</useFile>
406 <systemPropertyVariables>
407 <cassandra.version>${cassandra.version}</cassandra.version>
408 <ipprefix>${ipprefix}</ipprefix>
409 </systemPropertyVariables>
410 <classpathDependencyExcludes>
411 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
412 </classpathDependencyExcludes>
413 </configuration>
414 </plugin>
415 </plugins>
416 </build>
417 </profile>
418
419 <profile>
420 <id>doc</id>
421 <properties>
422 <env>default</env>
423 </properties>
424 <build>
425 <plugins>
426 <plugin>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-surefire-plugin</artifactId>
429 <version>2.16</version>
430 <configuration>
431 <groups>unit,doc</groups>
432 <useFile>false</useFile>
433 <systemPropertyVariables>
434 <cassandra.version>${cassandra.version}</cassandra.version>
435 <ipprefix>${ipprefix}</ipprefix>
436 </systemPropertyVariables>
437 <classpathDependencyExcludes>
438 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
439 </classpathDependencyExcludes>
440 </configuration>
441 </plugin>
442 </plugins>
443 </build>
444 </profile>
445 </profiles>
446
447 <licenses>
448 <license>
449 <name>Apache 2</name>
450 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
451 <distribution>repo</distribution>
452 <comments>Apache License Version 2.0</comments>
453 </license>
454 </licenses>
455
456 <scm>
457 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
458 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
459 <url>https://github.com/datastax/java-driver</url>
460 <tag>HEAD</tag>
461 </scm>
462
463 <developers>
464 <developer>
465 <name>Various</name>
466 <organization>DataStax</organization>
467 </developer>
468 </developers>
469
470</project>
471