Elffuss BraidHub

kikocis/java-driver public

4ba3297e30af · 15.6 KiBRawPermalink
1<!--
2
3 Copyright (C) 2012-2015 DataStax Inc.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17-->
18<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
20 <modelVersion>4.0.0</modelVersion>
21 <parent>
22 <groupId>com.datastax.cassandra</groupId>
23 <artifactId>cassandra-driver-parent</artifactId>
24 <version>3.0.1-SNAPSHOT</version>
25 </parent>
26 <artifactId>cassandra-driver-core</artifactId>
27 <packaging>bundle</packaging>
28 <name>DataStax Java Driver for Apache Cassandra - Core</name>
29 <description>A driver for Apache Cassandra 1.2+ that works exclusively with the Cassandra Query Language version 3
30 (CQL3) and Cassandra's binary protocol.
31 </description>
32 <url>https://github.com/datastax/java-driver</url>
33
34 <properties>
35 <main.basedir>${project.parent.basedir}</main.basedir>
36 </properties>
37
38 <dependencies>
39 <dependency>
40 <groupId>io.netty</groupId>
41 <artifactId>netty-handler</artifactId>
42 <version>${netty.version}</version>
43 </dependency>
44
45 <dependency>
46 <groupId>com.google.guava</groupId>
47 <artifactId>guava</artifactId>
48 <version>${guava.version}</version>
49 </dependency>
50
51 <dependency>
52 <groupId>io.dropwizard.metrics</groupId>
53 <artifactId>metrics-core</artifactId>
54 <version>${metrics.version}</version>
55 </dependency>
56
57 <dependency>
58 <groupId>com.github.jnr</groupId>
59 <artifactId>jnr-ffi</artifactId>
60 <version>${jnr-ffi.version}</version>
61 </dependency>
62
63 <!-- Compression libraries for the protocol. -->
64 <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
65
66 <dependency>
67 <groupId>org.xerial.snappy</groupId>
68 <artifactId>snappy-java</artifactId>
69 <version>${snappy.version}</version>
70 <optional>true</optional>
71 </dependency>
72
73 <dependency>
74 <groupId>net.jpountz.lz4</groupId>
75 <artifactId>lz4</artifactId>
76 <version>${lz4.version}</version>
77 <optional>true</optional>
78 </dependency>
79
80 <!-- End of compression libraries -->
81
82 <dependency>
83 <groupId>io.netty</groupId>
84 <artifactId>netty-transport-native-epoll</artifactId>
85 <version>${netty.version}</version>
86 <optional>true</optional>
87 </dependency>
88
89 <dependency>
90 <groupId>org.hdrhistogram</groupId>
91 <artifactId>HdrHistogram</artifactId>
92 <version>${hdr.version}</version>
93 <optional>true</optional>
94 </dependency>
95
96 <dependency>
97 <groupId>org.testng</groupId>
98 <artifactId>testng</artifactId>
99 <version>${testng.version}</version>
100 <scope>test</scope>
101 </dependency>
102
103 <dependency>
104 <groupId>org.assertj</groupId>
105 <artifactId>assertj-core</artifactId>
106 <version>${assertj.version}</version>
107 <scope>test</scope>
108 </dependency>
109
110 <dependency>
111 <groupId>org.mockito</groupId>
112 <artifactId>mockito-all</artifactId>
113 <version>${mockito.version}</version>
114 <scope>test</scope>
115 </dependency>
116
117 <dependency>
118 <groupId>org.scassandra</groupId>
119 <artifactId>java-client</artifactId>
120 <version>${scassandra.version}</version>
121 <scope>test</scope>
122 <exclusions>
123 <exclusion>
124 <groupId>ch.qos.logback</groupId>
125 <artifactId>logback-classic</artifactId>
126 </exclusion>
127 </exclusions>
128 </dependency>
129
130 <dependency>
131 <groupId>org.apache.commons</groupId>
132 <artifactId>commons-exec</artifactId>
133 <version>${commons-exec.version}</version>
134 <scope>test</scope>
135 </dependency>
136
137 <dependency>
138 <groupId>io.netty</groupId>
139 <artifactId>netty-tcnative</artifactId>
140 <version>1.1.33.Fork10</version>
141 <classifier>${os.detected.classifier}</classifier>
142 <scope>test</scope>
143 </dependency>
144
145 <dependency>
146 <groupId>log4j</groupId>
147 <artifactId>log4j</artifactId>
148 <version>${log4j.version}</version>
149 <scope>test</scope>
150 </dependency>
151
152 <dependency>
153 <groupId>org.slf4j</groupId>
154 <artifactId>slf4j-log4j12</artifactId>
155 <version>${slf4j-log4j12.version}</version>
156 <scope>test</scope>
157 </dependency>
158
159 </dependencies>
160
161 <build>
162 <resources>
163 <resource>
164 <directory>src/main/resources</directory>
165 <filtering>true</filtering>
166 </resource>
167 </resources>
168 <plugins>
169 <plugin>
170 <groupId>org.apache.maven.plugins</groupId>
171 <artifactId>maven-jar-plugin</artifactId>
172 <version>2.2</version>
173 <executions>
174 <execution>
175 <goals>
176 <goal>test-jar</goal>
177 </goals>
178 <phase>test-compile</phase>
179 </execution>
180 </executions>
181 </plugin>
182 <plugin>
183 <groupId>org.apache.felix</groupId>
184 <artifactId>maven-bundle-plugin</artifactId>
185 <extensions>true</extensions>
186 <version>2.4.0</version>
187 <!--
188 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
189 (because the project uses the `bundle` packaging)
190 -->
191 <configuration>
192 <instructions>
193 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
194 <Bundle-Version>${project.version}</Bundle-Version>
195 <_include>-osgi.bnd</_include>
196 <Import-Package>
197 <!-- JNR does not provide OSGi bundles, so exclude it; the driver can live without it -->
198 <![CDATA[com.google.common*;version="[14.0,20)",!jnr.*,*]]></Import-Package>
199 </instructions>
200 <supportedProjectTypes>
201 <supportedProjectType>jar</supportedProjectType>
202 <supportedProjectType>bundle</supportedProjectType>
203 <supportedProjectType>pom</supportedProjectType>
204 </supportedProjectTypes>
205 </configuration>
206 <executions>
207 <!-- Alternate execution to generate the shaded JAR's manifest -->
208 <execution>
209 <id>bundle-manifest-shaded</id>
210 <phase>prepare-package</phase>
211 <goals>
212 <goal>manifest</goal>
213 </goals>
214 <configuration>
215 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
216 <instructions>
217 <Import-Package>
218 <!--
219 JNR does not provide OSGi bundles, so exclude it; the driver can live without it
220 Explicitly import javax.security.cert because it's required by Netty, but Netty has been explicitly excluded
221 -->
222 <![CDATA[com.google.common.*;version="[14.0,19)",!jnr.*,!io.netty.*,javax.security.cert,*]]></Import-Package>
223 <Private-Package>com.datastax.shaded.*</Private-Package>
224 </instructions>
225 </configuration>
226 </execution>
227 </executions>
228 </plugin>
229 <plugin>
230 <artifactId>maven-shade-plugin</artifactId>
231 <version>2.3</version>
232 <executions>
233 <execution>
234 <phase>package</phase>
235 <goals>
236 <goal>shade</goal>
237 </goals>
238 <configuration>
239 <shadedArtifactAttached>true</shadedArtifactAttached>
240 <artifactSet>
241 <includes>
242 <include>io.netty:*</include>
243 </includes>
244 <excludes>
245 <exclude>io.netty:netty-transport-native-epoll</exclude>
246 </excludes>
247 </artifactSet>
248 <relocations>
249 <relocation>
250 <pattern>io.netty</pattern>
251 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
252 </relocation>
253 </relocations>
254 <transformers>
255 <transformer
256 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
257 <resources>
258 <resource>META-INF/MANIFEST.MF</resource>
259 <resource>META-INF/io.netty.versions.properties</resource>
260 <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
261 <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
262 <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
263 <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
264 <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
265 <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
266 <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
267 <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
268 <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
269 <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
270 </resources>
271 </transformer>
272 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
273 <transformer
274 implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
275 <resource>META-INF/MANIFEST.MF</resource>
276 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
277 </transformer>
278 </transformers>
279 </configuration>
280 </execution>
281 </executions>
282 </plugin>
283 </plugins>
284
285 <pluginManagement>
286 <plugins>
287 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
288 <plugin>
289 <groupId>org.eclipse.m2e</groupId>
290 <artifactId>lifecycle-mapping</artifactId>
291 <version>1.0.0</version>
292 <configuration>
293 <lifecycleMappingMetadata>
294 <pluginExecutions>
295 <pluginExecution>
296 <pluginExecutionFilter>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-jar-plugin</artifactId>
299 <versionRange>[2.2,)</versionRange>
300 <goals>
301 <goal>test-jar</goal>
302 </goals>
303 </pluginExecutionFilter>
304 <action>
305 <ignore/>
306 </action>
307 </pluginExecution>
308 </pluginExecutions>
309 </lifecycleMappingMetadata>
310 </configuration>
311 </plugin>
312 </plugins>
313 </pluginManagement>
314 <extensions>
315 <extension>
316 <groupId>kr.motd.maven</groupId>
317 <artifactId>os-maven-plugin</artifactId>
318 <version>1.4.1.Final</version>
319 </extension>
320 </extensions>
321 </build>
322
323 <profiles>
324 <profile>
325 <id>isolated</id>
326 <properties>
327 <env>default</env>
328 </properties>
329 <build>
330 <plugins>
331 <plugin>
332 <groupId>org.apache.maven.plugins</groupId>
333 <artifactId>maven-surefire-plugin</artifactId>
334 <version>2.16</version>
335 <configuration>
336 <skip>false</skip>
337 <includes>
338 <include>**/SSL*Test.java</include>
339 <include>**/ControlConnectionTest.java</include>
340 <include>**/ExtendedPeerCheckDisabledTest.java</include>
341 </includes>
342 </configuration>
343 </plugin>
344 </plugins>
345 </build>
346 </profile>
347 </profiles>
348
349 <licenses>
350 <license>
351 <name>Apache 2</name>
352 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
353 <distribution>repo</distribution>
354 <comments>Apache License Version 2.0</comments>
355 </license>
356 </licenses>
357
358 <scm>
359 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
360 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
361 <url>https://github.com/datastax/java-driver</url>
362 <tag>HEAD</tag>
363 </scm>
364
365 <developers>
366 <developer>
367 <name>Various</name>
368 <organization>DataStax</organization>
369 </developer>
370 </developers>
371
372</project>
373