pom.xml 14.3 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-addons</module>
49
		<module>stratosphere-dist</module>
50 51
	</modules>

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

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

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

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

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

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

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

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

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

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

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

135 136
	</dependencies>

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

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

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

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

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

		<!--
		Disable git-commit-id-plugin in eclipse
		See https://github.com/stratosphere/stratosphere/pull/231#issuecomment-27896187
		-->
		<pluginManagement>
			<plugins>
R
Robert Metzger 已提交
485
				<!--This plugin's configuration is used to store Eclipse m2e settings
R
Robert Metzger 已提交
486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509
					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 已提交
510
										<ignore/>
R
Robert Metzger 已提交
511 512
									</action>
								</pluginExecution>
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
								<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 已提交
532 533 534 535 536 537
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
S
sewen 已提交
538 539
	</build>
</project>