pom.xml 11.5 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

	<modelVersion>4.0.0</modelVersion>
6

S
sewen 已提交
7
	<groupId>eu.stratosphere</groupId>
S
StephanEwen 已提交
8
	<artifactId>ozone</artifactId>
9
	<version>0.2-ozone</version>
10

S
StephanEwen 已提交
11
	<name>ozone</name>
S
sewen 已提交
12
	<packaging>pom</packaging>
S
StephanEwen 已提交
13 14
	<url>http://github.com/dimalabs/ozone</url>
	<inceptionYear>2013</inceptionYear>
15

S
sewen 已提交
16 17 18 19 20 21 22
	<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>
23

S
sewen 已提交
24 25 26 27 28
	<developers>
	</developers>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
S
StephanEwen 已提交
29
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
S
sewen 已提交
30
	</properties>
31

S
sewen 已提交
32 33
	<pluginRepositories>
	</pluginRepositories>
34 35
	
	<repositories>
36 37 38 39 40 41 42 43 44 45 46
		<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>
47

S
sewen 已提交
48
	<dependencies>
S
sewen 已提交
49
	
50 51 52 53 54 55 56
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.1.1</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
S
sewen 已提交
57
		
S
sewen 已提交
58
		<dependency>
59 60 61 62
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.16</version>
			<type>jar</type>
S
sewen 已提交
63
			<scope>compile</scope>
64
		</dependency>
S
sewen 已提交
65
		
S
sewen 已提交
66 67 68 69 70 71 72
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
			<version>1.3</version>
			<type>jar</type>
			<scope>compile</scope>
		</dependency>
S
sewen 已提交
73 74 75 76
		
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
77
			<version>14.0.1</version>
S
StephanEwen 已提交
78
			<type>jar</type>
S
sewen 已提交
79 80 81
			<scope>compile</scope>
		</dependency>
		
S
sewen 已提交
82 83 84 85 86 87 88
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.7</version>
			<type>jar</type>
			<scope>test</scope>
		</dependency>
S
sewen 已提交
89
		
90 91 92 93 94
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.8.5</version>
			<type>jar</type>
A
arvid 已提交
95
			<scope>test</scope>
96
		</dependency>
S
sewen 已提交
97
		
98 99 100
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-module-junit4</artifactId>
A
Arvid Heise 已提交
101
			<version>1.4.9</version>
102 103 104
			<type>jar</type>
			<scope>test</scope>
		</dependency>
S
sewen 已提交
105
		
106 107 108
		<dependency>
			<groupId>org.powermock</groupId>
			<artifactId>powermock-api-mockito</artifactId>
A
Arvid Heise 已提交
109
			<version>1.4.9</version>
110 111 112
			<type>jar</type>
			<scope>test</scope>
		</dependency>
S
sewen 已提交
113
		
114 115 116 117
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>hamcrest-all</artifactId>
			<version>1.1</version>
118 119
			<type>jar</type>
			<scope>test</scope>
120
		</dependency>
S
sewen 已提交
121
		
122 123
	</dependencies>

124 125 126 127 128 129 130 131 132 133 134 135 136 137
	<!--
		Usage of profiles for various hadoop versions:
		Profile hadoop-yarn is active by default.
		It will be deactivated whenever another profile becomes active in this pom

		How to build for yarn using a specific version
		- Call: mvn -Dhadoop.version=<version> <goal>

		How to build for hadoop v1 (will use hadoop-core):
		- Call: mvn -Phadoop_v1 -Dhadoop.version=<hadoop-version> <goal>
	-->
	<profiles>
		<profile>
			<id>hadoop_yarn</id>
