pom.xml 14.7 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>
15
	<version>0.5-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-dist</module>
51 52
	</modules>

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

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

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

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

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

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

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

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

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

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

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

136 137
	</dependencies>

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

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

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

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

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

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