Elffuss BraidHub

kikocis/java-driver public

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