Elffuss BraidHub

kikocis/java-driver public

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