Elffuss BraidHub

kikocis/java-driver public

06b8ec262111 · 15.2 KiBRawPermalink
1<!--
2 Copyright (C) 2012 DataStax Inc.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15-->
16<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">
17 <modelVersion>4.0.0</modelVersion>
18 <parent>
19 <groupId>com.datastax.cassandra</groupId>
20 <artifactId>cassandra-driver-parent</artifactId>
21 <version>2.0.10-SNAPSHOT</version>
22 </parent>
23 <artifactId>cassandra-driver-core</artifactId>
24 <packaging>bundle</packaging>
25 <name>DataStax Java Driver for Apache Cassandra - Core</name>
26 <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>
27 <url>https://github.com/datastax/java-driver</url>
28
29 <dependencies>
30 <dependency>
31 <groupId>io.netty</groupId>
32 <artifactId>netty-handler</artifactId>
33 <version>${netty.version}</version>
34 </dependency>
35
36 <dependency>
37 <groupId>com.google.guava</groupId>
38 <artifactId>guava</artifactId>
39 <version>${guava.version}</version>
40 </dependency>
41
42 <dependency>
43 <groupId>com.codahale.metrics</groupId>
44 <artifactId>metrics-core</artifactId>
45 <version>${metrics.version}</version>
46 </dependency>
47
48 <!-- Compression libraries for the protocol. -->
49 <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
50
51 <dependency>
52 <groupId>org.xerial.snappy</groupId>
53 <artifactId>snappy-java</artifactId>
54 <version>${snappy.version}</version>
55 <optional>true</optional>
56 </dependency>
57
58 <dependency>
59 <groupId>net.jpountz.lz4</groupId>
60 <artifactId>lz4</artifactId>
61 <version>${lz4.version}</version>
62 <optional>true</optional>
63 </dependency>
64
65 <dependency>
66 <groupId>io.netty</groupId>
67 <artifactId>netty-transport-native-epoll</artifactId>
68 <version>${netty.version}</version>
69 <optional>true</optional>
70 </dependency>
71
72 <!-- End of compression libraries -->
73
74 <dependency>
75 <groupId>org.testng</groupId>
76 <artifactId>testng</artifactId>
77 <version>${testng.version}</version>
78 <scope>test</scope>
79 </dependency>
80
81 <dependency>
82 <groupId>org.assertj</groupId>
83 <artifactId>assertj-core</artifactId>
84 <version>${assertj.version}</version>
85 <scope>test</scope>
86 </dependency>
87
88 <dependency>
89 <groupId>org.mockito</groupId>
90 <artifactId>mockito-all</artifactId>
91 <version>${mockito.version}</version>
92 <scope>test</scope>
93 </dependency>
94
95 <dependency>
96 <groupId>org.scassandra</groupId>
97 <artifactId>java-client</artifactId>
98 <version>${scassandra.version}</version>
99 <scope>test</scope>
100 <exclusions>
101 <exclusion>
102 <groupId>ch.qos.logback</groupId>
103 <artifactId>logback-classic</artifactId>
104 </exclusion>
105 </exclusions>
106 </dependency>
107
108 </dependencies>
109
110 <build>
111 <resources>
112 <resource>
113 <directory>src/main/resources</directory>
114 <filtering>true</filtering>
115 </resource>
116 </resources>
117 <plugins>
118 <plugin>
119 <artifactId>maven-compiler-plugin</artifactId>
120 <configuration>
121 <compilerArgument>-Xlint:all</compilerArgument>
122 <showWarnings>true</showWarnings>
123 <showDeprecation>true</showDeprecation>
124 </configuration>
125 </plugin>
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-jar-plugin</artifactId>
129 <version>2.2</version>
130 <executions>
131 <execution>
132 <goals>
133 <goal>test-jar</goal>
134 </goals>
135 <phase>test-compile</phase>
136 </execution>
137 </executions>
138 </plugin>
139 <plugin>
140 <groupId>org.apache.felix</groupId>
141 <artifactId>maven-bundle-plugin</artifactId>
142 <extensions>true</extensions>
143 <version>2.4.0</version>
144 <!--
145 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
146 (because the project uses the `bundle` packaging)
147 -->
148 <configuration>
149 <instructions>
150 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
151 <Bundle-Version>${project.version}</Bundle-Version>
152 <_include>-osgi.bnd</_include>
153 <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package>
154 </instructions>
155 <supportedProjectTypes>
156 <supportedProjectType>jar</supportedProjectType>
157 <supportedProjectType>bundle</supportedProjectType>
158 <supportedProjectType>pom</supportedProjectType>
159 </supportedProjectTypes>
160 </configuration>
161 <executions>
162 <!-- Alternate execution to generate the shaded JAR's manifest -->
163 <execution>
164 <id>bundle-manifest-shaded</id>
165 <phase>prepare-package</phase>
166 <goals>
167 <goal>manifest</goal>
168 </goals>
169 <configuration>
170 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
171 <instructions>
172 <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",!io.netty.*,*]]></Import-Package>
173 <Private-Package>com.datastax.shaded.*</Private-Package>
174 </instructions>
175 </configuration>
176 </execution>
177 </executions>
178 </plugin>
179 <plugin>
180 <artifactId>maven-shade-plugin</artifactId>
181 <version>2.3</version>
182 <executions>
183 <execution>
184 <phase>package</phase>
185 <goals><goal>shade</goal></goals>
186 <configuration>
187 <shadedArtifactAttached>true</shadedArtifactAttached>
188 <artifactSet>
189 <includes>
190 <include>io.netty:*</include>
191 </includes>
192 <excludes>
193 <exclude>io.netty:netty-transport-native-epoll</exclude>
194 </excludes>
195 </artifactSet>
196 <relocations>
197 <relocation>
198 <pattern>io.netty</pattern>
199 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
200 </relocation>
201 </relocations>
202 <transformers>
203 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
204 <resources>
205 <resource>META-INF/MANIFEST.MF</resource>
206 <resource>META-INF/io.netty.versions.properties</resource>
207 <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
208 <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
209 <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
210 <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
211 <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
212 <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
213 <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
214 <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
215 <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
216 <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
217 </resources>
218 </transformer>
219 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
220 <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
221 <resource>META-INF/MANIFEST.MF</resource>
222 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
223 </transformer>
224 </transformers>
225 </configuration>
226 </execution>
227 </executions>
228 </plugin>
229 </plugins>
230 <pluginManagement>
231 <plugins>
232 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
233 <plugin>
234 <groupId>org.eclipse.m2e</groupId>
235 <artifactId>lifecycle-mapping</artifactId>
236 <version>1.0.0</version>
237 <configuration>
238 <lifecycleMappingMetadata>
239 <pluginExecutions>
240 <pluginExecution>
241 <pluginExecutionFilter>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-jar-plugin</artifactId>
244 <versionRange>[2.2,)</versionRange>
245 <goals>
246 <goal>test-jar</goal>
247 </goals>
248 </pluginExecutionFilter>
249 <action>
250 <ignore />
251 </action>
252 </pluginExecution>
253 </pluginExecutions>
254 </lifecycleMappingMetadata>
255 </configuration>
256 </plugin>
257 </plugins>
258 </pluginManagement>
259 </build>
260
261 <profiles>
262 <profile>
263 <id>default</id>
264 <properties>
265 <env>default</env>
266 </properties>
267 <activation>
268 <activeByDefault>true</activeByDefault>
269 </activation>
270 <build>
271 <plugins>
272 <plugin>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-surefire-plugin</artifactId>
275 <version>2.16</version>
276 <configuration>
277 <groups>unit</groups>
278 <useFile>false</useFile>
279 <systemPropertyVariables>
280 <cassandra.version>${cassandra.version}</cassandra.version>
281 <ipprefix>${ipprefix}</ipprefix>
282 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
283 </systemPropertyVariables>
284 <classpathDependencyExcludes>
285 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
286 </classpathDependencyExcludes>
287 <!--May be needed for debugging-->
288 <!--<forkMode>never</forkMode>-->
289 </configuration>
290 </plugin>
291 </plugins>
292 </build>
293 </profile>
294
295 <profile>
296 <id>short</id>
297 <properties>
298 <env>default</env>
299 </properties>
300 <build>
301 <plugins>
302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-surefire-plugin</artifactId>
305 <version>2.16</version>
306 <configuration>
307 <groups>unit,short</groups>
308 <useFile>false</useFile>
309 <systemPropertyVariables>
310 <cassandra.version>${cassandra.version}</cassandra.version>
311 <ipprefix>${ipprefix}</ipprefix>
312 </systemPropertyVariables>
313 <classpathDependencyExcludes>
314 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
315 </classpathDependencyExcludes>
316 </configuration>
317 </plugin>
318 </plugins>
319 </build>
320 </profile>
321
322 <profile>
323 <id>long</id>
324 <properties>
325 <env>default</env>
326 </properties>
327 <build>
328 <plugins>
329 <plugin>
330 <groupId>org.apache.maven.plugins</groupId>
331 <artifactId>maven-surefire-plugin</artifactId>
332 <version>2.16</version>
333 <configuration>
334 <groups>unit,short,long</groups>
335 <useFile>false</useFile>
336 <systemPropertyVariables>
337 <cassandra.version>${cassandra.version}</cassandra.version>
338 <ipprefix>${ipprefix}</ipprefix>
339 </systemPropertyVariables>
340 <classpathDependencyExcludes>
341 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
342 </classpathDependencyExcludes>
343 </configuration>
344 </plugin>
345 </plugins>
346 </build>
347 </profile>
348
349 <profile>
350 <id>duration</id>
351 <properties>
352 <env>default</env>
353 </properties>
354 <build>
355 <plugins>
356 <plugin>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-surefire-plugin</artifactId>
359 <version>2.16</version>
360 <configuration>
361 <groups>unit,short,long,duration</groups>
362 <useFile>false</useFile>
363 <systemPropertyVariables>
364 <cassandra.version>${cassandra.version}</cassandra.version>
365 <ipprefix>${ipprefix}</ipprefix>
366 </systemPropertyVariables>
367 <classpathDependencyExcludes>
368 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
369 </classpathDependencyExcludes>
370 </configuration>
371 </plugin>
372 </plugins>
373 </build>
374 </profile>
375
376 <profile>
377 <id>doc</id>
378 <properties>
379 <env>default</env>
380 </properties>
381 <build>
382 <plugins>
383 <plugin>
384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-surefire-plugin</artifactId>
386 <version>2.16</version>
387 <configuration>
388 <groups>unit,doc</groups>
389 <useFile>false</useFile>
390 <systemPropertyVariables>
391 <cassandra.version>${cassandra.version}</cassandra.version>
392 <ipprefix>${ipprefix}</ipprefix>
393 </systemPropertyVariables>
394 <classpathDependencyExcludes>
395 <classpathDependencyExcludes>io.netty:netty-transport-native-epoll</classpathDependencyExcludes>
396 </classpathDependencyExcludes>
397 </configuration>
398 </plugin>
399 </plugins>
400 </build>
401 </profile>
402 </profiles>
403
404 <licenses>
405 <license>
406 <name>Apache 2</name>
407 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
408 <distribution>repo</distribution>
409 <comments>Apache License Version 2.0</comments>
410 </license>
411 </licenses>
412
413 <scm>
414 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
415 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
416 <url>https://github.com/datastax/java-driver</url>
417 </scm>
418
419 <developers>
420 <developer>
421 <name>Various</name>
422 <organization>DataStax</organization>
423 </developer>
424 </developers>
425
426</project>
427