pom.xml 12.9 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>
S
StephanEwen 已提交
19 20
	<url>http://github.com/dimalabs/ozone</url>
	<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 31 32 33 34 35
	<scm>
		<url>https://github.com/dimalabs/ozone</url>
		<connection>scm:git:git@github.com:dimalabs/ozone.git</connection>
		<developerConnection>scm:git:git@github.com:dimalabs/ozone.git</developerConnection>
	</scm>

S
sewen 已提交
36 37 38
	<developers>
	</developers>

39 40 41 42 43 44
	<modules>
		<module>nephele</module>
		<module>pact</module>
		<module>stratosphere-dist</module>
	</modules>

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

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

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

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


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

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

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

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

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

242 243 244
			<!-- 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> -->
245

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

261 262 263 264 265
			<!-- 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> -->
266

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

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

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

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

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

S
sewen 已提交
323
			<!-- execution of Unit Tests -->
S
sewen 已提交
324 325 326
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
327
				<version>2.7</version>
S
sewen 已提交
328
			</plugin>
329

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

342 343 344 345 346 347
			<!-- 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> -->
348

S
sewen 已提交
349
<!--			<plugin>
S
sewen 已提交
350 351
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>dashboard-maven-plugin</artifactId>
S
sewen 已提交
352
			</plugin> -->
353

S
sewen 已提交
354 355 356 357 358 359
		</plugins>
	</reporting>

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

			<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>
455 456 457 458 459 460 461 462 463 464 465 466 467
			<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 已提交
468 469 470
		</plugins>
	</build>
</project>