pom.xml 15.6 KB
Newer Older
S
sewen 已提交
1
<?xml version="1.0" encoding="UTF-8"?>
2
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
3
	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
S
sewen 已提交
4

5
	<parent>
6 7 8
		<groupId>org.apache</groupId>
		<artifactId>apache</artifactId>
		<version>14</version>
9 10
	</parent>

S
sewen 已提交
11
	<modelVersion>4.0.0</modelVersion>
12

13 14
	<groupId>org.apache.flink</groupId>
	<artifactId>flink-parent</artifactId>
R
Robert Metzger 已提交
15
	<version>0.6-SNAPSHOT</version>
16

17
	<name>flink</name>
S
sewen 已提交
18
	<packaging>pom</packaging>
19 20
	<url>http://flink.incubator.apache.org/</url>
	<inceptionYear>2014</inceptionYear>
21

S
sewen 已提交
22 23 24 25
	<licenses>
		<license>
			<name>The Apache Software License, Version 2.0</name>
			<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
26
			<distribution>repo</distribution>
S
sewen 已提交
27 28
		</license>
	</licenses>
29

30
	<scm>
31 32 33
		<url>https://github.com/apache/incubator-flink</url>
		<connection>git@github.com:apache/incubator-flink.git</connection>
		<developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-flink.git</developerConnection>
34 35
	</scm>

36
	<modules>
37 38 39 40 41 42 43 44 45 46 47 48
		<module>flink-core</module>
		<module>flink-java</module>
		<module>flink-scala</module>
		<module>flink-runtime</module>
		<module>flink-compiler</module>
		<module>flink-examples</module>
		<module>flink-clients</module>
		<module>flink-tests</module>
		<module>flink-test-utils</module>
		<module>flink-addons</module>
		<module>flink-quickstart</module>
		<module>flink-dist</module>
49 50
	</modules>

S
sewen 已提交
51 52
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
S
StephanEwen 已提交
53
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
54
		<hadoop-one.version>1.2.1</hadoop-one.version>
55
		<hadoop-two.version>2.2.0</hadoop-two.version>
S
sewen 已提交
56
	</properties>
57

S
sewen 已提交
58
	<dependencies>
59 60 61 62 63 64 65
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
66

R
Robert Metzger 已提交
67
		<dependency>
68 69 70 71
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.16</version>
			<type>jar</type>
S
sewen 已提交
72
			<scope>compile</scope>
73
		</dependency>
R
Robert Metzger 已提交
74

S
sewen 已提交
75 76 77 78 79 80 81
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.3</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
R
Robert Metzger 已提交
82

S
sewen 已提交
83 84 85
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
86
			<version>14.0.1</version>
S
StephanEwen 已提交
87
			<type>jar</type>
S
sewen 已提交
88 89
			<scope>compile</scope>
		</dependency>
R
Robert Metzger 已提交
90

S
sewen 已提交
91 92 93 94 95 96 97
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.7</version>
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
98

99 100 101 102 103
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.8.5</version>
			<type>jar</type>
A
arvid 已提交
104
			<scope>test</scope>
105
		</dependency>
R
Robert Metzger 已提交
106

107 108 109
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
A
Arvid Heise 已提交
110
			<version>1.4.9</version>
111 112 113
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
114

115 116 117
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-api-mockito</artifactId>
A
Arvid Heise 已提交
118
			<version>1.4.9</version>
119 120 121
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
122

123 124 125 126
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
			<version>1.1</version>
127 128
			<type>jar</type>
			<scope>test</scope>
129
		</dependency>
R
Robert Metzger 已提交
130

131 132
	</dependencies>

133 134
	<profiles>
		<profile>
135 136 137
			<id>hadoop-1</id>
			<activation>
				<property>
138 139
					<!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh -->
					<!--hadoop1--><name>!hadoop.profile</name>
140 141
				</property>
			</activation>
142
			<properties>
143
				<hadoop.version>${hadoop-one.version}</hadoop.version>
144
			</properties>
145 146
			<dependencyManagement>
				<dependencies>
