Elffuss BraidHub

kikocis/java-driver public

58ff038658ac · 10.3 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.felix</groupId>
126 <artifactId>maven-bundle-plugin</artifactId>
127 <extensions>true</extensions>
128 <version>2.4.0</version>
129 <executions>
130 <execution>
131 <id>bundle-manifest</id>
132 <phase>process-classes</phase>
133 <goals>
134 <goal>manifest</goal>
135 </goals>
136 </execution>
137 </executions>
138 <configuration>
139 <instructions>
140 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
141 <Bundle-Version>${project.version}</Bundle-Version>
142 <_include>-osgi.bnd</_include>
143 <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",*]]></Import-Package>
144 </instructions>
145 <supportedProjectTypes>
146 <supportedProjectType>jar</supportedProjectType>
147 <supportedProjectType>bundle</supportedProjectType>
148 <supportedProjectType>pom</supportedProjectType>
149 </supportedProjectTypes>
150 </configuration>
151 </plugin>
152 <plugin>
153 <artifactId>maven-shade-plugin</artifactId>
154 <version>2.3</version>
155 <executions>
156 <execution>
157 <phase>package</phase>
158 <goals><goal>shade</goal></goals>
159 <configuration>
160 <shadedArtifactAttached>true</shadedArtifactAttached>
161 <artifactSet>
162 <includes>
163 <include>io.netty:netty</include>
164 </includes>
165 </artifactSet>
166 <relocations>
167 <relocation>
168 <pattern>org.jboss.netty</pattern>
169 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
170 </relocation>
171 </relocations>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 </plugins>
177 </build>
178
179 <profiles>
180 <profile>
181 <id>default</id>
182 <properties>
183 <env>default</env>
184 </properties>
185 <activation>
186 <activeByDefault>true</activeByDefault>
187 </activation>
188 <build>
189 <plugins>
190 <plugin>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-surefire-plugin</artifactId>
193 <version>2.16</version>
194 <configuration>
195 <groups>unit</groups>
196 <useFile>false</useFile>
197 <systemPropertyVariables>
198 <cassandra.version>${cassandra.version}</cassandra.version>
199 <ipprefix>${ipprefix}</ipprefix>
200 <com.datastax.driver.NEW_NODE_DELAY_SECONDS>60</com.datastax.driver.NEW_NODE_DELAY_SECONDS>
201 </systemPropertyVariables>
202 <!--May be needed for debugging-->
203 <!--<forkMode>never</forkMode>-->
204 </configuration>
205 </plugin>
206 </plugins>
207 </build>
208 </profile>
209
210 <profile>
211 <id>short</id>
212 <properties>
213 <env>default</env>
214 </properties>
215 <build>
216 <plugins>
217 <plugin>
218 <groupId>org.apache.maven.plugins</groupId>
219 <artifactId>maven-surefire-plugin</artifactId>
220 <version>2.16</version>
221 <configuration>
222 <groups>unit,short</groups>
223 <useFile>false</useFile>
224 <systemPropertyVariables>
225 <cassandra.version>${cassandra.version}</cassandra.version>
226 <ipprefix>${ipprefix}</ipprefix>
227 </systemPropertyVariables>
228 </configuration>
229 </plugin>
230 </plugins>
231 </build>
232 </profile>
233
234 <profile>
235 <id>long</id>
236 <properties>
237 <env>default</env>
238 </properties>
239 <build>
240 <plugins>
241 <plugin>
242 <groupId>org.apache.maven.plugins</groupId>
243 <artifactId>maven-surefire-plugin</artifactId>
244 <version>2.16</version>
245 <configuration>
246 <groups>unit,short,long</groups>
247 <useFile>false</useFile>
248 <systemPropertyVariables>
249 <cassandra.version>${cassandra.version}</cassandra.version>
250 <ipprefix>${ipprefix}</ipprefix>
251 </systemPropertyVariables>
252 </configuration>
253 </plugin>
254 </plugins>
255 </build>
256 </profile>
257
258 <profile>
259 <id>duration</id>
260 <properties>
261 <env>default</env>
262 </properties>
263 <build>
264 <plugins>
265 <plugin>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-surefire-plugin</artifactId>
268 <version>2.16</version>
269 <configuration>
270 <groups>unit,short,long,duration</groups>
271 <useFile>false</useFile>
272 <systemPropertyVariables>
273 <cassandra.version>${cassandra.version}</cassandra.version>
274 <ipprefix>${ipprefix}</ipprefix>
275 </systemPropertyVariables>
276 </configuration>
277 </plugin>
278 </plugins>
279 </build>
280 </profile>
281
282 <profile>
283 <id>doc</id>
284 <properties>
285 <env>default</env>
286 </properties>
287 <build>
288 <plugins>
289 <plugin>
290 <groupId>org.apache.maven.plugins</groupId>
291 <artifactId>maven-surefire-plugin</artifactId>
292 <version>2.16</version>
293 <configuration>
294 <groups>unit,doc</groups>
295 <useFile>false</useFile>
296 <systemPropertyVariables>
297 <cassandra.version>${cassandra.version}</cassandra.version>
298 <ipprefix>${ipprefix}</ipprefix>
299 </systemPropertyVariables>
300 </configuration>
301 </plugin>
302 </plugins>
303 </build>
304 </profile>
305 </profiles>
306
307 <licenses>
308 <license>
309 <name>Apache 2</name>
310 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
311 <distribution>repo</distribution>
312 <comments>Apache License Version 2.0</comments>
313 </license>
314 </licenses>
315
316 <scm>
317 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
318 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
319 <url>https://github.com/datastax/java-driver</url>
320 </scm>
321
322 <developers>
323 <developer>
324 <name>Various</name>
325 <organization>DataStax</organization>
326 </developer>
327 </developers>
328
329</project>
330