Elffuss BraidHub

kikocis/java-driver public

fab1098d2b7c · 15.9 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.1.0-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 <dependency>
64 <groupId>com.github.jnr</groupId>
65 <artifactId>jnr-posix</artifactId>
66 <version>${jnr-posix.version}</version>
67 </dependency>
68
69 <!-- Compression libraries for the protocol. -->
70 <!-- Each of them is only a mandatory runtime dependency if you want to use the compression it offers -->
71
72 <dependency>
73 <groupId>org.xerial.snappy</groupId>
74 <artifactId>snappy-java</artifactId>
75 <version>${snappy.version}</version>
76 <optional>true</optional>
77 </dependency>
78
79 <dependency>
80 <groupId>net.jpountz.lz4</groupId>
81 <artifactId>lz4</artifactId>
82 <version>${lz4.version}</version>
83 <optional>true</optional>
84 </dependency>
85
86 <!-- End of compression libraries -->
87
88 <dependency>
89 <groupId>io.netty</groupId>
90 <artifactId>netty-transport-native-epoll</artifactId>
91 <version>${netty.version}</version>
92 <optional>true</optional>
93 </dependency>
94
95 <dependency>
96 <groupId>org.hdrhistogram</groupId>
97 <artifactId>HdrHistogram</artifactId>
98 <version>${hdr.version}</version>
99 <optional>true</optional>
100 </dependency>
101
102 <dependency>
103 <groupId>org.testng</groupId>
104 <artifactId>testng</artifactId>
105 <version>${testng.version}</version>
106 <scope>test</scope>
107 </dependency>
108
109 <dependency>
110 <groupId>org.assertj</groupId>
111 <artifactId>assertj-core</artifactId>
112 <version>${assertj.version}</version>
113 <scope>test</scope>
114 </dependency>
115
116 <dependency>
117 <groupId>org.mockito</groupId>
118 <artifactId>mockito-all</artifactId>
119 <version>${mockito.version}</version>
120 <scope>test</scope>
121 </dependency>
122
123 <dependency>
124 <groupId>org.scassandra</groupId>
125 <artifactId>java-client</artifactId>
126 <version>${scassandra.version}</version>
127 <scope>test</scope>
128 <exclusions>
129 <exclusion>
130 <groupId>ch.qos.logback</groupId>
131 <artifactId>logback-classic</artifactId>
132 </exclusion>
133 </exclusions>
134 </dependency>
135
136 <dependency>
137 <groupId>org.apache.commons</groupId>
138 <artifactId>commons-exec</artifactId>
139 <version>${commons-exec.version}</version>
140 <scope>test</scope>
141 </dependency>
142
143 <dependency>
144 <groupId>io.netty</groupId>
145 <artifactId>netty-tcnative</artifactId>
146 <version>1.1.33.Fork18</version>
147 <classifier>${os.detected.classifier}</classifier>
148 <scope>test</scope>
149 </dependency>
150
151 <dependency>
152 <groupId>log4j</groupId>
153 <artifactId>log4j</artifactId>
154 <version>${log4j.version}</version>
155 <scope>test</scope>
156 </dependency>
157
158 <dependency>
159 <groupId>org.slf4j</groupId>
160 <artifactId>slf4j-log4j12</artifactId>
161 <version>${slf4j-log4j12.version}</version>
162 <scope>test</scope>
163 </dependency>
164
165 </dependencies>
166
167 <build>
168 <resources>
169 <resource>
170 <directory>src/main/resources</directory>
171 <filtering>true</filtering>
172 </resource>
173 </resources>
174 <plugins>
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-jar-plugin</artifactId>
178 <version>2.2</version>
179 <executions>
180 <execution>
181 <goals>
182 <goal>test-jar</goal>
183 </goals>
184 <phase>test-compile</phase>
185 </execution>
186 </executions>
187 </plugin>
188 <plugin>
189 <groupId>org.apache.felix</groupId>
190 <artifactId>maven-bundle-plugin</artifactId>
191 <extensions>true</extensions>
192 <version>2.4.0</version>
193 <!--
194 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
195 (because the project uses the `bundle` packaging)
196 -->
197 <configuration>
198 <instructions>
199 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
200 <Bundle-Version>${project.version}</Bundle-Version>
201 <_include>-osgi.bnd</_include>
202 <Import-Package>
203 <!-- JNR does not provide OSGi bundles, so exclude it; the driver can live without it -->
204 <![CDATA[com.google.common*;version="[14.0,20)",!jnr.*,*]]></Import-Package>
205 </instructions>
206 <supportedProjectTypes>
207 <supportedProjectType>jar</supportedProjectType>
208 <supportedProjectType>bundle</supportedProjectType>
209 <supportedProjectType>pom</supportedProjectType>
210 </supportedProjectTypes>
211 </configuration>
212 <executions>
213 <!-- Alternate execution to generate the shaded JAR's manifest -->
214 <execution>
215 <id>bundle-manifest-shaded</id>
216 <phase>prepare-package</phase>
217 <goals>
218 <goal>manifest</goal>
219 </goals>
220 <configuration>
221 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
222 <instructions>
223 <Import-Package>
224 <!--
225 JNR does not provide OSGi bundles, so exclude it; the driver can live without it
226 Explicitly import javax.security.cert because it's required by Netty, but Netty has been explicitly excluded
227 -->
228 <![CDATA[com.google.common.*;version="[14.0,19)",!jnr.*,!io.netty.*,javax.security.cert,*]]></Import-Package>
229 <Private-Package>com.datastax.shaded.*</Private-Package>
230 </instructions>
231 </configuration>
232 </execution>
233 </executions>
234 </plugin>
235 <plugin>
236 <artifactId>maven-shade-plugin</artifactId>
237 <version>2.3</version>
238 <executions>
239 <execution>
240 <phase>package</phase>
241 <goals>
242 <goal>shade</goal>
243 </goals>
244 <configuration>
245 <shadedArtifactAttached>true</shadedArtifactAttached>
246 <artifactSet>
247 <includes>
248 <include>io.netty:*</include>
249 </includes>
250 <excludes>
251 <exclude>io.netty:netty-transport-native-epoll</exclude>
252 </excludes>
253 </artifactSet>
254 <relocations>
255 <relocation>
256 <pattern>io.netty</pattern>
257 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
258 </relocation>
259 </relocations>
260 <transformers>
261 <transformer
262 implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
263 <resources>
264 <resource>META-INF/MANIFEST.MF</resource>
265 <resource>META-INF/io.netty.versions.properties</resource>
266 <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
267 <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
268 <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
269 <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
270 <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
271 <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
272 <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
273 <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
274 <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
275 <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
276 </resources>
277 </transformer>
278 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
279 <transformer
280 implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
281 <resource>META-INF/MANIFEST.MF</resource>
282 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
283 </transformer>
284 </transformers>
285 </configuration>
286 </execution>
287 </executions>
288 </plugin>
289 </plugins>
290
291 <pluginManagement>
292 <plugins>
293 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
294 <plugin>
295 <groupId>org.eclipse.m2e</groupId>
296 <artifactId>lifecycle-mapping</artifactId>
297 <version>1.0.0</version>
298 <configuration>
299 <lifecycleMappingMetadata>
300 <pluginExecutions>
301 <pluginExecution>
302 <pluginExecutionFilter>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-jar-plugin</artifactId>
305 <versionRange>[2.2,)</versionRange>
306 <goals>
307 <goal>test-jar</goal>
308 </goals>
309 </pluginExecutionFilter>
310 <action>
311 <ignore/>
312 </action>
313 </pluginExecution>
314 </pluginExecutions>
315 </lifecycleMappingMetadata>
316 </configuration>
317 </plugin>
318 </plugins>
319 </pluginManagement>
320 <extensions>
321 <extension>
322 <groupId>kr.motd.maven</groupId>
323 <artifactId>os-maven-plugin</artifactId>
324 <version>1.4.1.Final</version>
325 </extension>
326 </extensions>
327 </build>
328
329 <profiles>
330 <profile>
331 <id>isolated</id>
332 <properties>
333 <env>default</env>
334 </properties>
335 <build>
336 <plugins>
337 <plugin>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-surefire-plugin</artifactId>
340 <version>2.16</version>
341 <configuration>
342 <skip>false</skip>
343 <includes>
344 <include>**/SSL*Test.java</include>
345 <include>**/ControlConnectionTest.java</include>
346 <include>**/ExtendedPeerCheckDisabledTest.java</include>
347 <include>**/UUIDsPID*.java</include>
348 </includes>
349 </configuration>
350 </plugin>
351 </plugins>
352 </build>
353 </profile>
354 </profiles>
355
356 <licenses>
357 <license>
358 <name>Apache 2</name>
359 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
360 <distribution>repo</distribution>
361 <comments>Apache License Version 2.0</comments>
362 </license>
363 </licenses>
364
365 <scm>
366 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
367 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
368 <url>https://github.com/datastax/java-driver</url>
369 <tag>HEAD</tag>
370 </scm>
371
372 <developers>
373 <developer>
374 <name>Various</name>
375 <organization>DataStax</organization>
376 </developer>
377 </developers>
378
379</project>
380