pom.xml 15.1 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 6 7 8 9 10
	<parent>
		<groupId>org.sonatype.oss</groupId>
		<artifactId>oss-parent</artifactId>
		<version>7</version>
	</parent>

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

S
sewen 已提交
13
	<groupId>eu.stratosphere</groupId>
14
	<artifactId>stratosphere</artifactId>
R
Robert Metzger 已提交
15
	<version>0.6-SNAPSHOT</version>
16

17
	<name>stratosphere</name>
S
sewen 已提交
18
	<packaging>pom</packaging>
19
	<url>http://github.com/stratosphere/stratosphere</url>
S
StephanEwen 已提交
20
	<inceptionYear>2013</inceptionYear>
21

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

30
	<scm>
31 32 33
		<url>https://github.com/stratosphere/stratosphere</url>
		<connection>scm:git:git@github.com:stratosphere/stratosphere.git</connection>
		<developerConnection>scm:git:git@github.com:stratosphere/stratosphere.git</developerConnection>
34 35
	</scm>

S
sewen 已提交
36 37 38
	<developers>
	</developers>

39
	<modules>
40
		<module>stratosphere-core</module>
41 42
		<module>stratosphere-java</module>
		<module>stratosphere-scala</module>
43 44 45 46 47
		<module>stratosphere-runtime</module>
		<module>stratosphere-compiler</module>
		<module>stratosphere-examples</module>
		<module>stratosphere-clients</module>
		<module>stratosphere-tests</module>
48
		<module>stratosphere-test-utils</module>
49
		<module>stratosphere-addons</module>
50
		<module>stratosphere-quickstart</module>
51
		<module>stratosphere-dist</module>
52 53
	</modules>

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

S
sewen 已提交
61 62
	<pluginRepositories>
	</pluginRepositories>
R
Robert Metzger 已提交
63

S
sewen 已提交
64
	<dependencies>
65 66 67 68 69 70 71
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
72

R
Robert Metzger 已提交
73
		<dependency>
74 75 76 77
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.16</version>
			<type>jar</type>
S
sewen 已提交
78
			<scope>compile</scope>
79
		</dependency>
R
Robert Metzger 已提交
80

S
sewen 已提交
81 82 83 84 85 86 87
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.3</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
R
Robert Metzger 已提交
88

S
sewen 已提交
89 90 91
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
92
			<version>14.0.1</version>
S
StephanEwen 已提交
93
			<type>jar</type>
S
sewen 已提交
94 95
			<scope>compile</scope>
		</dependency>
R
Robert Metzger 已提交
96

S
sewen 已提交
97 98 99 100 101 102 103
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.7</version>
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
104

105 106 107 108 109
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.8.5</version>
			<type>jar</type>
A
arvid 已提交
110
			<scope>test</scope>
111
		</dependency>
R
Robert Metzger 已提交
112

113 114 115
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
A
Arvid Heise 已提交
116
			<version>1.4.9</version>
117 118 119
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
120

121 122 123
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-api-mockito</artifactId>
A
Arvid Heise 已提交
124
			<version>1.4.9</version>
125 126 127
			<type>jar</type>
			<scope>test</scope>
		</dependency>
R
Robert Metzger 已提交
128

129 130 131 132
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
			<version>1.1</version>
133 134
			<type>jar</type>
			<scope>test</scope>
135
		</dependency>
R
Robert Metzger 已提交
136

137 138
	</dependencies>

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

S
sewen 已提交
271
	<dependencyManagement>
S
sewen 已提交
272
		<!-- this section defines the module versions that are used if nothing else is specified. -->
R
Robert Metzger 已提交
273
		<dependencies>
R
Robert Metzger 已提交
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289
			<!-- 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>
290 291 292
		</dependencies>
	</dependencyManagement>

S
sewen 已提交
293 294
	<reporting>
		<plugins>
S
sewen 已提交
295
			<!-- execution of Unit Tests -->
S
sewen 已提交
296 297 298
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
299 300 301 302
				<version>2.16</version>
				<configuration>
					<argLine>-Xmx1024m</argLine>
				</configuration>
S
sewen 已提交
303
			</plugin>
R
Robert Metzger 已提交
304

305 306
			<!-- test coverage reports -->
			<plugin>
R
Robert Metzger 已提交
307 308 309
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
					<version>2.6</version>
310 311 312 313 314 315
				<configuration>
					<formats>
						<format>html</format>
					</formats>
				</configuration>
			</plugin>
S
sewen 已提交
316 317 318 319 320
		</plugins>
	</reporting>

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

		<!--
		Disable git-commit-id-plugin in eclipse
		See https://github.com/stratosphere/stratosphere/pull/231#issuecomment-27896187
		-->
		<pluginManagement>
			<plugins>
R
Robert Metzger 已提交
500
				<!--This plugin's configuration is used to store Eclipse m2e settings
R
Robert Metzger 已提交
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524
					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 已提交
525
										<ignore/>
R
Robert Metzger 已提交
526 527
									</action>
								</pluginExecution>
528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
								<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>
544 545 546 547 548 549 550 551 552 553 554 555 556 557
										<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 />
558 559
									</action>
								</pluginExecution>
R
Robert Metzger 已提交
560 561 562 563 564 565
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
S
sewen 已提交
566 567
	</build>
</project>