Elffuss BraidHub

kikocis/java-driver public

bc0bfd0d5276 · 13.1 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.6-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>${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 <!-- End of compression libraries -->
66
67 <dependency>
68 <groupId>org.testng</groupId>
69 <artifactId>testng</artifactId>
70 <version>${testng.version}</version>
71 <scope>test</scope>
72 </dependency>
73
74 <dependency>
75 <groupId>org.assertj</groupId>
76 <artifactId>assertj-core</artifactId>
77 <version>${assertj.version}</version>
78 <scope>test</scope>
79 </dependency>
80
81 <dependency>
82 <groupId>org.mockito</groupId>
83 <artifactId>mockito-all</artifactId>
84 <version>${mockito.version}</version>
85 <scope>test</scope>
86 </dependency>
87
88 <dependency>
89 <groupId>org.scassandra</groupId>
90 <artifactId>java-client</artifactId>
91 <version>${scassandra.version}</version>
92 <scope>test</scope>
93 <exclusions>
94 <exclusion>
95 <groupId>ch.qos.logback</groupId>
96 <artifactId>logback-classic</artifactId>
97 </exclusion>
98 </exclusions>
99 </dependency>
100
101 </dependencies>
102
103 <build>
104 <resources>
105 <resource>
106 <directory>src/main/resources</directory>
107 <filtering>true</filtering>
108 </resource>
109 </resources>
110 <plugins>
111 <plugin>
112 <artifactId>maven-compiler-plugin</artifactId>
113 <configuration>
114 <compilerArgument>-Xlint:all</compilerArgument>
115 <showWarnings>true</showWarnings>
116 <showDeprecation>true</showDeprecation>
117 </configuration>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-jar-plugin</artifactId>
122 <version>2.2</version>
123 <executions>
124 <execution>
125 <goals>
126 <goal>test-jar</goal>
127 </goals>
128 <phase>test-compile</phase>
129 </execution>
130 </executions>
131 </plugin>
132 <plugin>
133 <groupId>org.apache.felix</groupId>
134 <artifactId>maven-bundle-plugin</artifactId>
135 <extensions>true</extensions>
136 <version>2.4.0</version>
137 <!--
138 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
139 (because the project uses the `bundle` packaging)
140 -->
141 <configuration>
142 <instructions>
143 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
144 <Bundle-Version>${project.version}</Bundle-Version>
145 <_include>-osgi.bnd</_include>
146 <Import-Package><![CDATA[com.google.common*;version="[14.0,19)",*]]></Import-Package>
147 </instructions>
148 <supportedProjectTypes>
149 <supportedProjectType>jar</supportedProjectType>
150 <supportedProjectType>bundle</supportedProjectType>
151 <supportedProjectType>pom</supportedProjectType>
152 </supportedProjectTypes>
153 </configuration>
154 <executions>
155 <!-- Alternate execution to generate the shaded JAR's manifest -->
156 <execution>
157 <id>bundle-manifest-shaded</id>
158 <phase>prepare-package</phase>
159 <goals>
160 <goal>manifest</goal>
161 </goals>
162 <configuration>
163 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
164 <instructions>
165 <Import-Package><![CDATA[com.google.common.*;version="[14.0,19)",!org.jboss.netty.*,*]]></Import-Package>
166 <Private-Package>com.datastax.shaded.*</Private-Package>
167 </instructions>
168 </configuration>
169 </execution>
170 </executions>
171 </plugin>
172 <plugin>
173 <artifactId>maven-shade-plugin</artifactId>
174 <version>2.3</version>
175 <executions>
176 <execution>
177 <phase>package</phase>
178 <goals><goal>shade</goal></goals>
179 <configuration>
180 <shadedArtifactAttached>true</shadedArtifactAttached>
181 <artifactSet>
182 <includes>
183 <include>io.netty:netty</include>
184 </includes>
185 </artifactSet>
186 <relocations>
187 <relocation>
188 <pattern>org.jboss.netty</pattern>
189 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
190 </relocation>
191 </relocations>
192 <transformers>
193 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
194 <resources>
195 <resource>META-INF/MANIFEST.MF</resource>
196 <resource>META-INF/maven/io.netty/netty/pom.properties</resource>
197 <resource>META-INF/maven/io.netty/netty/pom.xml</resource>
198 </resources>
199 </transformer>
200 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
201 <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
202 <resource>META-INF/MANIFEST.MF</resource>
203 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
204 </transformer>
205 </transformers>
206 </configuration>
207 </execution>
208 </executions>
209 </plugin>
210 </plugins>
211
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 <tag>HEAD</tag>
385 </scm>
386
387 <developers>
388 <developer>
389 <name>Various</name>
390 <organization>DataStax</organization>
391 </developer>
392 </developers>
393
394</project>
395