pom.xml 8.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>
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 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 229 230



S
sewen 已提交
231
			<!-- execution of Unit Tests -->
S
sewen 已提交
232 233 234
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
235 236 237 238
				<version>2.16</version>
				<configuration>
					<argLine>-Xmx1024m</argLine>
				</configuration>
S
sewen 已提交
239
			</plugin>
240

241

S
sewen 已提交
242 243 244 245 246 247
		</plugins>
	</reporting>

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

			<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>
334 335 336 337 338 339 340 341 342 343 344 345 346
			<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 已提交
347 348 349
		</plugins>
	</build>
</project>