pom.xml 10.4 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 15
	<artifactId>stratosphere</artifactId>
	<version>0.4-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 40 41
	<modules>
		<module>nephele</module>
		<module>pact</module>
A
Aljoscha Krettek 已提交
42
		<module>pact-scala</module>
43
		<module>stratosphere-dist</module>
44
		<module>stratosphere-addons</module>
45 46
	</modules>

S
sewen 已提交
47 48
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
S
StephanEwen 已提交
49
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
50 51
		<hadoop-one.version>1.2.1</hadoop-one.version>
		<hadoop-two.version>2.0.0-cdh4.2.1</hadoop-two.version>
S
sewen 已提交
52
	</properties>
53

S
sewen 已提交
54 55
	<pluginRepositories>
	</pluginRepositories>
56 57
	
	<repositories>
58 59 60 61 62 63 64 65 66 67 68
		<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>
69

S
sewen 已提交
70
	<dependencies>
S
sewen 已提交
71
	
72 73 74 75 76 77 78
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
S
sewen 已提交
79
		
S
sewen 已提交
80
		<dependency>
81 82 83 84
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.16</version>
			<type>jar</type>
S
sewen 已提交
85
			<scope>compile</scope>
86
		</dependency>
S
sewen 已提交
87
		
S
sewen 已提交
88 89 90 91 92 93 94
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.3</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
S
sewen 已提交
95 96 97 98
		
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
99
			<version>14.0.1</version>
S
StephanEwen 已提交
100
			<type>jar</type>
S
sewen 已提交
101 102 103
			<scope>compile</scope>
		</dependency>
		
S
sewen 已提交
104 105 106 107 108 109 110
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.7</version>
			<type>jar</type>
			<scope>test</scope>
		</dependency>
S
sewen 已提交
111
		
112 113 114 115 116
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.8.5</version>
			<type>jar</type>
A
arvid 已提交
117
			<scope>test</scope>
118
		</dependency>
S
sewen 已提交
119
		
120 121 122
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
A
Arvid Heise 已提交
123
			<version>1.4.9</version>
124 125 126
			<type>jar</type>
			<scope>test</scope>
		</dependency>
S
sewen 已提交
127
		
128 129 130
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-api-mockito</artifactId>
A
Arvid Heise 已提交
131
			<version>1.4.9</version>
132 133 134
			<type>jar</type>
			<scope>test</scope>
		</dependency>
S
sewen 已提交
135
		
136 137 138 139
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
			<version>1.1</version>
140 141
			<type>jar</type>
			<scope>test</scope>
142
		</dependency>
S
sewen 已提交
143
		
144 145
	</dependencies>

146 147
	<profiles>
		<profile>
148 149 150
			<id>hadoop-1</id>
			<activation>
				<property>
151 152
					<!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh -->
					<!--hadoop1--><name>!hadoop.profile</name>
153 154
				</property>
			</activation>
155
			<properties>
156
				<hadoop.version>${hadoop-one.version}</hadoop.version>
157
			</properties>
158 159
			<dependencyManagement>
				<dependencies>
160
					<!-- "Old" stable Hadoop = MapReduce v1 -->
161 162
					<dependency>
						<groupId>org.apache.hadoop</groupId>
163
						<artifactId>hadoop-core</artifactId>