138 139 140
			<properties>
				<hadoop.version>2.0.0-cdh4.2.1</hadoop.version>
			</properties>
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
			<dependencyManagement>
				<dependencies>
					<!-- YARN -->
					<dependency>
						<groupId>org.apache.hadoop</groupId>
						<artifactId>hadoop-common</artifactId>
						<version>${hadoop.version}</version>
					</dependency>
					<dependency>
						<groupId>org.apache.hadoop</groupId>
						<artifactId>hadoop-hdfs</artifactId>
						<version>${hadoop.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
		<profile>
			<id>hadoop_v1</id>
159 160 161
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
162 163 164
			<properties>
				<hadoop.version>1.2.1</hadoop.version>
			</properties>
165 166 167 168 169 170 171 172 173 174 175 176 177 178
			<dependencyManagement>
				<dependencies>
					<!-- "Old" Hadoop = MapReduce v1 -->
					<dependency>
						<groupId>org.apache.hadoop</groupId>
						<artifactId>hadoop-core</artifactId>
						<version>${hadoop.version}</version>
					</dependency>
				</dependencies>
			</dependencyManagement>
		</profile>
	</profiles>


S
sewen 已提交
179
	<dependencyManagement>
S
sewen 已提交
180
		<!-- this section defines the module versions that are used if nothing else is specified. -->
181
		<dependencies>	
182
		<!-- Managed dependency required for HBase in pact-hbase  -->
183
	  	<dependency>
184 185 186 187 188 189 190 191 192
      	<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>
193 194 195
		</dependencies>
	</dependencyManagement>

S
sewen 已提交
196 197
	<reporting>
		<plugins>
198

S
sewen 已提交
199
			<plugin>
200
				<!-- just define the Java version to be used for compiling and plugins -->
S
StephanEwen 已提交
201
				<groupId>org.apache.maven.plugins</groupId>
S
sewen 已提交
202
				<artifactId>maven-compiler-plugin</artifactId>
S
StephanEwen 已提交
203
				<version>3.1</version>
S
sewen 已提交
204 205 206 207 208
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
				</configuration>
			</plugin>
209

S
sewen 已提交
210 211
			<!-- measure and report source code complexity -->
<!--			<plugin>
S
sewen 已提交
212 213 214
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>javancss-maven-plugin</artifactId>
				<version>2.0</version>
S
sewen 已提交
215
			</plugin> -->
216

S
sewen 已提交
217 218
			<!-- analyze dependencies in source code -->
<!--			<plugin>
S
sewen 已提交
219 220
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jdepend-maven-plugin</artifactId>
S
sewen 已提交
221 222
				<version></version>
			</plugin> -->
223

224 225 226
			<!-- 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> -->
227

S
sewen 已提交
228 229
			<!-- report occurrences of various todo markers in code -->
<!--			<plugin>
S
sewen 已提交
230 231
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>taglist-maven-plugin</artifactId>
S
sewen 已提交
232
				<version>2.3</version>
S
sewen 已提交
233 234 235 236 237 238 239 240
				<configuration>
					<tags>
						<tag>TODO</tag>
						<tag>FIXME</tag>
						<tag>@todo</tag>
						<tag>@deprecated</tag>
					</tags>
				</configuration>
S
sewen 已提交
241
			</plugin> -->
242

243 244 245 246 247
			<!-- 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> -->
248

S
sewen 已提交
249 250
			<!-- generates cross references in code so that you can click in the reports and jump to the respective lines -->
<!--			<plugin>
S
sewen 已提交
251 252 253 254 255
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jxr-maven-plugin</artifactId>
				<configuration>
					<linkJavadoc>true</linkJavadoc>
				</configuration>
S
sewen 已提交
256
			</plugin> -->
257

S
sewen 已提交
258 259
			<!-- discovers frequent bugs in programs -->
<!--			<plugin>
S
sewen 已提交
260 261
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>findbugs-maven-plugin</artifactId>
S
sewen 已提交
262
				<version>2.0.1</version>
S
sewen 已提交
263 264 265 266 267 268
				<configuration>
					<effort>Max</effort>
					<threshold>Medium</threshold>
					<findbugsXmlOutput>true</findbugsXmlOutput>
					<xmlOutput>true</xmlOutput>
				</configuration>
S
sewen 已提交
269
			</plugin> -->
270

S
sewen 已提交
271 272
			<!-- maven source code analysis for frequent bugs -->
<!--			<plugin>
S
sewen 已提交
273
				<artifactId>maven-pmd-plugin</artifactId>
S
sewen 已提交
274
				<version>2.5</version>
S
sewen 已提交
275 276 277 278 279 280 281 282 283 284 285
				<configuration>
					<targetJdk>1.6</targetJdk>
				</configuration>
				<reportSets>
					<reportSet>
						<reports>
							<report>pmd</report>
							<report>cpd</report>
						</reports>
					</reportSet>
				</reportSets>
S
sewen 已提交
286
			</plugin> -->
287

S
sewen 已提交
288
			<!-- generation of JavaDoc -->
289
			<plugin>
S
sewen 已提交
290
				<groupId>org.apache.maven.plugins</groupId>
291 292
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.5</version>
293
			</plugin>
294

S
sewen 已提交
295
			<!-- style checker -->
S
sewen 已提交
296 297 298
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-checkstyle-plugin</artifactId>
299
				<version>2.6</version>
S
sewen 已提交
300
				<configuration>
301
					<configLocation>stratosphere/checkstyle.xml</configLocation>
S
sewen 已提交
302 303
				</configuration>
			</plugin>
304

S
sewen 已提交
305
			<!-- execution of Unit Tests -->
S
sewen 已提交
306 307 308
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
309
				<version>2.7</version>
S
sewen 已提交
310
			</plugin>
311

S
sewen 已提交
312 313
			<!-- check coverage of tests -->
<!--			<plugin>
S
sewen 已提交
314 315 316 317 318 319 320 321
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<configuration>
					<formats>
						<format>html</format>
						<format>xml</format>
					</formats>
				</configuration>
S
sewen 已提交
322
			</plugin> -->
323

324 325 326 327 328 329
			<!-- 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> -->
330

S
sewen 已提交
331
<!--			<plugin>
S
sewen 已提交
332 333
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>dashboard-maven-plugin</artifactId>
S
sewen 已提交
334
			</plugin> -->
335

S
sewen 已提交
336 337 338 339 340 341
		</plugins>
	</reporting>

	<build>
		<plugins>
			<plugin>
342
				<!-- just define the Java version to be used for compiling and plugins -->
S
sewen 已提交
343 344
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
S
StephanEwen 已提交
345
				<version>3.1</version>
S
sewen 已提交
346 347 348
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
S
StephanEwen 已提交
349
					<!-- High optimization, no debugging <compilerArgument>-g:none -O</compilerArgument> -->
S
sewen 已提交
350 351 352 353
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
D
Daniel Warneke 已提交
354 355 356 357 358 359 360 361
				<artifactId>maven-javadoc-plugin</artifactId>
				<version>2.7</version>
				<executions>
					<execution>
						<id>javadoc:aggregate-jar</id>
						<goals>
							<goal>aggregate-jar</goal>
						</goals>
362
						<!-- use "package" phase to include JavaDocs in build -->
D
Daniel Warneke 已提交
363 364 365 366 367 368
						<phase>site</phase>
						<configuration>
							<quiet>true</quiet>
						</configuration>
					</execution>
				</executions>
369 370 371
				<configuration>
					<!-- exclude example classes from JavaDoc -->
					<excludePackageNames>eu.stratosphere.nephele.example.*:eu.stratosphere.pact.example.*</excludePackageNames>
372
				</configuration>
S
sewen 已提交
373 374
			</plugin>
			<plugin>
375 376 377 378 379 380 381 382 383 384
				<artifactId>maven-failsafe-plugin</artifactId>
				<version>2.6</version>
				<executions>
					<execution>
						<goals>
							<goal>integration-test</goal>
							<goal>verify</goal>
						</goals>
					</execution>
				</executions>
S
sewen 已提交
385
				<configuration>
386
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
387 388 389
				</configuration>
			</plugin>
			<plugin>
390 391 392
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.7</version>
S
sewen 已提交
393
				<configuration>
394
					<argLine>-Xmx1024m</argLine>
S
sewen 已提交
395 396
				</configuration>
			</plugin>
397
			<plugin>
398
				<!-- plugin that tests whether the code style is appropriate -->
399
				<groupId>org.apache.maven.plugins</groupId>
S
sewen 已提交
400
				<artifactId>maven-checkstyle-plugin</artifactId>
401
				<version>2.6</version>
402
			</plugin>
S
sewen 已提交
403 404 405
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
406
				<version>2.8</version>
S
sewen 已提交
407 408 409 410
				<configuration>
					<classpathContainers>
						<classpathContainer>
							org.eclipse.jdt.launching.JRE_CONTAINER
411
						</classpathContainer>
S
sewen 已提交
412 413 414 415 416 417 418 419 420
					</classpathContainers>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<modules>
		<module>nephele</module>
		<module>pact</module>
421
		<module>stratosphere-dist</module>
S
sewen 已提交
422 423
	</modules>
</project>