pom.xml 13.2 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>
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>
S
sewen 已提交
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>
S
sewen 已提交
86 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 94
			<scope>compile</scope>
		</dependency>
		
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>
S
sewen 已提交
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>
S
sewen 已提交
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>
S
sewen 已提交
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>
S
sewen 已提交
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>
S
sewen 已提交
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 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
		<profile>
			<id>release</id>
			  <build>
				<plugins>
				  <plugin>
					<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>
				  </plugin>
				</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. -->
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>
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>
314

S
sewen 已提交
315 316 317 318 319
		</plugins>
	</reporting>

	<build>
		<plugins>
R
Robert Metzger 已提交
320 321 322 323 324 325 326 327 328 329 330 331 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>
						<exclude>CHANGELOG</exclude>
						<exclude>**/*.creole</exclude>
						<exclude>CONTRIBUTORS</exclude>
						<!-- Build fiels -->
						<exclude>**/pom.xml</exclude>
						<exclude>**/pom.hadoop2.xml</exclude>
						<exclude>**/*.iml</exclude>
						<!-- Generated content -->
						<exclude>**/target/**</exclude>
					</excludes>
				</configuration>
			</plugin>
S
sewen 已提交
357
			<plugin>
358
				<!-- just define the Java version to be used for compiling and plugins -->
S
sewen 已提交
359 360
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
S
StephanEwen 已提交
361
				<version>3.1</version>
S
sewen 已提交
362 363 364
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
S
StephanEwen 已提交
365
					<!-- High optimization, no debugging <compilerArgument>-g:none -O</compilerArgument> -->
S
sewen 已提交
366 367 368 369
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
D
Daniel Warneke 已提交
370
				<artifactId>maven-javadoc-plugin</artifactId>
371
				<version>2.9.1</version>
R
Robert Metzger 已提交
372 373 374
				<configuration>
					<quiet>true</quiet>
				</configuration>
D
Daniel Warneke 已提交
375 376
				<executions>
					<execution>
377
						<id>attach-javadocs</id>
D
Daniel Warneke 已提交
378
						<goals>
379
							<goal>jar</goal>
D
Daniel Warneke 已提交
380 381 382
						</goals>
					</execution>
				</executions>
S
sewen 已提交
383 384
			</plugin>
			<plugin>
385 386 387 388 389 390 391 392 393 394
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
S
sewen 已提交
395
				<configuration>
396
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
397 398 399
				</configuration>
			</plugin>
			<plugin>
400 401
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
402
				<version>2.16</version>
S
sewen 已提交
403
				<configuration>
404
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
405 406
				</configuration>
			</plugin>
407
			<plugin>
408
				<!-- plugin that tests whether the code style is appropriate -->
409
				<groupId>org.apache.maven.plugins</groupId>
S
sewen 已提交
410
				<artifactId>maven-checkstyle-plugin</artifactId>
411
				<version>2.6</version>
412
			</plugin>
S
sewen 已提交
413 414 415
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
416
				<version>2.8</version>
S
sewen 已提交
417 418 419 420
				<configuration>
					<classpathContainers>
						<classpathContainer>
							org.eclipse.jdt.launching.JRE_CONTAINER
421
						</classpathContainer>
S
sewen 已提交
422
					</classpathContainers>
R
Robert Metzger 已提交
423 424
					<downloadSources>true</downloadSources>
					<downloadJavadocs>true</downloadJavadocs>
S
sewen 已提交
425 426
				</configuration>
			</plugin>
427 428 429 430 431 432 433 434 435 436 437 438 439 440

			<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 已提交
441 442
									<!-- enforce at least mvn version 3.0.3 -->
									<version>[3.0.3,)</version>
443 444 445 446 447 448
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
449 450 451 452 453 454 455 456 457 458 459 460 461
			<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 已提交
462
		</plugins>
R
Robert Metzger 已提交
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494

		<!--
		Disable git-commit-id-plugin in eclipse
		See https://github.com/stratosphere/stratosphere/pull/231#issuecomment-27896187
		-->
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					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 已提交
495
										<ignore/>
R
Robert Metzger 已提交
496 497 498 499 500 501 502 503
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
S
sewen 已提交
504 505
	</build>
</project>