Elffuss BraidHub

kikocis/java-driver public

62fd71450110 · 13.0 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.1.5-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</artifactId>
33 <version>3.9.0.Final</version>
34 </dependency>
35
36 <dependency>
37 <groupId>com.google.guava</groupId>
38 <artifactId>guava</artifactId>
39 <!--
40 We use an old version of Guava to be compatible with Spark 1.1.
41 Check with the spark-cassandra-connector team before upgrading this.
42 -->
43 <version>14.0.1</version>
44 </dependency>
45
46 <dependency>
47 <groupId>com.codahale.metrics</groupId>
48 <artifactId>metrics-core</artifactId>
49 <version>3.0.2</version>
50 </dependency>
51
52 <!-- Compression libraries for the protocol. -->
53 <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
54
55 <dependency>
56 <groupId>org.xerial.snappy</groupId>
57 <artifactId>snappy-java</artifactId>
58 <version>1.0.5</version>
59 <optional>true</optional>
60 </dependency>
61
62 <dependency>
63 <groupId>net.jpountz.lz4</groupId>
64 <artifactId>lz4</artifactId>
65 <version>1.2.0</version>
66 <optional>true</optional>
67 </dependency>
68
69 <!-- End of compression libraries -->
70
71 <dependency>
72 <groupId>org.testng</groupId>
73 <artifactId>testng</artifactId>
74 <version>6.8.8</version>
75 <scope>test</scope>
76 </dependency>
77
78 <dependency>
79 <groupId>org.assertj</groupId>
80 <artifactId>assertj-core</artifactId>
81 <version>1.7.0</version>
82 <scope>test</scope>
83 </dependency>
84
85 <dependency>
86 <groupId>org.mockito</groupId>
87 <artifactId>mockito-all</artifactId>
88 <version>1.10.8</version>
89 <scope>test</scope>
90 </dependency>
91
92 <dependency>
93 <groupId>org.scassandra</groupId>
94 <artifactId>java-client</artifactId>
95 <!-- N.B. later versions of scassandra require JDK 7 -->
96 <version>0.4.1</version>
97 <scope>test</scope>
98 <exclusions>
99 <exclusion>
100 <groupId>ch.qos.logback</groupId>
101 <artifactId>logback-classic</artifactId>
102 </exclusion>
103 </exclusions>
104 </dependency>
105
106 </dependencies>
107
108 <build>
109 <resources>
110 <resource>
111 <directory>src/main/resources</directory>
112 <filtering>true</filtering>
113 </resource>
114 </resources>
115 <plugins>
116 <plugin>
117 <artifactId>maven-compiler-plugin</artifactId>
118 <configuration>
119 <compilerArgument>-Xlint:all</compilerArgument>
120 <showWarnings>true</showWarnings>
121 <showDeprecation>true</showDeprecation>
122 </configuration>
123 </plugin>
124 <plugin>
125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-jar-plugin</artifactId>
127 <version>2.2</version>
128 <executions>
129 <execution>
130 <goals>
131 <goal>test-jar</goal>
132 </goals>
133 <phase>test-compile</phase>
134 </execution>
135 </executions>
136 </plugin>
137 <plugin>
138 <groupId>org.apache.felix</groupId>
139 <artifactId>maven-bundle-plugin</artifactId>
140 <extensions>true</extensions>
141 <version>2.4.0</version>
142 <!--
143 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
144 (because the project uses the `bundle` packaging)
145 -->
146 <configuration>
147 <instructions>
148 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
149 <Bundle-Version>${project.version}</Bundle-Version>
150 <_include>-osgi.bnd</_include>
151 <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package>
152 </instructions>
153 <supportedProjectTypes>
154 <supportedProjectType>jar</supportedProjectType>
155 <supportedProjectType>bundle</supportedProjectType>
156 <supportedProjectType>pom</supportedProjectType>
157 </supportedProjectTypes>
158 </configuration>
159 <executions>
160 <!-- Alternate execution to generate the shaded JAR's manifest -->
161 <execution>
162 <id>bundle-manifest-shaded</id>
163 <phase>prepare-package</phase>
164 <goals>
165 <goal>manifest</goal>
166 </goals>
167 <configuration>
168 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
169 <instructions>
170 <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",!org.jboss.netty.*,*]]></Import-Package>
171 <Private-Package>com.datastax.shaded.*</Private-Package>
172 </instructions>
173 </configuration>
174 </execution>
175 </executions>
176 </plugin>
177 <plugin>
178 <artifactId>maven-shade-plugin</artifactId>
179 <version>2.3</version>
180 <executions>
181 <execution>
182 <phase>package</phase>
183 <goals><goal>shade</goal></goals>
184 <configuration>
185 <shadedArtifactAttached>true</shadedArtifactAttached>
186 <artifactSet>
187 <includes>
188 <include>io.netty:netty</include>
189 </includes>
190 </artifactSet>
191 <relocations>
192 <relocation>
193 <pattern>org.jboss.netty</pattern>
194 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
195 </relocation>
196 </relocations>
197 <transformers>
198 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
199 <resource>META-INF/MANIFEST.MF</resource>
200 </transformer>
201 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
202 <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
203 <resource>META-INF/MANIFEST.MF</resource>
204 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
205 </transformer>
206 </transformers>
207 </configuration>
208 </execution>
209 </executions>
210 </plugin>
211 </plugins>
212
213 <pluginManagement>
214 <plugins>
215 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
216 <plugin>
217 <groupId>org.eclipse.m2e</groupId>
218 <artifactId>lifecycle-mapping</artifactId>
219 <version>1.0.0</version>
220 <configuration>
221 <lifecycleMappingMetadata>
222 <pluginExecutions>
223 <pluginExecution>
224 <pluginExecutionFilter>
225 <groupId>org.apache.maven.plugins</groupId>
226 <artifactId>maven-jar-plugin</artifactId>
227 <versionRange>[2.2,)</versionRange>
228 <goals>
229 <goal>test-jar</goal>
230 </goals>
231 </pluginExecutionFilter>
232 <action>
233 <ignore />
234 </action>
235 </pluginExecution>
236 </pluginExecutions>
237 </lifecycleMappingMetadata>
238 </configuration>
239 </plugin>
240 </plugins>
241 </pluginManagement>
242 </build>
243
244 <profiles>
245 <profile>
246 <id>default</id>
247 <properties>
248 <env>default</env>
249 </properties>
250 <activation>
251 <activeByDefault>true</activeByDefault>
252 </activation>
253 <build>
254 <plugins>
255 <plugin>
256 <groupId>org.apache.maven.plugins</groupId>
257 <artifactId>maven-surefire-plugin</artifactId>
258 <version>2.16</version>
259 <configuration>
260 <groups>unit</groups>
261 <useFile>false</useFile>
262 <systemPropertyVariables>
263 <cassandra.version>${cassandra.version}</cassandra.version>
264 <ipprefix>${ipprefix}</ipprefix>
265 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
266 </systemPropertyVariables>
267 <!--May be needed for debugging-->
268 <!--<forkMode>never</forkMode>-->
269 </configuration>
270 </plugin>
271 </plugins>
272 </build>
273 </profile>
274
275 <profile>
276 <id>short</id>
277 <properties>
278 <env>default</env>
279 </properties>
280 <build>
281 <plugins>
282 <plugin>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-surefire-plugin</artifactId>
285 <version>2.16</version>
286 <configuration>
287 <groups>unit,short</groups>
288 <useFile>false</useFile>
289 <systemPropertyVariables>
290 <cassandra.version>${cassandra.version}</cassandra.version>
291 <ipprefix>${ipprefix}</ipprefix>
292 </systemPropertyVariables>
293 </configuration>
294 </plugin>
295 </plugins>
296 </build>
297 </profile>
298
299 <profile>
300 <id>long</id>
301 <properties>
302 <env>default</env>
303 </properties>
304 <build>
305 <plugins>
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-surefire-plugin</artifactId>
309 <version>2.16</version>
310 <configuration>
311 <groups>unit,short,long</groups>
312 <useFile>false</useFile>
313 <systemPropertyVariables>
314 <cassandra.version>${cassandra.version}</cassandra.version>
315 <ipprefix>${ipprefix}</ipprefix>
316 </systemPropertyVariables>
317 </configuration>
318 </plugin>
319 </plugins>
320 </build>
321 </profile>
322
323 <profile>
324 <id>duration</id>
325 <properties>
326 <env>default</env>
327 </properties>
328 <build>
329 <plugins>
330 <plugin>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-surefire-plugin</artifactId>
333 <version>2.16</version>
334 <configuration>
335 <groups>unit,short,long,duration</groups>
336 <useFile>false</useFile>
337 <systemPropertyVariables>
338 <cassandra.version>${cassandra.version}</cassandra.version>
339 <ipprefix>${ipprefix}</ipprefix>
340 </systemPropertyVariables>
341 </configuration>
342 </plugin>
343 </plugins>
344 </build>
345 </profile>
346
347 <profile>
348 <id>doc</id>
349 <properties>
350 <env>default</env>
351 </properties>
352 <build>
353 <plugins>
354 <plugin>
355 <groupId>org.apache.maven.plugins</groupId>
356 <artifactId>maven-surefire-plugin</artifactId>
357 <version>2.16</version>
358 <configuration>
359 <groups>unit,doc</groups>
360 <useFile>false</useFile>
361 <systemPropertyVariables>
362 <cassandra.version>${cassandra.version}</cassandra.version>
363 <ipprefix>${ipprefix}</ipprefix>
364 </systemPropertyVariables>
365 </configuration>
366 </plugin>
367 </plugins>
368 </build>
369 </profile>
370 </profiles>
371
372 <licenses>
373 <license>
374 <name>Apache 2</name>
375 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
376 <distribution>repo</distribution>
377 <comments>Apache License Version 2.0</comments>
378 </license>
379 </licenses>
380
381 <scm>
382 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
383 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
384 <url>https://github.com/datastax/java-driver</url>
385 <tag>HEAD</tag>
386 </scm>
387
388 <developers>
389 <developer>
390 <name>Various</name>
391 <organization>DataStax</organization>
392 </developer>
393 </developers>
394
395</project>
396