pom.xml 64.7 KB
Newer Older
S
sewen 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3 4 5 6 7 8 9 10 11 12 13 14 15 16
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
  http://www.apache.org/licenses/LICENSE-2.0
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.
17
-->
18
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
19
		 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
S
sewen 已提交
20

21
	<parent>
22 23
		<groupId>org.apache</groupId>
		<artifactId>apache</artifactId>
24
		<version>20</version>
25 26
	</parent>

S
sewen 已提交
27
	<modelVersion>4.0.0</modelVersion>
28

29 30
	<groupId>org.apache.flink</groupId>
	<artifactId>flink-parent</artifactId>
G
Gary Yao 已提交
31
	<version>1.11-SNAPSHOT</version>
32

33
	<name>flink</name>
S
sewen 已提交
34
	<packaging>pom</packaging>
35
	<url>https://flink.apache.org</url>
36
	<inceptionYear>2014</inceptionYear>
37

S
sewen 已提交
38 39 40
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
41
			<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
42
			<distribution>repo</distribution>
S
sewen 已提交
43 44
		</license>
	</licenses>
45

46
	<scm>
47
		<url>https://github.com/apache/flink</url>
S
Stephan Ewen 已提交
48
		<connection>git@github.com:apache/flink.git</connection>
49
		<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/flink.git</developerConnection>
50 51
	</scm>

52
	<modules>
53
		<!-- Dummy module to force execution of the Maven Shade plugin (see Shade plugin below) -->
54
		<module>tools/force-shading</module>
55
		<module>flink-annotations</module>
56 57 58
		<module>flink-core</module>
		<module>flink-java</module>
		<module>flink-scala</module>
59
		<module>flink-filesystems</module>
60
		<module>flink-runtime</module>
61
		<module>flink-runtime-web</module>
62
		<module>flink-optimizer</module>
63 64
		<module>flink-streaming-java</module>
		<module>flink-streaming-scala</module>
65
		<module>flink-connectors</module>
66
		<module>flink-formats</module>
67 68
		<module>flink-examples</module>
		<module>flink-clients</module>
69
		<module>flink-container</module>
70
		<module>flink-queryable-state</module>
T
Till Rohrmann 已提交
71
		<module>flink-tests</module>
72
		<module>flink-end-to-end-tests</module>
73
		<module>flink-test-utils-parent</module>
74
		<module>flink-state-backends</module>
75
		<module>flink-libraries</module>
76
		<module>flink-table</module>
77
		<module>flink-quickstart</module>
78
		<module>flink-contrib</module>
79
		<module>flink-dist</module>
80
		<module>flink-mesos</module>
81
		<module>flink-metrics</module>
82
		<module>flink-yarn</module>
83
		<module>flink-yarn-tests</module>
84
		<module>flink-fs-tests</module>
85
		<module>flink-docs</module>
86
		<module>flink-python</module>
87
		<module>flink-ml-parent</module>
88
		<module>flink-walkthroughs</module>
89
		<module>flink-kubernetes</module>
90 91
	</modules>

S
sewen 已提交
92 93
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
S
StephanEwen 已提交
94
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
95
		<hadoop.version>2.4.1</hadoop.version>
96
		<!-- Need to use a user property here because the surefire
A
Aljoscha Krettek 已提交
97 98
			 forkCount is not exposed as a property. With this we can set
			 it on the "mvn" commandline in travis. -->
99
		<flink.forkCount>1C</flink.forkCount>
100 101 102
		<!-- Allow overriding the fork behaviour for the expensive tests in flink-tests
			 to avoid process kills due to container limits on TravisCI -->
		<flink.forkCountTestPackage>${flink.forkCount}</flink.forkCountTestPackage>
103
		<flink.reuseForks>true</flink.reuseForks>
104
		<log4j.configuration>log4j2-test.properties</log4j.configuration>
105
		<flink.shaded.version>10.0</flink.shaded.version>
106
		<guava.version>18.0</guava.version>
107
		<akka.version>2.5.21</akka.version>
108
		<java.version>1.8</java.version>
109
		<slf4j.version>1.7.15</slf4j.version>
110
		<log4j.version>2.12.1</log4j.version>
111 112 113 114 115
		<!-- Overwrite default values from parent pom.
			 Intellij is (sometimes?) using those values to choose target language level
			 and thus is changing back to java 1.6 on each maven re-import -->
		<maven.compiler.source>${java.version}</maven.compiler.source>
		<maven.compiler.target>${java.version}</maven.compiler.target>
116
		<scala.macros.version>2.1.0</scala.macros.version>
117 118
		<!-- Default scala versions, must be overwritten by build profiles, so we set something
		invalid here -->
119
		<scala.version>2.11.12</scala.version>
120
		<scala.binary.version>2.11</scala.binary.version>
121
		<chill.version>0.7.6</chill.version>
122
		<zookeeper.version>3.4.10</zookeeper.version>
123
		<!-- Only the curator2 TestingServer works with ZK 3.4 -->
124
		<curator.version>2.12.0</curator.version>
125
		<jackson.version>2.10.1</jackson.version>
126
		<prometheus.version>0.8.1</prometheus.version>
127
		<avro.version>1.8.2</avro.version>
128 129
		<javax.activation.api.version>1.2.0</javax.activation.api.version>
		<jaxb.api.version>2.3.1</jaxb.api.version>
130
		<junit.version>4.12</junit.version>
131
		<mockito.version>2.21.0</mockito.version>
132
		<powermock.version>2.0.4</powermock.version>
133
		<hamcrest.version>1.3</hamcrest.version>
134
		<py4j.version>0.10.8.1</py4j.version>
135
		<beam.version>2.19.0</beam.version>
136
		<protoc.version>3.7.1</protoc.version>
137
		<arrow.version>0.16.0</arrow.version>
138
		<japicmp.skip>false</japicmp.skip>
139
		<flink.convergence.phase>validate</flink.convergence.phase>
140 141 142 143 144 145
		<!--
			Keeping the MiniKDC version fixed instead of taking hadoop version dependency
			to support testing Kafka, ZK etc., modules that does not have Hadoop dependency
			Starting Hadoop 3, org.apache.kerby will be used instead of MiniKDC. We may have
			to revisit the impact at that time.
		-->
146
		<minikdc.version>3.2.0</minikdc.version>
147
		<generated.docs.dir>./docs/_includes/generated</generated.docs.dir>
148
		<hive.version>2.3.4</hive.version>
149 150
		<hive.connector.orc.version>1.4.3</hive.connector.orc.version>
		<orc.version>1.5.6</orc.version>
151 152 153 154 155
		<!--
			Hive 2.3.4 relies on Hadoop 2.7.2 and later versions.
			For Hadoop 2.7, the minor Hadoop version supported for flink-shaded-hadoop-2-uber is 2.7.5
		-->
		<hivemetastore.hadoop.version>2.7.5</hivemetastore.hadoop.version>
156
		<japicmp.referenceVersion>1.10.0</japicmp.referenceVersion>
157
		<japicmp.outputDir>tools/japicmp-output</japicmp.outputDir>
158 159
		<test.scheduler.type></test.scheduler.type>
		<test.groups></test.groups>
S
sewen 已提交
160
	</properties>
161

S
sewen 已提交
162
	<dependencies>
163 164 165 166

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>force-shading</artifactId>
G
Gary Yao 已提交
167
			<version>1.11-SNAPSHOT</version>
168 169
		</dependency>

170
		<!-- Root dependencies for all projects -->
171

172
		<!-- Logging API -->
173
		<dependency>
S
Stephan Ewen 已提交
174 175
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
176
		</dependency>
R
Robert Metzger 已提交
177

178
		<!-- 'javax.annotation' classes like '@Nullable' -->
179
		<dependency>
180 181
			<groupId>com.google.code.findbugs</groupId>
			<artifactId>jsr305</artifactId>
182 183
		</dependency>

184
		<!-- test dependencies -->
R
Robert Metzger 已提交
185

S
sewen 已提交
186 187 188 189 190 191
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
192

193 194
		<dependency>
			<groupId>org.mockito</groupId>
195
			<artifactId>mockito-core</artifactId>
196
			<version>${mockito.version}</version>
197
			<type>jar</type>
A
arvid 已提交
198
			<scope>test</scope>
199
		</dependency>
R
Robert Metzger 已提交
200

201 202 203
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
204
			<version>${powermock.version}</version>
205 206 207
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
208

209 210
		<dependency>
			<groupId>org.powermock</groupId>
211
			<artifactId>powermock-api-mockito2</artifactId>