164 165 166 167 168 169
						<version>${hadoop.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
		<profile>
170
			<id>hadoop-2</id>
171
			<activation>
172
				<property>
173 174
					<!-- Please do not remove the 'hadoop1' comment. See ./tools/generate_specific_pom.sh -->
					<!--hadoop2--><name>hadoop.profile</name><value>2</value>
175
				</property>
176
			</activation>
177
			<properties>
178
				<hadoop.version>${hadoop-two.version}</hadoop.version>
179
			</properties>
180 181
			<dependencyManagement>
				<dependencies>
182
					<!-- YARN -->
183 184
					<dependency>
						<groupId>org.apache.hadoop</groupId>
185 186 187 188 189 190
						<artifactId>hadoop-common</artifactId>
						<version>${hadoop.version}</version>
					</dependency>
					<dependency>
						<groupId>org.apache.hadoop</groupId>
						<artifactId>hadoop-hdfs</artifactId>
191 192 193 194 195 196 197 198
						<version>${hadoop.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
	</profiles>


S
sewen 已提交
199
	<dependencyManagement>
S
sewen 已提交
200
		<!-- this section defines the module versions that are used if nothing else is specified. -->
201
		<dependencies>	
202
		<!-- Managed dependency required for HBase in pact-hbase  -->
R
Robert Metzger 已提交
203 204 205 206 207 208 209 210 211 212
		<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>
213 214 215
		</dependencies>
	</dependencyManagement>

S
sewen 已提交
216 217
	<reporting>
		<plugins>
218

S
sewen 已提交
219
			<plugin>
220
				<!-- just define the Java version to be used for compiling and plugins -->
S
StephanEwen 已提交
221
				<groupId>org.apache.maven.plugins</groupId>
S
sewen 已提交
222
				<artifactId>maven-compiler-plugin</artifactId>
S
StephanEwen 已提交
223
				<version>3.1</version>
S
sewen 已提交
224 225 226 227 228
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
229 230 231



S
sewen 已提交
232
			<!-- execution of Unit Tests -->
S
sewen 已提交
233 234 235
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
236 237 238 239
				<version>2.16</version>
				<configuration>
					<argLine>-Xmx1024m</argLine>
				</configuration>
S
sewen 已提交
240
			</plugin>
241 242 243 244 245 246 247 248 249 250 251 252
			
			<!-- test coverage reports -->
			<plugin>
			        <groupId>org.codehaus.mojo</groupId>
			        <artifactId>cobertura-maven-plugin</artifactId>
			        <version>2.6</version>
				<configuration>
					<formats>
						<format>html</format>
					</formats>
				</configuration>
			</plugin>
253

S
sewen 已提交
254 255 256 257 258 259
		</plugins>
	</reporting>

	<build>
		<plugins>
			<plugin>
260
				<!-- just define the Java version to be used for compiling and plugins -->
S
sewen 已提交
261 262
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
S
StephanEwen 已提交
263
				<version>3.1</version>
S
sewen 已提交
264 265 266
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
S
StephanEwen 已提交
267
					<!-- High optimization, no debugging <compilerArgument>-g:none -O</compilerArgument> -->
S
sewen 已提交
268 269 270 271
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
D
Daniel Warneke 已提交
272
				<artifactId>maven-javadoc-plugin</artifactId>
273
				<version>2.9.1</version>
R
Robert Metzger 已提交
274 275 276
				<configuration>
					<quiet>true</quiet>
				</configuration>
D
Daniel Warneke 已提交
277 278
				<executions>
					<execution>
279
						<id>attach-javadocs</id>
D
Daniel Warneke 已提交
280
						<goals>
281
							<goal>jar</goal>
D
Daniel Warneke 已提交
282 283 284
						</goals>
					</execution>
				</executions>
S
sewen 已提交
285 286
			</plugin>
			<plugin>
287 288 289 290 291 292 293 294 295 296
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
S
sewen 已提交
297
				<configuration>
298
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
299 300 301
				</configuration>
			</plugin>
			<plugin>
302 303
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
304
				<version>2.16</version>
S
sewen 已提交
305
				<configuration>
306
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
307 308
				</configuration>
			</plugin>
309
			<plugin>
310
				<!-- plugin that tests whether the code style is appropriate -->
311
				<groupId>org.apache.maven.plugins</groupId>
S
sewen 已提交
312
				<artifactId>maven-checkstyle-plugin</artifactId>
313
				<version>2.6</version>
314
			</plugin>
S
sewen 已提交
315 316 317
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
318
				<version>2.8</version>
S
sewen 已提交
319 320 321 322
				<configuration>
					<classpathContainers>
						<classpathContainer>
							org.eclipse.jdt.launching.JRE_CONTAINER
323
						</classpathContainer>
S
sewen 已提交
324
					</classpathContainers>
R
Robert Metzger 已提交
325 326
					<downloadSources>true</downloadSources>
					<downloadJavadocs>true</downloadJavadocs>
S
sewen 已提交
327 328
				</configuration>
			</plugin>
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350

			<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>
									<version>(,2.1.0),(2.1.0,2.2.0),(2.2.0,)</version>
									<message>Maven 2.1.0 and 2.2.0 produce incorrect GPG signatures and checksums respectively.</message>
								</requireMavenVersion>
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
351 352 353 354 355 356 357 358 359 360 361 362 363
			<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 已提交
364
		</plugins>
R
Robert Metzger 已提交
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405

		<!--
		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>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
S
sewen 已提交
406 407
	</build>
</project>