pom.xml 11.2 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3 4 5 6 7 8 9
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
10

11
  http://www.apache.org/licenses/LICENSE-2.0
12

13 14 15 16 17 18
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
19
-->
20
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 22 23 24 25
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

	<modelVersion>4.0.0</modelVersion>

	<parent>
26
		<groupId>org.apache.flink</groupId>
27
		<artifactId>flink-connectors</artifactId>
P
Piotr Nowojski 已提交
28
		<version>1.12-SNAPSHOT</version>
S
StephanEwen 已提交
29 30
		<relativePath>..</relativePath>
	</parent>
31

32
	<artifactId>flink-connector-hbase_${scala.binary.version}</artifactId>
33
	<name>Flink : Connectors : HBase</name>
34
	<packaging>jar</packaging>
35

36
	<properties>
37
		<hbase.version>1.4.3</hbase.version>
38 39
	</properties>

40 41 42 43 44 45 46
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.19.1</version>
				<configuration>
47
					<argLine>-XX:MaxPermSize=128m -Dmvn.forkNumber=${surefire.forkNumber}</argLine>
48 49 50 51 52 53 54
					<!-- Enforce single fork execution due to heavy mini cluster use in the tests -->
					<forkCount>1</forkCount>
				</configuration>
			</plugin>
		</plugins>
	</build>

55
	<dependencies>
56 57 58

		<!-- core dependencies -->

59
		<dependency>
60 61
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-core</artifactId>
62
			<version>${project.version}</version>
63
			<scope>provided</scope>
64
		</dependency>
65

66 67
		<!-- flink-java dependencies -->

68
		<dependency>
69 70
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-java</artifactId>
71
			<version>${project.version}</version>
72
			<scope>provided</scope>
73
		</dependency>
74

75 76 77 78
		<!-- flink-scala dependencies -->

		<dependency>
			<groupId>org.apache.flink</groupId>
79
			<artifactId>flink-scala_${scala.binary.version}</artifactId>
80 81 82 83 84 85 86 87
			<version>${project.version}</version>
			<scope>provided</scope>
		</dependency>

		<!-- streaming-scala dependencies -->

		<dependency>
			<groupId>org.apache.flink</groupId>
88
			<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>
89 90 91 92
			<version>${project.version}</version>
			<scope>provided</scope>
		</dependency>

93 94 95 96 97 98 99 100 101
		<!-- Table ecosystem -->
		<!-- Projects depending on this project won't depend on flink-table-*. -->
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-api-java-bridge_${scala.binary.version}</artifactId>
			<version>${project.version}</version>
			<scope>provided</scope>
			<optional>true</optional>
		</dependency>
102

103
		<dependency>
104 105 106
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
			<version>${project.version}</version>
107
			<scope>provided</scope>
108
		</dependency>
109

110
		<dependency>
111 112
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-common</artifactId>
113
			<scope>provided</scope>
114
		</dependency>
115 116 117

		<!-- HBase server needed for TableOutputFormat -->
		<!-- TODO implement bulk output format for HBase -->
118 119
		<dependency>
			<groupId>org.apache.hbase</groupId>
120
			<artifactId>hbase-server</artifactId>
121
			<version>${hbase.version}</version>
122 123 124 125 126 127
			<exclusions>
				<!-- Remove unneeded dependency, which is conflicting with our jetty-util version. -->
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-util</artifactId>
				</exclusion>
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jetty-sslengine</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jsp-2.1</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>jsp-api-2.1</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.mortbay.jetty</groupId>
					<artifactId>servlet-api-2.5</artifactId>
				</exclusion>
148 149 150 151 152
				<!-- Bug in hbase annotations, can be removed when fixed. See FLINK-2153. -->
				<exclusion>
					<groupId>org.apache.hbase</groupId>
					<artifactId>hbase-annotations</artifactId>
				</exclusion>
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
				<exclusion>
					<groupId>com.sun.jersey</groupId>
					<artifactId>jersey-core</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jersey</groupId>
					<artifactId>jersey-server</artifactId>
				</exclusion>
				<exclusion>
					<groupId>tomcat</groupId>
					<artifactId>jasper-compiler</artifactId>
				</exclusion>
				<exclusion>
					<groupId>tomcat</groupId>
					<artifactId>jasper-runtime</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jruby.jcodings</groupId>
					<artifactId>jcodings</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jruby.joni</groupId>
					<artifactId>joni</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.jamon</groupId>
					<artifactId>jamon-runtime</artifactId>
				</exclusion>
181 182 183 184
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
185 186 187 188
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>slf4j-log4j12</artifactId>
				</exclusion>
189
			</exclusions>
190
		</dependency>
191

192 193 194 195 196 197 198
		<dependency>
			<!-- Bump hbase netty dependency -->
			<groupId>io.netty</groupId>
			<artifactId>netty-all</artifactId>
			<version>4.1.44.Final</version>
		</dependency>

