Elffuss BraidHub

kikocis/java-driver public

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