Elffuss BraidHub

kikocis/java-driver public

aecf0027996e · 16.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>3.0.0-alpha4-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 <dependency>
129 <groupId>com.fasterxml.jackson.core</groupId>
130 <artifactId>jackson-databind</artifactId>
131 <version>2.5.3</version>
132 <scope>test</scope>
133 </dependency>
134
135 <dependency>
136 <groupId>joda-time</groupId>
137 <artifactId>joda-time</artifactId>
138 <version>2.8.1</version>
139 <scope>test</scope>
140 </dependency>
141
142 </dependencies>
143
144 <build>
145 <resources>
146 <resource>
147 <directory>src/main/resources</directory>
148 <filtering>true</filtering>
149 </resource>
150 </resources>
151 <plugins>
152 <plugin>
153 <artifactId>maven-compiler-plugin</artifactId>
154 <configuration>
155 <compilerArgument>-Xlint:all</compilerArgument>
156 <showWarnings>true</showWarnings>
157 <showDeprecation>true</showDeprecation>
158 </configuration>
159 </plugin>
160 <plugin>
161 <groupId>org.apache.maven.plugins</groupId>
162 <artifactId>maven-jar-plugin</artifactId>
163 <version>2.2</version>
164 <executions>
165 <execution>
166 <goals>
167 <goal>test-jar</goal>
168 </goals>
169 <phase>test-compile</phase>
170 </execution>
171 </executions>
172 </plugin>
173 <plugin>
174 <groupId>org.apache.felix</groupId>
175 <artifactId>maven-bundle-plugin</artifactId>
176 <extensions>true</extensions>
177 <version>2.4.0</version>
178 <!--
179 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
180 (because the project uses the `bundle` packaging)
181 -->
182 <configuration>
183 <instructions>
184 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
185 <Bundle-Version>${project.version}</Bundle-Version>
186 <_include>-osgi.bnd</_include>
187 <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></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><![CDATA[com.google.common.*;version="[14.0,19)",!io.netty.*,*]]></Import-Package>
207 <Private-Package>com.datastax.shaded.*</Private-Package>
208 </instructions>
209 </configuration>
210 </execution>
211 </executions>
212 </plugin>
213 <plugin>
214 <artifactId>maven-shade-plugin</artifactId>
215 <version>2.3</version>
216 <executions>
217 <execution>
218 <phase>package</phase>
219 <goals><goal>shade</goal></goals>
220 <configuration>
221 <shadedArtifactAttached>true</shadedArtifactAttached>
222 <artifactSet>
223 <includes>
224 <include>io.netty:*</include>
225 </includes>
226 <excludes>
227 <exclude>io.netty:netty-transport-native-epoll</exclude>
228 </excludes>
229 </artifactSet>
230 <relocations>
231 <relocation>
232 <pattern>io.netty</pattern>
233 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
234 </relocation>
235 </relocations>
236 <transformers>
237 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
238 <resources>
239 <resource>META-INF/MANIFEST.MF</resource>
240 <resource>META-INF/io.netty.versions.properties</resource>
241 <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
242 <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
243 <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
244 <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
245 <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
246 <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
247 <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
248 <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
249 <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
250 <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
251 </resources>
252 </transformer>
253 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
254 <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
255 <resource>META-INF/MANIFEST.MF</resource>
256 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
257 </transformer>
258 </transformers>
259 </configuration>
260 </execution>
261 </executions>
262 </plugin>
263 </plugins>
264
265 <pluginManagement>
266 <plugins>
267 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
268 <plugin>
269 <groupId>org.eclipse.m2e</groupId>
270 <artifactId>lifecycle-mapping</artifactId>
271 <version>1.0.0</version>
272 <configuration>
273 <lifecycleMappingMetadata>
274 <pluginExecutions>
275 <pluginExecution>
276 <pluginExecutionFilter>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-jar-plugin</artifactId>
279 <versionRange>[2.2,)</versionRange>
280 <goals>
281 <goal>test-jar</goal>
282 </goals>
283 </pluginExecutionFilter>
284 <action>
285 <ignore />
286 </action>
287 </pluginExecution>
288 </pluginExecutions>
289 </lifecycleMappingMetadata>
290 </configuration>
291 </plugin>
292 </plugins>
293 </pluginManagement>
294 </build>
295
296 <profiles>
297 <profile>
298 <id>default</id>
299 <properties>
300 <env>default</env>
301 </properties>
302 <activation>
303 <activeByDefault>true</activeByDefault>
304 </activation>
305 <build>
306 <plugins>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-surefire-plugin</artifactId>
310 <version>2.16</version>
311 <configuration>
312 <groups>unit</groups>
313 <useFile>false</useFile>
314 <systemPropertyVariables>
315 <cassandra.version>${cassandra.version}</cassandra.version>
316 <ipprefix>${ipprefix}</ipprefix>
317 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
318 </systemPropertyVariables>
319 <classpathDependencyExcludes>
320 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
321 </classpathDependencyExcludes>
322 <!--May be needed for debugging-->
323 <!--<forkMode>never</forkMode>-->
324 </configuration>
325 </plugin>
326 </plugins>
327 </build>
328 </profile>
329
330 <profile>
331 <id>short</id>
332 <properties>
333 <env>default</env>
334 </properties>
335 <build>
336 <plugins>
337 <plugin>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-surefire-plugin</artifactId>
340 <version>2.16</version>
341 <configuration>
342 <groups>unit,short</groups>
343 <useFile>false</useFile>
344 <systemPropertyVariables>
345 <cassandra.version>${cassandra.version}</cassandra.version>
346 <ipprefix>${ipprefix}</ipprefix>
347 </systemPropertyVariables>
348 <classpathDependencyExcludes>
349 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
350 </classpathDependencyExcludes>
351 </configuration>
352 </plugin>
353 </plugins>
354 </build>
355 </profile>
356
357 <profile>
358 <id>long</id>
359 <properties>
360 <env>default</env>
361 </properties>
362 <build>
363 <plugins>
364 <plugin>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-surefire-plugin</artifactId>
367 <version>2.16</version>
368 <configuration>
369 <groups>unit,short,long</groups>
370 <useFile>false</useFile>
371 <systemPropertyVariables>
372 <cassandra.version>${cassandra.version}</cassandra.version>
373 <ipprefix>${ipprefix}</ipprefix>
374 </systemPropertyVariables>
375 <classpathDependencyExcludes>
376 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
377 </classpathDependencyExcludes>
378 </configuration>
379 </plugin>
380 </plugins>
381 </build>
382 </profile>
383
384 <profile>
385 <id>duration</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,duration</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>doc</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,doc</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 </profiles>
438
439 <licenses>
440 <license>
441 <name>Apache 2</name>
442 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
443 <distribution>repo</distribution>
444 <comments>Apache License Version 2.0</comments>
445 </license>
446 </licenses>
447
448 <scm>
449 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
450 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
451 <url>https://github.com/datastax/java-driver</url>
452 <tag>HEAD</tag>
453 </scm>
454
455 <developers>
456 <developer>
457 <name>Various</name>
458 <organization>DataStax</organization>
459 </developer>
460 </developers>
461
462</project>
463