212
			<version>${powermock.version}</version>
213 214
			<type>jar</type>
			<scope>test</scope>
215 216 217 218 219 220
			<exclusions>
				<exclusion>
					<groupId>org.mockito</groupId>
					<artifactId>mockito-core</artifactId>
				</exclusion>
			</exclusions>
221
		</dependency>
R
Robert Metzger 已提交
222

223 224 225
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
226
			<version>${hamcrest.version}</version>
227 228
			<type>jar</type>
			<scope>test</scope>
229
		</dependency>
230 231 232 233

		<!-- tests will have log4j as the default logging framework available -->

		<dependency>
234 235
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-slf4j-impl</artifactId>
236 237 238 239
			<scope>test</scope>
		</dependency>

		<dependency>
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-api</artifactId>
			<scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-core</artifactId>
			<scope>test</scope>
		</dependency>

		<dependency>
			<!-- API bridge between log4j 1 and 2 -->
			<groupId>org.apache.logging.log4j</groupId>
			<artifactId>log4j-1.2-api</artifactId>
255 256 257
			<scope>test</scope>
		</dependency>

258
	</dependencies>
259

S
Stephan Ewen 已提交
260
	<!-- this section defines the module versions that are used if nothing else is specified. -->
261

S
Stephan Ewen 已提交
262
	<dependencyManagement>
263 264 265
		<!-- WARN:
			DO NOT put 	guava,
						protobuf,
266 267 268
						asm,
						netty
					here. It will overwrite Hadoop's guava dependency (even though we handle it
269
			separatly in the flink-shaded-hadoop-2 dependency).
270
		-->
S
Stephan Ewen 已提交
271
		<dependencies>
272

273 274
			<dependency>
				<groupId>org.apache.flink</groupId>
275 276
				<artifactId>flink-shaded-asm-7</artifactId>
				<version>7.1-${flink.shaded.version}</version>
277 278
			</dependency>

279 280 281
			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-guava</artifactId>
282
				<version>18.0-${flink.shaded.version}</version>
283 284
			</dependency>

285 286 287
			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-jackson</artifactId>
288
				<version>${jackson.version}-${flink.shaded.version}</version>
289 290 291 292 293
			</dependency>

			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-jackson-module-jsonSchema</artifactId>
294
				<version>${jackson.version}-${flink.shaded.version}</version>
295 296 297 298 299
			</dependency>

			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-netty</artifactId>
300
				<version>4.1.39.Final-${flink.shaded.version}</version>
301 302
			</dependency>

303 304 305 306 307 308 309
			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-netty-tcnative-dynamic</artifactId>
				<version>2.0.25.Final-${flink.shaded.version}</version>
				<scope>test</scope>
			</dependency>

310 311 312 313
			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-hadoop-2</artifactId>
				<version>${hadoop.version}-${flink.shaded.version}</version>
314 315 316 317 318 319 320 321 322 323
				<exclusions>
					<exclusion>
						<groupId>log4j</groupId>
						<artifactId>log4j</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.slf4j</groupId>
						<artifactId>slf4j-log4j12</artifactId>
					</exclusion>
				</exclusions>
324 325 326 327 328 329
			</dependency>

			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-hadoop-2-uber</artifactId>
				<version>${hadoop.version}-${flink.shaded.version}</version>
330 331 332 333 334 335 336 337 338 339
				<exclusions>
					<exclusion>
						<groupId>log4j</groupId>
						<artifactId>log4j</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.slf4j</groupId>
						<artifactId>slf4j-log4j12</artifactId>
					</exclusion>
				</exclusions>
340 341
			</dependency>

342 343 344 345 346 347
			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-shaded-zookeeper-3</artifactId>
				<version>${zookeeper.version}-${flink.shaded.version}</version>
			</dependency>

348 349 350 351 352 353
			<!-- This manages the 'javax.annotation' annotations (JSR305) -->
			<dependency>
				<groupId>com.google.code.findbugs</groupId>
				<artifactId>jsr305</artifactId>
				<version>1.3.9</version>
			</dependency>
354 355 356 357

			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
358
				<version>${slf4j.version}</version>
359 360 361
			</dependency>

			<dependency>
362 363 364
				<groupId>org.apache.logging.log4j</groupId>
				<artifactId>log4j-slf4j-impl</artifactId>
				<version>${log4j.version}</version>
365 366 367
			</dependency>

			<dependency>
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382
				<groupId>org.apache.logging.log4j</groupId>
				<artifactId>log4j-api</artifactId>
				<version>${log4j.version}</version>
			</dependency>

			<dependency>
				<groupId>org.apache.logging.log4j</groupId>
				<artifactId>log4j-core</artifactId>
				<version>${log4j.version}</version>
			</dependency>

			<dependency>
				<!-- API bridge between log4j 1 and 2 -->
				<groupId>org.apache.logging.log4j</groupId>
				<artifactId>log4j-1.2-api</artifactId>
383
				<version>${log4j.version}</version>
384 385 386 387 388 389 390 391
			</dependency>

			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-lang3</artifactId>
				<version>3.3.2</version>
			</dependency>

392 393 394
			<dependency>
				<groupId>org.xerial.snappy</groupId>
				<artifactId>snappy-java</artifactId>
395
				<version>1.1.4</version>
396 397
			</dependency>

398 399 400 401 402 403
			<dependency>
				<groupId>com.github.oshi</groupId>
				<artifactId>oshi-core</artifactId>
				<version>3.4.0</version>
			</dependency>

404
			<!-- Make sure we use a consistent avro version between Flink and Hadoop -->
405
			<dependency>
406 407
				<groupId>org.apache.avro</groupId>
				<artifactId>avro</artifactId>
408
				<version>${avro.version}</version>
409 410
			</dependency>

411 412 413 414 415 416 417
			<!-- For dependency convergence -->
			<dependency>
				<groupId>org.hamcrest</groupId>
				<artifactId>hamcrest-core</artifactId>
				<version>${hamcrest.version}</version>
			</dependency>

418 419 420 421 422 423 424 425 426 427 428 429 430 431
			<dependency>
				<!-- mockito/powermock mismatch -->
				<groupId>net.bytebuddy</groupId>
				<artifactId>byte-buddy</artifactId>
				<version>1.8.15</version>
			</dependency>

			<dependency>
				<!-- mockito/powermock mismatch -->
				<groupId>net.bytebuddy</groupId>
				<artifactId>byte-buddy-agent</artifactId>
				<version>1.8.15</version>
			</dependency>

432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452
			<!-- For dependency convergence -->
			<dependency>
				<groupId>org.objenesis</groupId>
				<artifactId>objenesis</artifactId>
				<version>2.1</version>
			</dependency>

			<!-- For dependency convergence -->
			<dependency>
				<groupId>com.typesafe</groupId>
				<artifactId>config</artifactId>
				<version>1.3.0</version>
			</dependency>

			<!-- For dependency convergence -->
			<dependency>
				<groupId>commons-logging</groupId>
				<artifactId>commons-logging</artifactId>
				<version>1.1.3</version>
			</dependency>

453
			<dependency>
454 455 456 457
				<groupId>com.fasterxml.jackson</groupId>
				<artifactId>jackson-bom</artifactId>
				<type>pom</type>
				<scope>import</scope>
458 459 460
				<version>${jackson.version}</version>
			</dependency>

461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
			<dependency>
				<!-- re-branded javax.activation:javax.activation-api that is provided by flink-dist
				 	(the package names are identical!) -->
				<groupId>jakarta.activation</groupId>
				<artifactId>jakarta.activation-api</artifactId>
				<version>1.2.1</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<!-- re-branded javax.xml.bind:jaxb-api that is provided by flink-dist
					(the package names are identical!) -->
				<groupId>jakarta.xml.bind</groupId>
				<artifactId>jakarta.xml.bind-api</artifactId>
				<version>2.3.2</version>
				<scope>provided</scope>
			</dependency>

479 480 481 482 483 484 485 486 487 488 489 490 491 492
			<!-- For dependency convergence -->
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${junit.version}</version>
			</dependency>

			<!-- For dependency convergence -->
			<dependency>
				<groupId>org.tukaani</groupId>
				<artifactId>xz</artifactId>
				<version>1.5</version>
			</dependency>

493 494 495 496
			<!-- Make sure we use a consistent commons-cli version throughout the project -->
			<dependency>
				<groupId>commons-cli</groupId>
				<artifactId>commons-cli</artifactId>
497
				<version>1.3.1</version>
498
			</dependency>
