Elffuss BraidHub

kikocis/java-driver public

34bc3c2fc8c8 · 12.4 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>2.1.10-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>com.codahale.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>1.3</version>
140 <scope>test</scope>
141 </dependency>
142
143 </dependencies>
144
145 <build>
146 <resources>
147 <resource>
148 <directory>src/main/resources</directory>
149 <filtering>true</filtering>
150 </resource>
151 </resources>
152 <plugins>
153 <plugin>
154 <artifactId>maven-compiler-plugin</artifactId>
155 <configuration>
156 <compilerArgument>-Xlint:all</compilerArgument>
157 <showWarnings>true</showWarnings>
158 <showDeprecation>true</showDeprecation>
159 </configuration>
160 </plugin>
161 <plugin>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-jar-plugin</artifactId>
164 <version>2.2</version>
165 <executions>
166 <execution>
167 <goals>
168 <goal>test-jar</goal>
169 </goals>
170 <phase>test-compile</phase>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <groupId>org.apache.felix</groupId>
176 <artifactId>maven-bundle-plugin</artifactId>
177 <extensions>true</extensions>
178 <version>2.4.0</version>
179 <!--
180 Default configuration, used by the `bundle` goal that is implicitly bound to the `package` phase
181 (because the project uses the `bundle` packaging)
182 -->
183 <configuration>
184 <instructions>
185 <Bundle-SymbolicName>com.datastax.driver.core</Bundle-SymbolicName>
186 <Bundle-Version>${project.version}</Bundle-Version>
187 <_include>-osgi.bnd</_include>
188 <Import-Package>
189 <!-- JNR does not provide OSGi bundles, so exclude it; the driver can live without it -->
190 <![CDATA[com.google.common*;version="[14.0,19)",!jnr.*,*]]></Import-Package>
191 </instructions>
192 <supportedProjectTypes>
193 <supportedProjectType>jar</supportedProjectType>
194 <supportedProjectType>bundle</supportedProjectType>
195 <supportedProjectType>pom</supportedProjectType>
196 </supportedProjectTypes>
197 </configuration>
198 <executions>
199 <!-- Alternate execution to generate the shaded JAR's manifest -->
200 <execution>
201 <id>bundle-manifest-shaded</id>
202 <phase>prepare-package</phase>
203 <goals>
204 <goal>manifest</goal>
205 </goals>
206 <configuration>
207 <manifestLocation>${project.build.directory}/META-INF-shaded</manifestLocation>
208 <instructions>
209 <Import-Package>
210 <!--
211 JNR does not provide OSGi bundles, so exclude it; the driver can live without it
212 Explicitly import javax.security.cert because it's required by Netty, but Netty has been explicitly excluded
213 -->
214 <![CDATA[com.google.common.*;version="[14.0,19)",!jnr.*,!io.netty.*,javax.security.cert,*]]></Import-Package>
215 <Private-Package>com.datastax.shaded.*</Private-Package>
216 </instructions>
217 </configuration>
218 </execution>
219 </executions>
220 </plugin>
221 <plugin>
222 <artifactId>maven-shade-plugin</artifactId>
223 <version>2.3</version>
224 <executions>
225 <execution>
226 <phase>package</phase>
227 <goals>
228 <goal>shade</goal>
229 </goals>
230 <configuration>
231 <shadedArtifactAttached>true</shadedArtifactAttached>
232 <artifactSet>
233 <includes>
234 <include>io.netty:*</include>
235 </includes>
236 <excludes>
237 <exclude>io.netty:netty-transport-native-epoll</exclude>
238 </excludes>
239 </artifactSet>
240 <relocations>
241 <relocation>
242 <pattern>io.netty</pattern>
243 <shadedPattern>com.datastax.shaded.netty</shadedPattern>
244 </relocation>
245 </relocations>
246 <transformers>
247 <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
248 <resources>
249 <resource>META-INF/MANIFEST.MF</resource>
250 <resource>META-INF/io.netty.versions.properties</resource>
251 <resource>META-INF/maven/io.netty/netty-buffer/pom.properties</resource>
252 <resource>META-INF/maven/io.netty/netty-buffer/pom.xml</resource>
253 <resource>META-INF/maven/io.netty/netty-codec/pom.properties</resource>
254 <resource>META-INF/maven/io.netty/netty-codec/pom.xml</resource>
255 <resource>META-INF/maven/io.netty/netty-common/pom.properties</resource>
256 <resource>META-INF/maven/io.netty/netty-common/pom.xml</resource>
257 <resource>META-INF/maven/io.netty/netty-handler/pom.properties</resource>
258 <resource>META-INF/maven/io.netty/netty-handler/pom.xml</resource>
259 <resource>META-INF/maven/io.netty/netty-transport/pom.properties</resource>
260 <resource>META-INF/maven/io.netty/netty-transport/pom.xml</resource>
261 </resources>
262 </transformer>
263 <!-- Pick up the alternate manifest that was generated by the alternate execution of the bundle plugin -->
264 <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
265 <resource>META-INF/MANIFEST.MF</resource>
266 <file>${project.build.directory}/META-INF-shaded/MANIFEST.MF</file>
267 </transformer>
268 </transformers>
269 </configuration>
270 </execution>
271 </executions>
272 </plugin>
273 </plugins>
274
275 <pluginManagement>
276 <plugins>
277 <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
278 <plugin>
279 <groupId>org.eclipse.m2e</groupId>
280 <artifactId>lifecycle-mapping</artifactId>
281 <version>1.0.0</version>
282 <configuration>
283 <lifecycleMappingMetadata>
284 <pluginExecutions>
285 <pluginExecution>
286 <pluginExecutionFilter>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-jar-plugin</artifactId>
289 <versionRange>[2.2,)</versionRange>
290 <goals>
291 <goal>test-jar</goal>
292 </goals>
293 </pluginExecutionFilter>
294 <action>
295 <ignore/>
296 </action>
297 </pluginExecution>
298 </pluginExecutions>
299 </lifecycleMappingMetadata>
300 </configuration>
301 </plugin>
302 </plugins>
303 </pluginManagement>
304 </build>
305
306 <profiles>
307 <profile>
308 <id>isolated</id>
309 <properties>
310 <env>default</env>
311 </properties>
312 <build>
313 <plugins>
314 <plugin>
315 <groupId>org.apache.maven.plugins</groupId>
316 <artifactId>maven-surefire-plugin</artifactId>
317 <version>2.16</version>
318 <configuration>
319 <skip>false</skip>
320 <includes>
321 <include>**/SSL*Test.java</include>
322 <include>**/UUIDsPID*.java</include>
323 <include>**/ControlConnectionTest.java</include>
324 <include>**/ExtendedPeerCheckDisabledTest.java</include>
325 </includes>
326 </configuration>
327 </plugin>
328 </plugins>
329 </build>
330 </profile>
331 </profiles>
332
333 <licenses>
334 <license>
335 <name>Apache 2</name>
336 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
337 <distribution>repo</distribution>
338 <comments>Apache License Version 2.0</comments>
339 </license>
340 </licenses>
341
342 <scm>
343 <connection>scm:git:git@github.com:datastax/java-driver.git</connection>
344 <developerConnection>scm:git:git@github.com:datastax/java-driver.git</developerConnection>
345 <url>https://github.com/datastax/java-driver</url>
346 <tag>HEAD</tag>
347 </scm>
348
349 <developers>
350 <developer>
351 <name>Various</name>
352 <organization>DataStax</organization>
353 </developer>
354 </developers>
355
356</project>
357