pom.xml 13.0 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>
S
StephanEwen 已提交
14
	<artifactId>ozone</artifactId>
15
	<version>0.4-ozone-SNAPSHOT</version>
16

S
StephanEwen 已提交
17
	<name>ozone</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 44 45
		<module>stratosphere-dist</module>
	</modules>

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

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

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

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


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

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

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

S
sewen 已提交
229 230
			<!-- measure and report source code complexity -->
<!--			<plugin>
S
sewen 已提交
231 232 233
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>javancss-maven-plugin</artifactId>
				<version>2.0</version>
S
sewen 已提交
234
			</plugin> -->
235

S
sewen 已提交
236 237
			<!-- analyze dependencies in source code -->
<!--			<plugin>
S
sewen 已提交
238 239
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jdepend-maven-plugin</artifactId>
S
sewen 已提交
240 241
				<version></version>
			</plugin> -->
242

243 244 245
			<!-- disabled because currently no SCM defined generates changelog <plugin> 
				<groupId>org.apache.maven.plugins</groupId> <artifactId>maven-changelog-plugin</artifactId> 
				<version>2.2-SNAPSHOT</version> </plugin> -->
246

S
sewen 已提交
247 248
			<!-- report occurrences of various todo markers in code -->
<!--			<plugin>
S
sewen 已提交
249 250
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>taglist-maven-plugin</artifactId>
S
sewen 已提交
251
				<version>2.3</version>
S
sewen 已提交
252 253 254 255 256 257 258 259
				<configuration>
					<tags>
						<tag>TODO</tag>
						<tag>FIXME</tag>
						<tag>@todo</tag>
						<tag>@deprecated</tag>
					</tags>
				</configuration>
S
sewen 已提交
260
			</plugin> -->
261

262 263 264 265 266
			<!-- todo: reenable when SCM is available <plugin> <groupId>org.codehaus.mojo</groupId> 
				<artifactId>scmchangelog-maven-plugin</artifactId> <version>1.2</version> 
				<configuration> <connectionUrl>scm:svn:https://projekte.itmc.tu-dortmund.de/svn/sla4dgrid/trunk</connectionUrl> 
				<tagBase>https://projekte.itmc.tu-dortmund.de/svn/sla4dgrid/tags/</tagBase> 
				<filter>.*</filter> </configuration> </plugin> -->
267

S
sewen 已提交
268 269
			<!-- generates cross references in code so that you can click in the reports and jump to the respective lines -->
<!--			<plugin>
S
sewen 已提交
270 271 272 273 274
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jxr-maven-plugin</artifactId>
				<configuration>
					<linkJavadoc>true</linkJavadoc>
				</configuration>
S
sewen 已提交
275
			</plugin> -->
276

S
sewen 已提交
277 278
			<!-- discovers frequent bugs in programs -->
<!--			<plugin>
S
sewen 已提交
279 280
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
S
sewen 已提交
281
				<version>2.0.1</version>
S
sewen 已提交
282 283 284 285 286 287
				<configuration>
					<effort>Max</effort>
					<threshold>Medium</threshold>
					<findbugsXmlOutput>true</findbugsXmlOutput>
					<xmlOutput>true</xmlOutput>
				</configuration>
S
sewen 已提交
288
			</plugin> -->
289

S
sewen 已提交
290 291
			<!-- maven source code analysis for frequent bugs -->
<!--			<plugin>
S
sewen 已提交
292
				<artifactId>maven-pmd-plugin</artifactId>
S
sewen 已提交
293
				<version>2.5</version>
S
sewen 已提交
294 295 296 297 298 299 300 301 302 303 304
				<configuration>
					<targetJdk>1.6</targetJdk>
				</configuration>
				<reportSets>
					<reportSet>
						<reports>
							<report>pmd</report>
							<report>cpd</report>
						</reports>
					</reportSet>
				</reportSets>
S
sewen 已提交
305
			</plugin> -->
306

S
sewen 已提交
307
			<!-- generation of JavaDoc -->
308
			<plugin>
S
sewen 已提交
309
				<groupId>org.apache.maven.plugins</groupId>
310 311
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.5</version>
312
			</plugin>
313