499 500 501 502 503 504

			<dependency>
				<groupId>commons-io</groupId>
				<artifactId>commons-io</artifactId>
				<version>2.4</version>
			</dependency>
505

506
			<!-- commons collections needs to be pinned to this critical security fix version -->
507 508 509 510 511 512
			<dependency>
				<groupId>commons-collections</groupId>
				<artifactId>commons-collections</artifactId>
				<version>3.2.2</version>
			</dependency>

513 514 515 516 517 518 519 520 521 522 523 524
			<!--We have to bump the commons-configuration to version 1.7 because Hadoop uses per
			default 1.6. This version has the problem that it depends on commons-beanutils-core and
			commons-digester. Commons-digester depends on commons-beanutils. Both dependencies are
			contains classes of commons-collections. Since the dependency reduced pom does not
			exclude commons-beanutils from commons-configuration, sbt would pull it in again. The
			solution is setting the version of commons-configuration to 1.7 which also depends on
			common-beanutils. Consequently, the dependency reduced pom will also contain an
			exclusion for commons-beanutils for commons-configuration. -->
			<dependency>
				<groupId>commons-configuration</groupId>
				<artifactId>commons-configuration</artifactId>
				<version>1.7</version>
525
			</dependency>
526

527 528 529 530 531 532
			<dependency>
				<groupId>commons-codec</groupId>
				<artifactId>commons-codec</artifactId>
				<version>1.10</version>
			</dependency>

533 534 535 536 537 538
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-math3</artifactId>
				<version>3.5</version>
			</dependency>

539 540 541
			<dependency>
				<groupId>org.apache.commons</groupId>
				<artifactId>commons-compress</artifactId>
542
				<version>1.20</version>
543 544
			</dependency>

545
			<!-- Managed dependency required for HBase in flink-hbase -->
S
Stephan Ewen 已提交
546 547 548
			<dependency>
				<groupId>org.javassist</groupId>
				<artifactId>javassist</artifactId>
549
				<version>3.24.0-GA</version>
S
Stephan Ewen 已提交
550
			</dependency>
551 552 553 554 555 556 557 558

			<!-- joda time is pulled in different versions by different transitive dependencies-->
			<dependency>
				<groupId>joda-time</groupId>
				<artifactId>joda-time</artifactId>
				<version>2.5</version>
			</dependency>

559 560 561 562 563
			<dependency>
				<groupId>org.joda</groupId>
				<artifactId>joda-convert</artifactId>
				<version>1.7</version>
			</dependency>
564

S
Stephan Ewen 已提交
565 566 567 568 569 570
			<!-- kryo used in different versions by Flink an chill -->
			<dependency>
				<groupId>com.esotericsoftware.kryo</groupId>
				<artifactId>kryo</artifactId>
				<version>2.24.0</version>
			</dependency>
571

572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589
			<dependency>
				<groupId>org.scala-lang</groupId>
				<artifactId>scala-library</artifactId>
				<version>${scala.version}</version>
			</dependency>

			<dependency>
				<groupId>org.scala-lang</groupId>
				<artifactId>scala-reflect</artifactId>
				<version>${scala.version}</version>
			</dependency>

			<dependency>
				<groupId>org.scala-lang</groupId>
				<artifactId>scala-compiler</artifactId>
				<version>${scala.version}</version>
			</dependency>

590 591 592
			<dependency>
				<groupId>org.clapper</groupId>
				<artifactId>grizzled-slf4j_${scala.binary.version}</artifactId>
593
				<version>1.3.2</version>
594 595
			</dependency>

596
			<dependency>
597 598
				<groupId>com.typesafe.akka</groupId>
				<artifactId>akka-actor_${scala.binary.version}</artifactId>
599 600 601 602
				<version>${akka.version}</version>
			</dependency>

			<dependency>
603 604
				<groupId>com.typesafe.akka</groupId>
				<artifactId>akka-remote_${scala.binary.version}</artifactId>
605
				<version>${akka.version}</version>
606 607 608
				<exclusions>
					<exclusion>
						<groupId>io.aeron</groupId>
609 610 611 612 613
						<artifactId>aeron-driver</artifactId>
					</exclusion>
					<exclusion>
						<groupId>io.aeron</groupId>
						<artifactId>aeron-client</artifactId>
614 615
					</exclusion>
				</exclusions>
616 617
			</dependency>

618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633
			<!-- Transitive dependency of akka-remote that we explicitly define to keep it
                visible after the shading (without relocation!) of akka-remote -->
			<dependency>
				<groupId>com.typesafe.akka</groupId>
				<artifactId>akka-stream_${scala.binary.version}</artifactId>
				<version>${akka.version}</version>
			</dependency>

			<!-- Transitive dependency of akka-remote that we explicitly define to keep it
                visible after the shading (without relocation!) of akka-remote -->
			<dependency>
				<groupId>com.typesafe.akka</groupId>
				<artifactId>akka-protobuf_${scala.binary.version}</artifactId>
				<version>${akka.version}</version>
			</dependency>

634
			<dependency>
635 636
				<groupId>com.typesafe.akka</groupId>
				<artifactId>akka-slf4j_${scala.binary.version}</artifactId>
637 638 639
				<version>${akka.version}</version>
			</dependency>

640 641 642 643 644 645
			<dependency>
				<groupId>org.scala-lang.modules</groupId>
				<artifactId>scala-parser-combinators_${scala.binary.version}</artifactId>
				<version>1.1.1</version>
			</dependency>

646
			<dependency>
647 648
				<groupId>com.typesafe.akka</groupId>
				<artifactId>akka-testkit_${scala.binary.version}</artifactId>
649 650 651 652 653 654
				<version>${akka.version}</version>
				<scope>test</scope>
			</dependency>

			<dependency>
				<groupId>org.scalatest</groupId>
655
				<artifactId>scalatest_${scala.binary.version}</artifactId>
656
				<version>3.0.0</version>
657 658 659 660 661
				<scope>test</scope>
			</dependency>

			<dependency>
				<groupId>com.github.scopt</groupId>
662
				<artifactId>scopt_${scala.binary.version}</artifactId>
663
				<version>3.5.0</version>
664 665 666 667 668 669 670
				<exclusions>
					<exclusion>
						<groupId>org.scala-lang</groupId>
						<artifactId>scala-library</artifactId>
					</exclusion>
				</exclusions>
			</dependency>
671

672 673 674 675
			<dependency>
				<groupId>org.apache.zookeeper</groupId>
				<artifactId>zookeeper</artifactId>
				<version>${zookeeper.version}</version>
676 677 678 679 680 681 682 683 684
				<exclusions>
					<exclusion>
						<groupId>log4j</groupId>
						<artifactId>log4j</artifactId>
					</exclusion>
					<exclusion>
						<groupId>org.slf4j</groupId>
						<artifactId>slf4j-log4j12</artifactId>
					</exclusion>
J
Jie Shen 已提交
685
					<!-- Netty is only needed for ZK servers, not clients -->
686 687 688 689
					<exclusion>
						<groupId>io.netty</groupId>
						<artifactId>netty</artifactId>
					</exclusion>
690 691 692 693 694
					<!-- jline is optional for ZK console shell -->
					<exclusion>
						<groupId>jline</groupId>
						<artifactId>jline</artifactId>
					</exclusion>
695
				</exclusions>
696
			</dependency>
697

698 699 700 701 702 703 704 705 706
			<dependency>
				<!-- For dependency convergence
					On Java 8- this dependency is bundled with the JDK
					On Java 11+ this dependency is bundled in flink-dist -->
				<groupId>javax.xml.bind</groupId>
				<artifactId>jaxb-api</artifactId>
				<version>${jaxb.api.version}</version>
			</dependency>

707 708 709 710 711 712 713 714 715
			<dependency>
				<!-- For dependency convergence
					On Java 8- this dependency is bundled with the JDK
					On Java 11+ this dependency is bundled in flink-dist -->
				<groupId>javax.activation</groupId>
				<artifactId>javax.activation-api</artifactId>
				<version>${javax.activation.api.version}</version>
			</dependency>

716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731
			<!-- We have to define the versions for httpcore and httpclient here such that a consistent
			 version is used by the shaded hadoop jars and the flink-yarn-test project because of MNG-5899.

			 See FLINK-6836 for more details -->
			<dependency>
				<groupId>org.apache.httpcomponents</groupId>
				<artifactId>httpcore</artifactId>
				<version>4.4.6</version>
			</dependency>

			<dependency>
				<groupId>org.apache.httpcomponents</groupId>
				<artifactId>httpclient</artifactId>
				<version>4.5.3</version>
			</dependency>

