Elffuss BraidHub

kikocis/java-driver public

6df6dd37b0eb · 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.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</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 <pluginManagement>
213 <plugins>
214 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
215 <plugin>
216 <groupId>org.eclipse.m2e</groupId>
217 <artifactId>lifecycle-mapping</artifactId>
218 <version>1.0.0</version>
219 <configuration>
220 <lifecycleMappingMetadata>
221 <pluginExecutions>
222 <pluginExecution>
223 <pluginExecutionFilter>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-jar-plugin</artifactId>
226 <versionRange>[2.2,)</versionRange>
227 <goals>
228 <goal>test-jar</goal>
229 </goals>
230 </pluginExecutionFilter>
231 <action>
232 <ignore />
233 </action>
234 </pluginExecution>
235 </pluginExecutions>
236 </lifecycleMappingMetadata>
237 </configuration>
238 </plugin>
239 </plugins>
240 </pluginManagement>
241 </build>
242
243 <profiles>
244 <profile>
245 <id>default</id>
246 <properties>
247 <env>default</env>
248 </properties>
249 <activation>
250 <activeByDefault>true</activeByDefault>
251 </activation>
252 <build>
253 <plugins>
254 <plugin>
255 <groupId>org.apache.maven.plugins</groupId>
256 <artifactId>maven-surefire-plugin</artifactId>
257 <version>2.16</version>
258 <configuration>
259 <groups>unit</groups>
260 <useFile>false</useFile>
261 <systemPropertyVariables>
262 <cassandra.version>${cassandra.version}</cassandra.version>
263 <ipprefix>${ipprefix}</ipprefix>
264 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
265 </systemPropertyVariables>
266 <!--May be needed for debugging-->
267 <!--<forkMode>never</forkMode>-->
268 </configuration>
269 </plugin>
270 </plugins>
271 </build>
272 </profile>
273
274 <profile>
275 <id>short</id>
276 <properties>
277 <env>default</env>
278 </properties>
279 <build>
280 <plugins>
281 <plugin>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-surefire-plugin</artifactId>
284 <version>2.16</version>
285 <configuration>
286 <groups>unit,short</groups>
287 <useFile>false</useFile>
288 <systemPropertyVariables>
289 <cassandra.version>${cassandra.version}</cassandra.version>
290 <ipprefix>${ipprefix}</ipprefix>
291 </systemPropertyVariables>
292 </configuration>
293 </plugin>
294 </plugins>
295 </build>
296 </profile>
297
298 <profile>
299 <id>long</id>
300 <properties>
301 <env>default</env>
302 </properties>
303 <build>
304 <plugins>
305 <plugin>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-surefire-plugin</artifactId>
308 <version>2.16</version>
309 <configuration>
310 <groups>unit,short,long</groups>
311 <useFile>false</useFile>
312 <systemPropertyVariables>
313 <cassandra.version>${cassandra.version}</cassandra.version>
314 <ipprefix>${ipprefix}</ipprefix>
315 </systemPropertyVariables>
316 </configuration>
317 </plugin>
318 </plugins>
319 </build>
320 </profile>
321
322 <profile>
323 <id>duration</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,duration</groups>
335 <useFile>false</useFile>
336 <systemPropertyVariables>
337 <cassandra.version>${cassandra.version}</cassandra.version>
338 <ipprefix>${ipprefix}</ipprefix>
339 </systemPropertyVariables>
340 </configuration>
341 </plugin>
342 </plugins>
343 </build>
344 </profile>
345
346 <profile>
347 <id>doc</id>
348 <properties>
349 <env>default</env>
350 </properties>
351 <build>
352 <plugins>
353 <plugin>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-surefire-plugin</artifactId>
356 <version>2.16</version>
357 <configuration>
358 <groups>unit,doc</groups>
359 <useFile>false</useFile>
360 <systemPropertyVariables>
361 <cassandra.version>${cassandra.version}</cassandra.version>
362 <ipprefix>${ipprefix}</ipprefix>
363 </systemPropertyVariables>
364 </configuration>
365 </plugin>
366 </plugins>
367 </build>
368 </profile>
369 </profiles>
370
371 <licenses>
372 <license>
373 <name>Apache 2</name>
374 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
375 <distribution>repo</distribution>
376 <comments>Apache License Version 2.0</comments>
377 </license>
378 </licenses>
379
380 <scm>
381 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
382 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
383 <url>https://github.com/datastax/java-driver</url>
384 </scm>
385
386 <developers>
387 <developer>
388 <name>Various</name>
389 <organization>DataStax</organization>
390 </developer>
391 </developers>
392
393</project>
394