199 200 201 202 203 204 205
		<dependency>
			<!-- Replaces Hbase log4j dependency -->
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-1.2-api</artifactId>
			<scope>provided</scope>
		</dependency>

206 207 208 209
		<!-- test dependencies -->

		<dependency>
			<groupId>org.apache.flink</groupId>
210
			<artifactId>flink-clients_${scala.binary.version}</artifactId>
211 212 213 214 215 216
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
217
			<artifactId>flink-hadoop-compatibility_${scala.binary.version}</artifactId>
218 219 220 221 222
			<version>${project.version}</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<groupId>org.apache.flink</groupId>
223
					<artifactId>flink-shaded-include-yarn_${scala.binary.version}</artifactId>
224 225 226 227
				</exclusion>
			</exclusions>
		</dependency>

228 229 230 231 232
		<!-- Test dependencies are only available for Hadoop-2. -->
		<dependency>
			<groupId>org.apache.hbase</groupId>
			<artifactId>hbase-server</artifactId>
			<version>${hbase.version}</version>
233
			<type>test-jar</type>
234
			<scope>test</scope>
235 236 237 238 239 240 241 242 243 244
			<exclusions>
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>slf4j-log4j12</artifactId>
				</exclusion>
			</exclusions>
245
		</dependency>
246

247 248 249 250 251
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-minicluster</artifactId>
			<version>${hadoop.version}</version>
			<scope>test</scope>
252
			<exclusions>
253 254 255 256 257 258 259 260
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
				<exclusion>
					<groupId>org.slf4j</groupId>
					<artifactId>slf4j-log4j12</artifactId>
				</exclusion>
261 262 263 264 265 266
				<exclusion>
					<!-- This dependency is no longer shipped with the JDK since Java 9.-->
					<groupId>jdk.tools</groupId>
					<artifactId>jdk.tools</artifactId>
				</exclusion>
			</exclusions>
267
		</dependency>
268

269 270 271 272 273 274
		<dependency>
			<groupId>org.apache.hbase</groupId>
			<artifactId>hbase-hadoop-compat</artifactId>
			<version>${hbase.version}</version>
			<scope>test</scope>
			<type>test-jar</type>
275 276 277 278 279 280
			<exclusions>
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
			</exclusions>
281
		</dependency>
282

283 284 285 286 287 288
		<dependency>
			<groupId>org.apache.hadoop</groupId>
			<artifactId>hadoop-hdfs</artifactId>
			<version>${hadoop.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
289 290 291 292 293 294
			<exclusions>
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
			</exclusions>
295
		</dependency>
296

297 298 299 300 301 302
		<dependency>
			<groupId>org.apache.hbase</groupId>
			<artifactId>hbase-hadoop2-compat</artifactId>
			<version>${hbase.version}</version>
			<scope>test</scope>
			<type>test-jar</type>
303 304 305 306 307 308
			<exclusions>
				<exclusion>
					<groupId>log4j</groupId>
					<artifactId>log4j</artifactId>
				</exclusion>
			</exclusions>
309
		</dependency>
310 311
		<dependency>
			<groupId>org.apache.flink</groupId>
312
			<artifactId>flink-test-utils_${scala.binary.version}</artifactId>
313 314 315
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
316 317 318 319 320 321 322
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-common</artifactId>
			<version>${project.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
323 324 325 326
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-planner_${scala.binary.version}</artifactId>
			<version>${project.version}</version>
327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-planner_${scala.binary.version}</artifactId>
			<version>${project.version}</version>
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-planner-blink_${scala.binary.version}</artifactId>
			<version>${project.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-table-planner-blink_${scala.binary.version}</artifactId>
			<version>${project.version}</version>
346 347 348
			<type>test-jar</type>
			<scope>test</scope>
		</dependency>
349
	</dependencies>
350

351
	<profiles>
352 353
		<profile>
			<id>cdh5.1.3</id>
354 355 356 357 358
			<activation>
				<property>
					<name>cdh5.1.3</name>
				</property>
			</activation>
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375
			<properties>
				<hbase.version>0.98.1-cdh5.1.3</hbase.version>
				<hadoop.version>2.3.0-cdh5.1.3</hadoop.version>
				<!-- Cloudera use different versions for hadoop core and commons-->
				<!-- This profile could be removed if Cloudera fix this mismatch! -->
				<hadoop.core.version>2.3.0-mr1-cdh5.1.3</hadoop.core.version>
			</properties>
			<dependencyManagement>
				<dependencies>
					<dependency>
						<groupId>org.apache.hadoop</groupId>
						<artifactId>hadoop-core</artifactId>
						<version>${hadoop.core.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
		<profile>
			<id>java11</id>
			<activation>
				<jdk>11</jdk>
			</activation>

			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-surefire-plugin</artifactId>
						<configuration>
							<!-- hbase currently does not support Java 11, see HBASE-21110 -->
							<skip>true</skip>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
395
	</profiles>
396

397
</project>