732 733 734 735 736 737
			<dependency>
				<groupId>org.reflections</groupId>
				<artifactId>reflections</artifactId>
				<version>0.9.10</version>
				<scope>test</scope>
			</dependency>
738 739 740 741 742 743 744

			<dependency>
				<groupId>org.apache.flink</groupId>
				<artifactId>flink-test-utils-junit</artifactId>
				<version>${project.version}</version>
				<scope>test</scope>
			</dependency>
745 746 747 748 749 750 751 752

			<dependency>
				<!-- log4j2 has an optional dependency on disruptor which may affect other dependencies (like hive)
					pin the version here to make this behavior explicit -->
				<groupId>com.lmax</groupId>
				<artifactId>disruptor</artifactId>
				<version>3.4.2</version>
			</dependency>
S
Stephan Ewen 已提交
753 754
		</dependencies>
	</dependencyManagement>
755

756
	<profiles>
757
		<profile>
758
			<id>legacy-scheduler</id>
759
			<properties>
760 761
				<test.scheduler.type>legacy</test.scheduler.type>
				<test.groups>org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler</test.groups>
762 763 764
			</properties>
			<activation>
				<property>
765
					<name>legacy-scheduler</name>
766 767 768
				</property>
			</activation>
		</profile>
769

770 771 772 773 774 775 776 777 778 779 780
		<profile>
			<id>scala-2.11</id>
			<properties>
				<scala.version>2.11.12</scala.version>
				<scala.binary.version>2.11</scala.binary.version>
			</properties>
			<activation>
				<property>
					<name>!scala-2.12</name>
				</property>
			</activation>
781 782 783 784 785
			<!-- Scala Shell doesn't currently work with Scala 2.12 so only include
			when building for Scala 2.11. -->
			<modules>
				<module>flink-scala-shell</module>
			</modules>
786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829
			<build>
				<plugins>
					<!-- make sure we don't have any _2.10 or _2.12 dependencies when building
					for Scala 2.11 -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-enforcer-plugin</artifactId>
						<executions>
							<execution>
								<id>enforce-versions</id>
								<goals>
									<goal>enforce</goal>
								</goals>
								<configuration>
									<rules>
										<bannedDependencies>
											<excludes combine.children="append">
												<exclude>*:*_2.12</exclude>
												<exclude>*:*_2.10</exclude>
											</excludes>
										</bannedDependencies>
									</rules>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>


		<profile>
			<id>scala-2.12</id>
			<properties>
				<scala.version>2.12.7</scala.version>
				<scala.binary.version>2.12</scala.binary.version>
			</properties>
			<activation>
				<property>
					<name>scala-2.12</name>
				</property>
			</activation>
			<build>
				<plugins>
830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852
					<!-- don't run tests that don't work for Scala 2.12, because not all of the
					required test dependencies are available for Scala 2.12. The Kafka 0.9 connector
					still works with Scala 2.12 because it only needs the scala-version-independent
					kafka-clients dependency at runtime. -->
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>build-helper-maven-plugin</artifactId>
						<executions>
							<execution>
								<id>regex-property</id>
								<goals>
									<goal>regex-property</goal>
								</goals>
								<configuration>
									<name>maven.test.skip</name>
									<value>${project.artifactId}</value>
									<regex>(flink-scala-shell.*)</regex>
									<replacement>true</replacement>
									<failIfNoMatch>false</failIfNoMatch>
								</configuration>
							</execution>
						</executions>
					</plugin>
853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880
					<!-- make sure we don't have any _2.10 or _2.11 dependencies when building
					for Scala 2.12 -->
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-enforcer-plugin</artifactId>
						<executions>
							<execution>
								<id>enforce-versions</id>
								<goals>
									<goal>enforce</goal>
								</goals>
								<configuration>
									<rules>
										<bannedDependencies>
											<excludes combine.children="append">
												<exclude>*:*_2.11</exclude>
												<exclude>*:*_2.10</exclude>
											</excludes>
										</bannedDependencies>
									</rules>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

881 882 883 884 885 886 887 888 889 890 891 892 893 894
		<profile>
			<id>java11</id>
			<activation>
				<jdk>11</jdk>
			</activation>

			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.codehaus.mojo</groupId>
							<artifactId>build-helper-maven-plugin</artifactId>
							<version>1.7</version>
						</plugin>
895 896 897 898 899
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-shade-plugin</artifactId>
							<version>3.2.1</version>
						</plugin>
900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925
						<plugin>
							<groupId>com.github.siom79.japicmp</groupId>
							<artifactId>japicmp-maven-plugin</artifactId>
							<dependencies>
								<dependency>
									<groupId>javax.xml.bind</groupId>
									<artifactId>jaxb-api</artifactId>
									<version>2.3.0</version>
								</dependency>
								<dependency>
									<groupId>com.sun.xml.bind</groupId>
									<artifactId>jaxb-impl</artifactId>
									<version>2.3.0</version>
								</dependency>
								<dependency>
									<groupId>com.sun.xml.bind</groupId>
									<artifactId>jaxb-core</artifactId>
									<version>2.3.0</version>
								</dependency>
								<dependency>
									<groupId>javax.activation</groupId>
									<artifactId>activation</artifactId>
									<version>1.1.1</version>
								</dependency>
							</dependencies>
						</plugin>
926 927 928 929 930 931 932
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-surefire-plugin</artifactId>
							<configuration>
								<excludedGroups>org.apache.flink.testutils.junit.FailsOnJava11</excludedGroups>
							</configuration>
						</plugin>
933 934 935 936 937 938 939 940 941
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-javadoc-plugin</artifactId>
							<configuration>
								<additionalJOptions>
									<additionalJOption>--add-exports=java.base/sun.net.util=ALL-UNNAMED</additionalJOption>
								</additionalJOptions>
							</configuration>
						</plugin>
942 943 944 945 946 947 948 949 950 951 952 953
					</plugins>
				</pluginManagement>

				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-compiler-plugin</artifactId>
						<configuration>
							<source>11</source>
							<target>11</target>
							<compilerArgs combine.children="append">
								<arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg>
954
								<arg>--add-exports=java.management/sun.management=ALL-UNNAMED</arg>
955
								<arg>--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg>
956 957 958 959 960
							</compilerArgs>
						</configuration>
					</plugin>
				</plugins>
			</build>
Z
zentol 已提交
961 962
		</profile>

963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019
		<profile>
			<id>fast</id>
			<activation>
				<property>
					<name>fast</name>
				</property>
			</activation>
			<build>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.apache.rat</groupId>
							<artifactId>apache-rat-plugin</artifactId>
							<configuration>
								<skip>true</skip>
							</configuration>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-checkstyle-plugin</artifactId>
							<configuration>
								<skip>true</skip>
							</configuration>
						</plugin>
						<plugin>
							<groupId>org.scalastyle</groupId>
							<artifactId>scalastyle-maven-plugin</artifactId>
							<configuration>
								<skip>true</skip>
							</configuration>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-enforcer-plugin</artifactId>
							<configuration>
								<skip>true</skip>
							</configuration>
						</plugin>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-javadoc-plugin</artifactId>
							<configuration>
								<skip>true</skip>
							</configuration>
						</plugin>
						<plugin>
							<groupId>com.github.siom79.japicmp</groupId>
							<artifactId>japicmp-maven-plugin</artifactId>
							<configuration>
								<skip>true</skip>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>

1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034
		<profile>
			<id>check-convergence</id>
			<activation>
				<property>
					<name>check-convergence</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-enforcer-plugin</artifactId>
						<executions>
							<execution>
								<id>dependency-convergence</id>
1035
								<phase>${flink.convergence.phase}</phase>
1036 1037 1038 1039 1040 1041 1042
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071
		<profile>
			<id>spotbugs</id>
			<activation>
				<property>
					<name>spotbugs</name>
				</property>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>com.github.hazendaz.spotbugs</groupId>
						<artifactId>spotbugs-maven-plugin</artifactId>
						<version>3.0.6</version>

						<executions>
							<execution>
								<id>findbugs-run</id>
								<phase>compile</phase>
								<goals>
									<goal>check</goal>
								</goals>
							</execution>
						</executions>

						<configuration>
							<xmlOutput>true</xmlOutput>
							<threshold>Low</threshold>
							<effort>default</effort>
							<findbugsXmlOutputDirectory>${project.build.directory}/spotbugs</findbugsXmlOutputDirectory>
1072
							<excludeFilterFile>${rootDir}/tools/maven/spotbugs-exclude.xml</excludeFilterFile>