S
sewen 已提交
314
			<!-- style checker -->
S
sewen 已提交
315 316 317
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
318
				<version>2.6</version>
S
sewen 已提交
319
				<configuration>
320
					<configLocation>stratosphere/checkstyle.xml</configLocation>
S
sewen 已提交
321 322
				</configuration>
			</plugin>
323

S
sewen 已提交
324
			<!-- execution of Unit Tests -->
S
sewen 已提交
325 326 327
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
328 329 330 331
				<version>2.16</version>
				<configuration>
					<argLine>-Xmx1024m</argLine>
				</configuration>
S
sewen 已提交
332
			</plugin>
333

S
sewen 已提交
334 335
			<!-- check coverage of tests -->
<!--			<plugin>
S
sewen 已提交
336 337 338 339 340 341 342 343
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<configuration>
					<formats>
						<format>html</format>
						<format>xml</format>
					</formats>
				</configuration>
S
sewen 已提交
344
			</plugin> -->
345

346 347 348 349 350 351
			<!-- Generator for QA reports, summarizes various inputs and draws diagrams 
				indicating improvements/deterioration <plugin> <groupId>net.objectlab</groupId> 
				<artifactId>mvn-qalab-plugin</artifactId> <version>2.2</version> <reportSets> 
				<reportSet> <reports> <report>chart</report> <report>report-merge-chart</report> 
				<report>report-movers-all</report> </reports> </reportSet> </reportSets> 
				</plugin> -->
352

S
sewen 已提交
353
<!--			<plugin>
S
sewen 已提交
354 355
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>dashboard-maven-plugin</artifactId>
S
sewen 已提交
356
			</plugin> -->
357

S
sewen 已提交
358 359 360 361 362 363
		</plugins>
	</reporting>

	<build>
		<plugins>
			<plugin>
364
				<!-- just define the Java version to be used for compiling and plugins -->
S
sewen 已提交
365 366
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
S
StephanEwen 已提交
367
				<version>3.1</version>
S
sewen 已提交
368 369 370
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
S
StephanEwen 已提交
371
					<!-- High optimization, no debugging <compilerArgument>-g:none -O</compilerArgument> -->
S
sewen 已提交
372 373 374 375
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
D
Daniel Warneke 已提交
376 377 378 379 380 381 382 383
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.7</version>
				<executions>
					<execution>
						<id>javadoc:aggregate-jar</id>
						<goals>
							<goal>aggregate-jar</goal>
						</goals>
384
						<!-- use "package" phase to include JavaDocs in build -->
D
Daniel Warneke 已提交
385 386 387 388 389 390
						<phase>site</phase>
						<configuration>
							<quiet>true</quiet>
						</configuration>
					</execution>
				</executions>
391 392 393
				<configuration>
					<!-- exclude example classes from JavaDoc -->
					<excludePackageNames>eu.stratosphere.nephele.example.*:eu.stratosphere.pact.example.*</excludePackageNames>
394
				</configuration>
S
sewen 已提交
395 396
			</plugin>
			<plugin>
397 398 399 400 401 402 403 404 405 406
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
S
sewen 已提交
407
				<configuration>
408
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
409 410 411
				</configuration>
			</plugin>
			<plugin>
412 413
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
414
				<version>2.16</version>
S
sewen 已提交
415
				<configuration>
416
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
417 418
				</configuration>
			</plugin>
419
			<plugin>
420
				<!-- plugin that tests whether the code style is appropriate -->
421
				<groupId>org.apache.maven.plugins</groupId>
S
sewen 已提交
422
				<artifactId>maven-checkstyle-plugin</artifactId>
423
				<version>2.6</version>
424
			</plugin>
S
sewen 已提交
425 426 427
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
428
				<version>2.8</version>
S
sewen 已提交
429 430 431 432
				<configuration>
					<classpathContainers>
						<classpathContainer>
							org.eclipse.jdt.launching.JRE_CONTAINER
433
						</classpathContainer>
S
sewen 已提交
434 435 436
					</classpathContainers>
				</configuration>
			</plugin>
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458

			<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>
459 460 461 462 463 464 465 466 467 468 469 470 471
			<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 已提交
472 473 474
		</plugins>
	</build>
</project>