147
					<!-- "Old" stable Hadoop = MapReduce v1 -->
148 149
					<dependency>
						<groupId>org.apache.hadoop</groupId>
150
						<artifactId>hadoop-core</artifactId>
151 152 153 154 155 156
						<version>${hadoop.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
		<profile>
157
			<id>hadoop-2</id>
158
			<activation>
159
				<property>
160 161
					<!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh -->
					<!--hadoop2--><name>hadoop.profile</name><value>2</value>
162
				</property>
163
			</activation>
164
			<properties>
165
				<hadoop.version>${hadoop-two.version}</hadoop.version>
166
			</properties>
167 168
			<dependencyManagement>
				<dependencies>
169
					<!-- YARN -->
170 171
					<dependency>
						<groupId>org.apache.hadoop</groupId>
172 173 174 175 176 177
						<artifactId>hadoop-common</artifactId>
						<version>${hadoop.version}</version>
					</dependency>
					<dependency>
						<groupId>org.apache.hadoop</groupId>
						<artifactId>hadoop-hdfs</artifactId>
178 179 180 181 182
						<version>${hadoop.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
		<profile>
			<id>cdh-repo</id>
				<repositories>
				<repository>
					<id>cloudera-releases</id>
					<url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
				</repository>
			</repositories>
		</profile>
R
Robert Metzger 已提交
198 199
		<profile>
			<id>release</id>
R
Robert Metzger 已提交
200
				<build>
R
Robert Metzger 已提交
201
				<plugins>
R
Robert Metzger 已提交
202
					<plugin>
R
Robert Metzger 已提交
203 204 205 206
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-gpg-plugin</artifactId>
					<version>1.4</version>
					<executions>
R
Robert Metzger 已提交
207
						<execution>
R
Robert Metzger 已提交
208 209 210
						<id>sign-artifacts</id>
						<phase>verify</phase>
						<goals>
R
Robert Metzger 已提交
211
							<goal>sign</goal>
R
Robert Metzger 已提交
212
						</goals>
R
Robert Metzger 已提交
213
						</execution>
R
Robert Metzger 已提交
214
					</executions>
R
Robert Metzger 已提交
215
					</plugin>
R
Robert Metzger 已提交
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
				</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>
R
Robert Metzger 已提交
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
		<profile>
			<id>jdk8</id>
				<activation>
					<activeByDefault>false</activeByDefault>
					<jdk>1.8</jdk>
				</activation>
				<build>
					<plugins>
						<plugin>
							<groupId>org.apache.maven.plugins</groupId>
							<artifactId>maven-javadoc-plugin</artifactId>
							<version>2.9.1</version>
							<configuration>
								<quiet>true</quiet>
							</configuration>
							<executions>
								<execution>
									<id>attach-javadocs</id>
									<goals>
										<goal>jar</goal>
									</goals>
									<configuration>
										<additionalparam>-Xdoclint:none</additionalparam>
									</configuration>
								</execution>
							</executions>
						</plugin>
					</plugins>
				</build>
		</profile>
263 264
	</profiles>

S
sewen 已提交
265
	<dependencyManagement>
S
sewen 已提交
266
		<!-- this section defines the module versions that are used if nothing else is specified. -->
R
Robert Metzger 已提交
267
		<dependencies>
R
Robert Metzger 已提交
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283
			<!-- Managed dependency required for HBase in pact-hbase  -->
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>1.4.3</version>
			</dependency>
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-log4j12</artifactId>
				<version>1.4.3</version>
			</dependency>
			<dependency>
				<groupId>org.javassist</groupId>
				<artifactId>javassist</artifactId>
				<version>3.18.1-GA</version>
			</dependency>
284 285 286
		</dependencies>
	</dependencyManagement>

S
sewen 已提交
287 288
	<reporting>
		<plugins>
S
sewen 已提交
289
			<!-- execution of Unit Tests -->
S
sewen 已提交
290 291 292
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
293
				<version>2.7</version>
294 295 296
				<configuration>
					<argLine>-Xmx1024m</argLine>
				</configuration>
S
sewen 已提交
297
			</plugin>
R
Robert Metzger 已提交
298

299 300
			<!-- test coverage reports -->
			<plugin>
R
Robert Metzger 已提交
301 302 303
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
					<version>2.6</version>
304 305 306 307 308 309
				<configuration>
					<formats>
						<format>html</format>
					</formats>
				</configuration>
			</plugin>
S
sewen 已提交
310 311 312 313 314
		</plugins>
	</reporting>

	<build>
		<plugins>
315 316 317
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
318
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
319 320 321 322 323 324 325 326 327
				<configuration>
					<archive>
						<manifest>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
R
Robert Metzger 已提交
328 329 330
			<plugin>
				<groupId>org.apache.rat</groupId>
				<artifactId>apache-rat-plugin</artifactId>
331
				<version>0.10</version><!--$NO-MVN-MAN-VER$-->
R
Robert Metzger 已提交
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
				<executions>
					<execution>
						<phase>verify</phase>
						<goals>
							<goal>check</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<excludeSubProjects>false</excludeSubProjects>
					<numUnapprovedLicenses>0</numUnapprovedLicenses>
					<excludes>
						<!-- Additional files like .gitignore etc.-->
						<exclude>**/.*</exclude>
						<exclude>**/*.prefs</exclude>
						<!-- Resource files which have values. -->
						<exclude>**/resources/**</exclude>
						<!-- Configuration Files. -->
350
						<exclude>**/flink-bin/conf/slaves</exclude>
R
Robert Metzger 已提交
351
						<!-- Administrative files in the main trunk. -->
352
						<exclude>**/README.md</exclude>
R
Robert Metzger 已提交
353
						<exclude>tools/checkstyle.xml</exclude>
R
Robert Metzger 已提交
354 355 356 357
						<exclude>CHANGELOG</exclude>
						<exclude>**/*.creole</exclude>
						<exclude>CONTRIBUTORS</exclude>
						<!-- Build fiels -->
A
alex 已提交
358
						<exclude>tools/maven/checkstyle.xml</exclude>
359
						<exclude>tools/maven/suppressions.xml</exclude>
R
Robert Metzger 已提交
360 361 362 363 364
						<exclude>**/pom.xml</exclude>
						<exclude>**/pom.hadoop2.xml</exclude>
						<exclude>**/*.iml</exclude>
						<!-- Generated content -->
						<exclude>**/target/**</exclude>
365 366
						<!-- Documentation -->
						<exclude>**/docs/**</exclude>
R
Robert Metzger 已提交
367 368 369
					</excludes>
				</configuration>
			</plugin>
370 371 372 373 374
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
				<version>2.12.1</version>
				<executions>
R
Robert Metzger 已提交
375 376 377 378 379 380 381 382
					<execution>
						<id>validate</id>
						<phase>validate</phase>
						<goals>
							<goal>check</goal>
						</goals>
					</execution>
				</executions>
A
alex 已提交
383
				<configuration>
384 385 386
					<suppressionsLocation>/tools/maven/suppressions.xml</suppressionsLocation>
					<suppressionsFileExpression>/checkstyle.suppressions.file</suppressionsFileExpression>
					<configLocation>/tools/maven/checkstyle.xml</configLocation>
A
alex 已提交
387 388
					<logViolationsToConsole>true</logViolationsToConsole>
				</configuration>
389
			</plugin>
S
sewen 已提交
390
			<plugin>
391
				<!-- just define the Java version to be used for compiling and plugins -->
S
sewen 已提交
392 393
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
394
				<version>3.1</version><!--$NO-MVN-MAN-VER$-->
S
sewen 已提交
395 396 397
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
S
StephanEwen 已提交
398
					<!-- High optimization, no debugging <compilerArgument>-g:none -O</compilerArgument> -->
S
sewen 已提交
399 400 401 402
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
D
Daniel Warneke 已提交
403
				<artifactId>maven-javadoc-plugin</artifactId>
404
				<version>2.9.1</version><!--$NO-MVN-MAN-VER$-->
R
Robert Metzger 已提交
405 406 407
				<configuration>
					<quiet>true</quiet>
				</configuration>
D
Daniel Warneke 已提交
408 409
				<executions>
					<execution>
410
						<id>attach-javadocs</id>
D
Daniel Warneke 已提交
411
						<goals>
412
							<goal>jar</goal>
D
Daniel Warneke 已提交
413 414 415
						</goals>
					</execution>
				</executions>
S
sewen 已提交
416 417
			</plugin>
			<plugin>
418
				<artifactId>maven-failsafe-plugin</artifactId>
419
				<version>2.7</version><!--$NO-MVN-MAN-VER$-->
420 421 422 423 424 425 426 427
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
S
sewen 已提交
428
				<configuration>
429
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
430 431 432
				</configuration>
			</plugin>
			<plugin>
433 434
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
435
				<version>2.16</version><!--$NO-MVN-MAN-VER$-->
S
sewen 已提交
436
				<configuration>
437
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
438 439 440 441 442
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
443
				<version>2.8</version>
S
sewen 已提交
444 445 446 447
				<configuration>
					<classpathContainers>
						<classpathContainer>
							org.eclipse.jdt.launching.JRE_CONTAINER
448
						</classpathContainer>
S
sewen 已提交
449
					</classpathContainers>
R
Robert Metzger 已提交
450 451
					<downloadSources>true</downloadSources>
					<downloadJavadocs>true</downloadJavadocs>
S
sewen 已提交
452 453
				</configuration>
			</plugin>
454 455 456
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
457
				<version>1.3.1</version><!--$NO-MVN-MAN-VER$-->
458 459 460 461 462 463 464 465 466
				<executions>
					<execution>
						<id>enforce-maven</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireMavenVersion>
R
Robert Metzger 已提交
467 468
									<!-- enforce at least mvn version 3.0.3 -->
									<version>[3.0.3,)</version>
469 470 471 472 473 474
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
475 476 477
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-source-plugin</artifactId>
478
				<version>2.2.1</version><!--$NO-MVN-MAN-VER$-->
479 480 481 482 483 484 485 486 487
				<executions>
					<execution>
						<id>attach-sources</id>
						<goals>
							<goal>jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
S
sewen 已提交
488
		</plugins>
R
Robert Metzger 已提交
489 490 491 492 493 494 495

		<!--
		Disable git-commit-id-plugin in eclipse
		See https://github.com/stratosphere/stratosphere/pull/231#issuecomment-27896187
		-->
		<pluginManagement>
			<plugins>
R
Robert Metzger 已提交
496
				<!--This plugin's configuration is used to store Eclipse m2e settings
R
Robert Metzger 已提交
497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											pl.project13.maven
										</groupId>
										<artifactId>
											git-commit-id-plugin
										</artifactId>
										<versionRange>
											[2.1.5,)
										</versionRange>
										<goals>
											<goal>revision</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
C
Christoph Bruecke 已提交
521
										<ignore/>
R
Robert Metzger 已提交
522 523
									</action>
								</pluginExecution>
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>
											org.apache.maven.plugins
										</groupId>
										<artifactId>
											maven-checkstyle-plugin
										</artifactId>
										<versionRange>
											[2.12.1,)
										</versionRange>
										<goals>
											<goal>check</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
540 541 542 543 544 545 546 547 548 549 550 551 552 553
										<ignore />
									</action>
								</pluginExecution>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-enforcer-plugin</artifactId>
										<versionRange>[1.0.0,)</versionRange>
										<goals>
											<goal>enforce</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
554 555
									</action>
								</pluginExecution>
556 557 558 559 560 561 562 563 564 565 566 567 568
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-remote-resources-plugin</artifactId>
										<versionRange>[0.0.0,)</versionRange>
										<goals>
											<goal>process</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore />
									</action>
								</pluginExecution>
R
Robert Metzger 已提交
569 570 571 572 573 574
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
S
sewen 已提交
575 576
	</build>
</project>