1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095
							<failOnError>true</failOnError>
						</configuration>
					</plugin>

					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>xml-maven-plugin</artifactId>
						<version>1.0.1</version>
						<executions>
							<execution>
								<phase>verify</phase>
								<goals>
									<goal>transform</goal>
								</goals>
							</execution>
						</executions>
						<configuration>
							<transformationSets>
								<transformationSet>
									<dir>${project.build.directory}/spotbugs</dir>
									<outputDir>${project.build.directory}/spotbugs</outputDir>
									<!-- A list of available stylesheets can be found here: https://github.com/findbugsproject/findbugs/tree/master/findbugs/src/xsl -->
									<stylesheet>plain.xsl</stylesheet>
1096

1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117
									<fileMappers>
										<fileMapper
											implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
											<targetExtension>.html</targetExtension>
										</fileMapper>
									</fileMappers>
								</transformationSet>
							</transformationSets>
						</configuration>
						<dependencies>
							<dependency>
								<groupId>com.github.hazendaz.spotbugs</groupId>
								<artifactId>spotbugs-maven-plugin</artifactId>
								<version>3.0.6</version>
							</dependency>
						</dependencies>
					</plugin>
				</plugins>
			</build>
		</profile>

1118
		<profile>
1119 1120
            <!-- Kept for backwards compatiblity, the doc buildbot expects
                 this profile to exist.-->
1121 1122
			<id>aggregate-scaladoc</id>
		</profile>
1123

1124 1125 1126 1127

		<profile>
			<!-- used for SNAPSHOT and regular releases -->
			<id>docs-and-source</id>
1128 1129 1130 1131 1132
			<activation>
				<property>
					<name>docs-and-source</name>
				</property>
			</activation>
1133 1134
			<build>
				<plugins>
1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-source-plugin</artifactId>
						<version>2.2.1</version><!--$NO-MVN-MAN-VER$-->
						<executions>
							<execution>
								<id>attach-sources</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<configuration>
							<quiet>true</quiet>
						</configuration>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
1165 1166 1167 1168 1169 1170 1171 1172 1173
			<dependencies>
				<dependency>
					<!--
					This is necessary for building the java docs using Java 8. Otherwise the javadoc
					plugin will fail with "javadoc: error -
						com.sun.tools.doclets.internal.toolkit.util.DocletAbortException:
							com.sun.tools.javac.code.Symbol$CompletionFailure:
								class file for akka.testkit.TestKit not found"
					-->
1174 1175
					<groupId>com.typesafe.akka</groupId>
					<artifactId>akka-testkit_${scala.binary.version}</artifactId>
1176 1177 1178 1179
					<version>${akka.version}</version>
					<scope>provided</scope>
				</dependency>
			</dependencies>
1180
		</profile>
1181

R
Robert Metzger 已提交
1182 1183
		<profile>
			<id>release</id>
1184 1185 1186 1187 1188
			<activation>
				<property>
					<name>release</name>
				</property>
			</activation>
1189
			<properties>
1190
				<java.version>1.8</java.version>
1191
			</properties>
1192
			<build>
R
Robert Metzger 已提交
1193
				<plugins>
R
Robert Metzger 已提交
1194
					<plugin>
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-gpg-plugin</artifactId>
						<version>1.4</version>
						<executions>
							<execution>
								<id>sign-artifacts</id>
								<phase>verify</phase>
								<goals>
									<goal>sign</goal>
								</goals>
							</execution>
						</executions>
R
Robert Metzger 已提交
1207
					</plugin>
1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-enforcer-plugin</artifactId>
						<executions>
							<execution>
								<id>enforce-maven</id>
								<goals>
									<goal>enforce</goal>
								</goals>
								<configuration>
									<rules>
										<requireMavenVersion>
											<!-- maven version must be lower than 3.3. See FLINK-3158 -->
											<version>(,3.3)</version>
										</requireMavenVersion>
1223 1224 1225
										<requireJavaVersion>
											<version>1.8.0</version>
										</requireJavaVersion>
1226
									</rules>
1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-javadoc-plugin</artifactId>
						<executions>
							<execution>
								<id>attach-javadocs</id>
								<goals>
									<goal>jar</goal>
								</goals>
1240 1241 1242
							</execution>
						</executions>
					</plugin>
R
Robert Metzger 已提交
1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259
				</plugins>
				<pluginManagement>
					<plugins>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-release-plugin</artifactId>
							<version>2.1</version>
							<configuration>
								<mavenExecutorId>forked-path</mavenExecutorId>
								<useReleaseProfile>false</useReleaseProfile>
								<arguments>${arguments} -Psonatype-oss-release</arguments>
							</configuration>
						</plugin>
					</plugins>
				</pluginManagement>
			</build>
		</profile>
1260 1261
	</profiles>

S
sewen 已提交
1262 1263
	<build>
		<plugins>
1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278
			<!--
			We need to include this here because some of our modules have transitive dependencies
			on jdbm1, which is of type "bundle". This only works if you include the
			maven-bundle-plugin (see https://issues.apache.org/jira/browse/DIRSHARED-134). We need
			the plugin in the root pom because Javadoc aggregation runs only in the root pom and
			not the specific poms. Not having this here was the cause for FLINK-7702.
			-->
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<version>3.0.1</version>
				<inherited>true</inherited>
				<extensions>true</extensions>
			</plugin>

1279 1280 1281
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
1282
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
1283 1284 1285 1286 1287 1288 1289 1290 1291
				<configuration>
					<archive>
						<manifest>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
1292

R
Robert Metzger 已提交
1293 1294 1295
			<plugin>
				<groupId>org.apache.rat</groupId>
				<artifactId>apache-rat-plugin</artifactId>
1296
				<version>0.12</version><!--$NO-MVN-MAN-VER$-->
1297
				<inherited>false</inherited>
R
Robert Metzger 已提交
1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308
				<executions>
					<execution>
						<phase>verify</phase>
						<goals>
							<goal>check</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<excludeSubProjects>false</excludeSubProjects>
					<numUnapprovedLicenses>0</numUnapprovedLicenses>
1309
					<licenses>
1310
						<!-- Enforce this license:
1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325
							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
							  http://www.apache.org/licenses/LICENSE-2.0
							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.
						-->
1326
						<license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
							<licenseFamilyCategory>AL2 </licenseFamilyCategory>
							<licenseFamilyName>Apache License 2.0</licenseFamilyName>
							<notes />
							<patterns>
								<pattern>Licensed to the Apache Software Foundation (ASF) under one</pattern>
							</patterns>
						</license>
					</licenses>
					<licenseFamilies>
						<licenseFamily implementation="org.apache.rat.license.SimpleLicenseFamily">
							<familyName>Apache License 2.0</familyName>
						</licenseFamily>
					</licenseFamilies>
R
Robert Metzger 已提交
1340 1341
					<excludes>
						<!-- Additional files like .gitignore etc.-->
1342
						<exclude>**/.*/**</exclude>
R
Robert Metzger 已提交
1343
						<exclude>**/*.prefs</exclude>
1344
						<exclude>**/*.log</exclude>
1345
						<!-- External web libraries. -->
1346
						<exclude>docs/**/jquery*</exclude>
1347
						<exclude>docs/**/bootstrap*</exclude>
1348
						<exclude>docs/Gemfile.lock</exclude>
1349
						<exclude>docs/ruby2/Gemfile.lock</exclude>
1350
						<exclude>docs/img/*.svg</exclude>
1351
						<exclude>**/docs/page/font-awesome/**</exclude>
1352 1353 1354
						<exclude>**/resources/**/font-awesome/**</exclude>
						<exclude>**/resources/**/jquery*</exclude>
						<exclude>**/resources/**/bootstrap*</exclude>
1355
						<exclude>flink-clients/src/main/resources/web-docs/js/*d3.js</exclude>
1356

1357 1358
						<!-- the licenses that are re-bundled -->
						<exclude>**/packaged_licenses/LICENSE.*.txt</exclude>
1359
						<exclude>**/licenses/LICENSE*</exclude>
1360
						<exclude>**/licenses-binary/LICENSE*</exclude>
1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383

						<!-- web dashboard config JSON files -->
						<exclude>flink-runtime-web/web-dashboard/package.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/package-lock.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/angular.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/proxy.conf.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/tsconfig.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/tslint.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/src/browserslist</exclude>
						<exclude>flink-runtime-web/web-dashboard/src/tsconfig.app.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/src/tsconfig.spec.json</exclude>
						<exclude>flink-runtime-web/web-dashboard/src/tslint.json</exclude>

						<!-- web dashboard non-binary assets -->
						<exclude>flink-runtime-web/web-dashboard/src/assets/**</exclude>

						<!-- generated contents -->
						<exclude>flink-runtime-web/web-dashboard/web/**</exclude>

						<!-- downloaded and generated web libraries. -->
						<exclude>flink-runtime-web/web-dashboard/node_modules/**</exclude>
						<exclude>flink-runtime-web/web-dashboard/node/**</exclude>

1384
						<!-- Test Data. -->
1385
						<exclude>**/src/test/resources/*-data</exclude>
1386
						<exclude>flink-tests/src/test/resources/testdata/terainput.txt</exclude>
1387
                        <exclude>flink-formats/flink-avro/src/test/resources/flink_11-kryo_registrations</exclude>
1388
						<exclude>flink-runtime/src/test/resources/flink_11-kryo_registrations</exclude>
1389 1390
						<exclude>flink-core/src/test/resources/kryo-serializer-config-snapshot-v1</exclude>
						<exclude>flink-formats/flink-avro/src/test/resources/avro/*.avsc</exclude>
1391
						<exclude>out/test/flink-avro/avro/user.avsc</exclude>
1392
						<exclude>flink-table/flink-table-planner/src/test/scala/resources/*.out</exclude>
1393 1394
						<exclude>flink-table/flink-table-planner-blink/src/test/resources/digest/*.out</exclude>
						<exclude>flink-table/flink-table-planner-blink/src/test/resources/explain/*.out</exclude>
1395
						<exclude>flink-yarn/src/test/resources/krb5.keytab</exclude>
1396
						<exclude>flink-end-to-end-tests/test-scripts/test-data/**</exclude>
1397
						<exclude>flink-end-to-end-tests/test-scripts/docker-hadoop-secure-cluster/config/keystore.jks</exclude>
1398 1399
						<exclude>flink-connectors/flink-connector-kafka/src/test/resources/**</exclude>
						<exclude>flink-connectors/flink-connector-kafka-0.11/src/test/resources/**</exclude>
1400
						<exclude>flink-connectors/flink-connector-hive/src/test/resources/**</exclude>
1401 1402
						<exclude>flink-end-to-end-tests/flink-tpcds-test/tpcds-tool/answer_set/*</exclude>
						<exclude>flink-end-to-end-tests/flink-tpcds-test/tpcds-tool/query/*</exclude>
Z
zentol 已提交
1403 1404

						<!-- snapshots -->
1405
						<exclude>**/src/test/resources/*-snapshot</exclude>
1406
						<exclude>**/src/test/resources/*.snapshot</exclude>
1407
						<exclude>**/src/test/resources/*-savepoint</exclude>
Z
zentol 已提交
1408 1409
						<exclude>flink-core/src/test/resources/serialized-kryo-serializer-1.3</exclude>
						<exclude>flink-core/src/test/resources/type-without-avro-serialized-using-kryo</exclude>
1410
						<exclude>flink-formats/flink-avro/src/test/resources/flink-1.4-serializer-java-serialized</exclude>
Z
zentol 已提交
1411

1412 1413
						<exclude>flink-end-to-end-tests/flink-state-evolution-test/src/main/java/org/apache/flink/avro/generated/*</exclude>
						<exclude>flink-end-to-end-tests/flink-state-evolution-test/savepoints/*</exclude>
1414 1415
						<exclude>flink-formats/flink-avro/src/test/resources/testdata.avro</exclude>
						<exclude>flink-formats/flink-avro/src/test/java/org/apache/flink/formats/avro/generated/*.java</exclude>
1416 1417
						<exclude>flink-formats/flink-parquet/src/test/java/org/apache/flink/formats/parquet/generated/*.java</exclude>
						<exclude>flink-formats/flink-parquet/src/test/resources/avro/**</exclude>
1418 1419
						<!-- netty test file, still Apache License 2.0 but with a different header -->
						<exclude>flink-runtime/src/test/java/org/apache/flink/runtime/io/network/buffer/AbstractByteBufTest.java</exclude>
R
Robert Metzger 已提交
1420
						<!-- Configuration Files. -->
1421
						<exclude>**/flink-bin/conf/slaves</exclude>
1422
						<exclude>**/flink-bin/conf/masters</exclude>
R
Robert Metzger 已提交
1423
						<!-- Administrative files in the main trunk. -->
1424
						<exclude>**/README.md</exclude>
1425
						<exclude>.github/**</exclude>
1426
						<!-- Build files -->
R
Robert Metzger 已提交
1427
						<exclude>**/*.iml</exclude>
1428
						<exclude>flink-quickstart/**/testArtifact/goal.txt</exclude>
R
Robert Metzger 已提交
1429
						<!-- Generated content -->
1430
						<exclude>out/**</exclude>
R
Robert Metzger 已提交
1431
						<exclude>**/target/**</exclude>
1432
						<exclude>docs/content/**</exclude>
1433
						<exclude>**/scalastyle-output.xml</exclude>
1434
						<exclude>build-target/**</exclude>
1435
						<exclude>docs/_includes/generated/**</exclude>
1436
						<!-- Tools: watchdog -->
1437
						<exclude>tools/artifacts/**</exclude>
1438
						<exclude>tools/flink*/**</exclude>
1439 1440
						<!-- Tools: japicmp output -->
						<exclude>tools/japicmp-output/**</exclude>
1441 1442
						<!-- artifacts created during release process -->
						<exclude>tools/releasing/release/**</exclude>
1443 1444
						<!-- manually installed version on travis -->
						<exclude>apache-maven-3.2.5/**</exclude>
Z
zentol 已提交
1445 1446
						<!-- PyCharm -->
						<exclude>**/.idea/**</exclude>
1447 1448
						<!-- Generated code via Avro -->
						<exclude>flink-end-to-end-tests/flink-confluent-schema-registry/src/main/java/example/avro/**</exclude>
1449
						<exclude>flink-end-to-end-tests/flink-datastream-allround-test/src/main/java/org/apache/flink/streaming/tests/avro/**</exclude>
1450 1451 1452 1453
						<!-- Files generated by jepsen tests -->
						<exclude>flink-jepsen/store/**</exclude>
						<exclude>flink-jepsen/docker/id_rsa*</exclude>
						<exclude>flink-jepsen/docker/nodes</exclude>
1454

1455 1456 1457
						<!-- flink-python -->
						<exclude>flink-python/lib/**</exclude>
						<exclude>flink-python/dev/download/**</exclude>
1458
						<exclude>flink-python/docs/_build/**</exclude>
R
Robert Metzger 已提交
1459 1460 1461
					</excludes>
				</configuration>
			</plugin>
1462 1463 1464 1465
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
			</plugin>
S
sewen 已提交
1466 1467 1468 1469
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
			</plugin>
1470 1471

			<!--surefire for unit tests and integration tests-->
S
sewen 已提交
1472
			<plugin>
1473 1474
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
1475
				<version>2.22.1</version>
S
sewen 已提交
1476
				<configuration>
1477
					<groups>${test.groups}</groups>
A
Aljoscha Krettek 已提交
1478 1479
					<forkCount>${flink.forkCount}</forkCount>
					<reuseForks>${flink.reuseForks}</reuseForks>
1480
					<trimStackTrace>false</trimStackTrace>
A
Aljoscha Krettek 已提交
1481 1482
					<systemPropertyVariables>
						<forkNumber>0${surefire.forkNumber}</forkNumber>
1483
						<log4j.configuration>${log4j.configuration}</log4j.configuration>
1484
						<jobmanager.scheduler>${test.scheduler.type}</jobmanager.scheduler>
A
Aljoscha Krettek 已提交
1485
					</systemPropertyVariables>
1486
					<argLine>-Xms256m -Xmx2048m -Dmvn.forkNumber=${surefire.forkNumber} -XX:+UseG1GC</argLine>
S
sewen 已提交
1487
				</configuration>
1488
				<executions>
1489
					<!--execute all the unit tests-->
1490
					<execution>
1491
						<id>default-test</id>
1492 1493 1494 1495 1496
						<phase>test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
1497 1498 1499
							<includes>
								<include>**/*Test.*</include>
							</includes>
1500 1501
						</configuration>
					</execution>
1502
					<!--execute all the integration tests-->
1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516
					<execution>
						<id>integration-tests</id>
						<phase>integration-test</phase>
						<goals>
							<goal>test</goal>
						</goals>
						<configuration>
							<includes>
								<include>**/*ITCase.*</include>
							</includes>
							<reuseForks>false</reuseForks>
						</configuration>
					</execution>
				</executions>
S
sewen 已提交
1517 1518 1519 1520
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
1521
				<version>2.8</version>
S
sewen 已提交
1522 1523 1524 1525
				<configuration>
					<classpathContainers>
						<classpathContainer>
							org.eclipse.jdt.launching.JRE_CONTAINER
1526
						</classpathContainer>
S
sewen 已提交
1527
					</classpathContainers>
R
Robert Metzger 已提交
1528 1529
					<downloadSources>true</downloadSources>
					<downloadJavadocs>true</downloadJavadocs>
S
sewen 已提交
1530 1531
				</configuration>
			</plugin>
1532

1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
				<executions>
					<execution>
						<id>enforce-maven</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireMavenVersion>
1545 1546
									<!-- enforce at least mvn version 3.1.1 (see FLINK-12447) -->
									<version>[3.1.1,)</version>
1547
								</requireMavenVersion>
1548 1549 1550
								<requireJavaVersion>
									<version>${java.version}</version>
								</requireJavaVersion>
1551 1552 1553
							</rules>
						</configuration>
					</execution>
1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568
					<execution>
						<id>ban-unsafe-jackson</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<bannedDependencies>
									<excludes>
										<exclude>com.fasterxml.jackson*:*:(,2.10.0]</exclude>
									</excludes>
								</bannedDependencies>
							</rules>
						</configuration>
					</execution>
1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584
					<execution>
						<id>forbid-log4j-1</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<bannedDependencies>
									<excludes>
										<exclude>log4j:log4j</exclude>
										<exclude>org.slf4j:slf4j-log4j12</exclude>
									</excludes>
								</bannedDependencies>
							</rules>
						</configuration>
					</execution>
1585 1586
					<execution>
						<id>dependency-convergence</id>
1587 1588
						<!-- disabled by default as it interacts badly with shade-plugin -->
						<phase>none</phase>
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<dependencyConvergence/>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<executions>
					<execution>
						<id>shade-flink</id>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration>
							<shadeTestJar>true</shadeTestJar>
							<shadedArtifactAttached>false</shadedArtifactAttached>
							<createDependencyReducedPom>true</createDependencyReducedPom>
							<dependencyReducedPomLocation>${project.basedir}/target/dependency-reduced-pom.xml</dependencyReducedPomLocation>
1616 1617
							<!-- Filters MUST be appended; merging filters does not work properly, see MSHADE-305 -->
							<filters combine.children="append">
1618
								<!-- Globally exclude log4j.properties from our JAR files. -->
1619
								<filter>
1620
									<artifact>*</artifact>
1621 1622
									<excludes>
										<exclude>log4j.properties</exclude>
1623
										<exclude>log4j2.properties</exclude>
1624
										<exclude>log4j-test.properties</exclude>
1625
										<exclude>log4j2-test.properties</exclude>
1626 1627
									</excludes>
								</filter>
1628 1629 1630 1631 1632 1633 1634
								<!-- drop entries into META-INF and NOTICE files for the dummy artifact -->
								<filter>
									<artifact>org.apache.flink:force-shading</artifact>
									<excludes>
										<exclude>**</exclude>
									</excludes>
								</filter>
1635 1636 1637 1638 1639 1640 1641
								<!-- io.netty:netty brings its own LICENSE.txt which we don't need -->
								<filter>
									<artifact>io.netty:netty</artifact>
									<excludes>
										<exclude>META-INF/LICENSE.txt</exclude>
									</excludes>
								</filter>
1642
							</filters>
1643 1644
							<artifactSet>
								<includes>
1645 1646 1647 1648 1649 1650 1651
									<!-- Unfortunately, the next line is necessary for now to force the execution
									of the Shade plugin upon all sub modules. This will generate effective poms,
									i.e. poms which do not contain properties which are derived from this root pom.
									In particular, the Scala version properties are defined in the root pom and without
									shading, the root pom would have to be Scala suffixed and thereby all other modules.
									-->
									<include>org.apache.flink:force-shading</include>
1652 1653
								</includes>
							</artifactSet>
1654
							<transformers combine.children="append">
1655 1656 1657
								<!-- The service transformer is needed to merge META-INF/services files -->
								<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
								<!-- The ApacheNoticeResourceTransformer collects and aggregates NOTICE files -->
1658 1659
								<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
									<projectName>Apache Flink</projectName>
1660
									<encoding>UTF-8</encoding>
1661
								</transformer>
1662
							</transformers>
1663 1664 1665 1666
						</configuration>
					</execution>
				</executions>
			</plugin>
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685

			<!-- generate configuration docs -->
			<plugin>
				<groupId>org.commonjava.maven.plugins</groupId>
				<artifactId>directory-maven-plugin</artifactId>
				<version>0.1</version>
				<executions>
					<execution>
						<id>directories</id>
						<goals>
							<goal>highest-basedir</goal>
						</goals>
						<phase>initialize</phase>
						<configuration>
							<property>rootDir</property>
						</configuration>
					</execution>
				</executions>
			</plugin>
S
sewen 已提交
1686
		</plugins>
R
Robert Metzger 已提交
1687 1688 1689

		<pluginManagement>
			<plugins>
1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.8.0</version>
					<configuration>
						<source>${java.version}</source>
						<target>${java.version}</target>
						<!-- The semantics of this option are reversed, see MCOMPILER-209. -->
						<useIncrementalCompilation>false</useIncrementalCompilation>
						<compilerArgs>
							<!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 -->
							<arg>-Xpkginfo:always</arg>
						</compilerArgs>
					</configuration>
				</plugin>
1705

1706 1707 1708 1709 1710 1711 1712 1713
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-checkstyle-plugin</artifactId>
					<version>2.17</version>
					<dependencies>
						<dependency>
							<groupId>com.puppycrawl.tools</groupId>
							<artifactId>checkstyle</artifactId>
1714
							<!-- Note: match version with docs/flinkDev/ide_setup.md -->
1715
							<version>8.14</version>
1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734
						</dependency>
					</dependencies>
					<executions>
						<execution>
							<id>validate</id>
							<phase>validate</phase>
							<goals>
								<goal>check</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<suppressionsLocation>/tools/maven/suppressions.xml</suppressionsLocation>
						<includeTestSourceDirectory>true</includeTestSourceDirectory>
						<configLocation>/tools/maven/checkstyle.xml</configLocation>
						<logViolationsToConsole>true</logViolationsToConsole>
						<failOnViolation>true</failOnViolation>
					</configuration>
				</plugin>
1735

1736 1737 1738
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
1739
					<version>2.9.1</version><!--$NO-MVN-MAN-VER$-->
1740 1741 1742
					<configuration>
						<quiet>true</quiet>
						<detectOfflineLinks>false</detectOfflineLinks>
1743
						<additionalJOptions combine.children="append">
1744 1745
							<additionalJOption>-Xdoclint:none</additionalJOption>
						</additionalJOptions>
1746 1747 1748
					</configuration>
				</plugin>

1749 1750 1751
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-enforcer-plugin</artifactId>
1752
					<version>3.0.0-M1</version>
1753
				</plugin>
1754

1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-dependency-plugin</artifactId>
					<version>3.1.1</version>
					<dependencies>
						<dependency>
							<!-- Required for Java 11 support until 3.1.2 is released -->
							<groupId>org.apache.maven.shared</groupId>
							<artifactId>maven-dependency-analyzer</artifactId>
							<version>1.11.1</version>
						</dependency>
					</dependencies>
1767
					<configuration>
1768 1769 1770 1771 1772 1773 1774 1775 1776 1777
						<ignoredUsedUndeclaredDependencies combine.children="append">
							<!-- allow using transitive Flink dependencies for brevity -->
							<dependency>org.apache.flink:*</dependency>
							<!-- False positive since we use hamcrest-all -->
							<dependency>org.hamcrest:hamcrest-core</dependency>
							<!-- transitive powermock test dependencies; excluded for brevity -->
							<dependency>org.powermock:powermock-core</dependency>
							<dependency>org.powermock:powermock-reflect</dependency>
							<dependency>org.powermock:powermock-api-support</dependency>
						</ignoredUsedUndeclaredDependencies>
1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804
						<ignoredUnusedDeclaredDependencies combine.children="append">
							<!-- build dependency, required for shading; does not contain any classes -->
							<dependency>org.apache.flink:force-shading</dependency>
							<!-- compile dependencies; defined in root pom for brevity -->
							<dependency>com.google.code.findbugs:jsr305</dependency>
							<dependency>org.scala-lang:scala-compiler</dependency>
							<!-- logging dependencies; defined in root pom for brevity
									some modules may not use any logging, but that's not a problem
									implementations are loaded via reflection and are always detected as unused -->
							<dependency>org.slf4j:slf4j-api</dependency>
							<!-- log4j1 -->
							<dependency>log4j:log4j</dependency>
							<dependency>org.slf4j:slf4j-log4j12</dependency>
							<!-- log4j2 -->
							<dependency>org.apache.logging.log4j:log4j-slf4j-impl</dependency>
							<dependency>org.apache.logging.log4j:log4j-api</dependency>
							<dependency>org.apache.logging.log4j:log4j-core</dependency>
							<dependency>org.apache.logging.log4j:log4j-1.2-api</dependency>
							<!-- test dependencies; defined in root pom for brevity -->
							<dependency>org.apache.flink:flink-test-utils-junit</dependency>
							<dependency>junit:junit</dependency>
							<dependency>org.mockito:mockito-core</dependency>
							<dependency>org.powermock:powermock-api-mockito2</dependency>
							<dependency>org.powermock:powermock-module-junit4</dependency>
							<dependency>org.hamcrest:hamcrest-all</dependency>
						</ignoredUnusedDeclaredDependencies>
					</configuration>
1805 1806
				</plugin>

1807
				<!-- Pin the version of the maven shade plugin -->
1808 1809 1810
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-shade-plugin</artifactId>
1811
					<version>3.1.1</version>
1812
				</plugin>
1813

1814 1815 1816
				<plugin>
					<groupId>pl.project13.maven</groupId>
					<artifactId>git-commit-id-plugin</artifactId>
1817
					<!-- Don't use 2.1.14 as it is incompatible with various maven versions -->
1818 1819 1820 1821 1822 1823 1824 1825 1826 1827
					<version>2.1.10</version>
					<configuration>
						<excludeProperties>
							<excludeProperty>git.build.*</excludeProperty>
							<excludeProperty>git.branch.*</excludeProperty>
							<excludeProperty>git.remote.*</excludeProperty>
						</excludeProperties>
					</configuration>
				</plugin>

1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839
				<plugin>
					<!-- Inherited from Apache parent, but not actually used. Disable to reduce noise. -->
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-site-plugin</artifactId>
					<executions>
						<execution>
							<id>attach-descriptor</id>
							<phase>none</phase>
						</execution>
					</executions>
				</plugin>

1840 1841 1842 1843
				<!-- configure scala style -->
				<plugin>
					<groupId>org.scalastyle</groupId>
					<artifactId>scalastyle-maven-plugin</artifactId>
1844
					<version>1.0.0</version>
1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859
					<executions>
						<execution>
							<goals>
								<goal>check</goal>
							</goals>
						</execution>
					</executions>
					<configuration>
						<verbose>false</verbose>
						<failOnViolation>true</failOnViolation>
						<includeTestSourceDirectory>true</includeTestSourceDirectory>
						<failOnWarning>false</failOnWarning>
						<sourceDirectory>${basedir}/src/main/scala</sourceDirectory>
						<testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory>
						<outputFile>${project.basedir}/target/scalastyle-output.xml</outputFile>
1860
						<inputEncoding>UTF-8</inputEncoding>
1861 1862 1863
						<outputEncoding>UTF-8</outputEncoding>
					</configuration>
				</plugin>
1864 1865 1866 1867 1868 1869

				<!-- set scala maven plugin version -->
				<plugin>
					<groupId>net.alchim31.maven</groupId>
					<artifactId>scala-maven-plugin</artifactId>
					<version>3.2.2</version>
1870 1871 1872
					<configuration>
						<args>
							<arg>-nobootcp</arg>
1873
							<arg>-target:jvm-${java.version}</arg>
1874
						</args>
1875 1876 1877
						<jvmArgs>
							<arg>-Xss2m</arg>
						</jvmArgs>
1878
					</configuration>
1879
				</plugin>
1880 1881 1882 1883 1884

				<!-- Configuration for the binary compatibility checker -->
				<plugin>
					<groupId>com.github.siom79.japicmp</groupId>
					<artifactId>japicmp-maven-plugin</artifactId>
1885
					<version>0.11.0</version>
1886 1887 1888 1889 1890
					<configuration>
						<oldVersion>
							<dependency>
								<groupId>org.apache.flink</groupId>
								<artifactId>${project.artifactId}</artifactId>
1891
								<version>${japicmp.referenceVersion}</version>
1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907
								<type>${project.packaging}</type>
							</dependency>
						</oldVersion>
						<newVersion>
							<file>
								<path>${project.build.directory}/${project.artifactId}-${project.version}.${project.packaging}</path>
							</file>
						</newVersion>
						<parameter>
							<onlyModified>true</onlyModified>
							<includes>
								<include>@org.apache.flink.annotation.Public</include>
							</includes>
							<excludes>
								<exclude>@org.apache.flink.annotation.PublicEvolving</exclude>
								<exclude>@org.apache.flink.annotation.Internal</exclude>
1908
								<exclude>org.apache.flink.streaming.api.datastream.DataStream#DataStream(org.apache.flink.streaming.api.environment.StreamExecutionEnvironment,org.apache.flink.streaming.api.transformations.StreamTransformation)</exclude>
1909
								<exclude>org.apache.flink.streaming.api.environment.LegacyLocalStreamEnvironment</exclude>
1910 1911
								<exclude>org.apache.flink.streaming.api.functions.sink.RichSinkFunction#invoke(java.lang.Object)</exclude>
								<exclude>org.apache.flink.streaming.api.functions.sink.SinkFunction</exclude>
1912 1913 1914 1915 1916 1917 1918 1919
								<exclude>org.apache.flink.api.java.hadoop.mapred.HadoopInputFormat</exclude>
								<exclude>org.apache.flink.api.java.hadoop.mapred.HadoopOutputFormat</exclude>
								<exclude>org.apache.flink.api.java.hadoop.mapreduce.HadoopInputFormat</exclude>
								<exclude>org.apache.flink.api.java.hadoop.mapreduce.HadoopOutputFormat</exclude>
								<exclude>org.apache.flink.api.scala.hadoop.mapred.HadoopInputFormat</exclude>
								<exclude>org.apache.flink.api.scala.hadoop.mapred.HadoopOutputFormat</exclude>
								<exclude>org.apache.flink.api.scala.hadoop.mapreduce.HadoopInputFormat</exclude>
								<exclude>org.apache.flink.api.scala.hadoop.mapreduce.HadoopOutputFormat</exclude>
1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931
							</excludes>
							<accessModifier>public</accessModifier>
							<breakBuildOnModifications>false</breakBuildOnModifications>
							<breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications>
							<breakBuildOnSourceIncompatibleModifications>true</breakBuildOnSourceIncompatibleModifications>
							<onlyBinaryIncompatible>false</onlyBinaryIncompatible>
							<includeSynthetic>true</includeSynthetic>
							<ignoreMissingClasses>false</ignoreMissingClasses>
							<skipPomModules>true</skipPomModules>
							<!-- Don't break build on newly added maven modules -->
							<ignoreNonResolvableArtifacts>true</ignoreNonResolvableArtifacts>
						</parameter>
1932
						<projectBuildDir>${rootDir}/${japicmp.outputDir}/${project.artifactId}</projectBuildDir>
1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950
						<dependencies>
							<dependency>
								<groupId>org.apache.flink</groupId>
								<artifactId>flink-annotations</artifactId>
								<version>${project.version}</version>
							</dependency>
						</dependencies>
					</configuration>
					<executions>
						<execution>
							<phase>verify</phase>
							<goals>
								<goal>cmp</goal>
							</goals>
						</execution>
					</executions>
				</plugin>

1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967
				<plugin>
					<!-- run via "mvn org.owasp:dependency-check-maven:aggregate" -->
					<groupId>org.owasp</groupId>
					<artifactId>dependency-check-maven</artifactId>
					<version>5.0.0-M2</version>
					<configuration>
						<format>ALL</format>
						<skipSystemScope>true</skipSystemScope>
						<skipProvidedScope>true</skipProvidedScope>
						<excludes>
							<exclude>*flink-docs</exclude>
							<exclude>*flink-end-to-end-tests</exclude>
							<exclude>*flink-fs-tests*</exclude>
							<exclude>*flink-yarn-tests*</exclude>
						</excludes>
					</configuration>
				</plugin>
R
Robert Metzger 已提交
1968 1969
			</plugins>
		</pluginManagement>
S
sewen 已提交
1970
	</build>
1971

S
sewen 已提交
1972
</project>