Merge -r 1185966:1185967 from trunk to branch. FIXES: MAPREDUCE-3199

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1190667 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2011-10-28 23:14:55 +00:00
parent 7e4a2321dc
commit 073139bb57
17 changed files with 32 additions and 59 deletions

View File

@ -1808,6 +1808,9 @@ Release 0.23.0 - Unreleased
MAPREDUCE-3003. Publish MR JARs to Maven snapshot repository. (tucu)
MAPREDUCE-3199. Fixed pom files to include correct log4j configuration for
tests. (vinodkv)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -26,7 +26,8 @@
<properties>
<applink.base>${project.build.directory}/${project.name}</applink.base>
<mr.basedir>${project.parent.parent.basedir}</mr.basedir>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>${project.parent.basedir}/../</mr.basedir>
</properties>
<dependencies>

View File

@ -25,7 +25,8 @@
<name>hadoop-mapreduce-client-common</name>
<properties>
<mr.basedir>${project.parent.parent.basedir}</mr.basedir>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>${project.parent.basedir}/../</mr.basedir>
</properties>
<dependencies>

View File

@ -25,9 +25,10 @@
<name>hadoop-mapreduce-client-core</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>${project.parent.parent.basedir}</mr.basedir>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
@ -41,6 +42,15 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<log4j.configuration>file:///${project.parent.basedir}/../src/test/log4j.properties</log4j.configuration>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.avro</groupId>
<artifactId>avro-maven-plugin</artifactId>

View File

@ -25,6 +25,7 @@
<name>hadoop-mapreduce-client-hs</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>${project.parent.parent.basedir}</mr.basedir>
</properties>
@ -50,15 +51,4 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@ -26,7 +26,8 @@
<properties>
<fork.mode>always</fork.mode>
<mr.basedir>${project.parent.parent.basedir}</mr.basedir>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>${project.parent.basedir}/../</mr.basedir>
</properties>
<dependencies>

View File

@ -25,7 +25,8 @@
<name>hadoop-mapreduce-client-shuffle</name>
<properties>
<mr.basedir>${project.parent.parent.basedir}</mr.basedir>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>${project.parent.basedir}/../</mr.basedir>
</properties>
<dependencies>

View File

@ -27,7 +27,8 @@
<packaging>pom</packaging>
<properties>
<mr.basedir>${project.parent.basedir}</mr.basedir>
<!-- Needed for generating FindBugs warnings using parent pom -->
<mr.basedir>../</mr.basedir>
</properties>

View File

@ -25,6 +25,7 @@
<name>hadoop-yarn-api</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.basedir}</yarn.basedir>
</properties>

View File

@ -25,6 +25,7 @@
<name>hadoop-yarn-applications-distributedshell</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
</properties>

View File

@ -25,6 +25,7 @@
<name>hadoop-yarn-common</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.basedir}</yarn.basedir>
</properties>

View File

@ -25,6 +25,7 @@
<name>hadoop-yarn-server-common</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
</properties>

View File

@ -25,6 +25,7 @@
<name>hadoop-yarn-server-nodemanager</name>
<properties>
<!-- Basedir eeded for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
<container-executor.conf.dir>/etc/hadoop</container-executor.conf.dir>
</properties>

View File

@ -24,6 +24,7 @@
<name>hadoop-yarn-server-tests</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
</properties>

View File

@ -25,6 +25,7 @@
<name>hadoop-yarn-site</name>
<properties>
<!-- Needed for generating FindBugs warnings using parent pom -->
<yarn.basedir>${project.parent.parent.basedir}</yarn.basedir>
</properties>

View File

@ -400,27 +400,6 @@
<artifactId>maven-clean-plugin</artifactId>
<version>2.4.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- requires 2.5+ to make system properties work -->
<!-- requires 2.7+ to avoid SUREFIRE-640 -->
<version>2.9</version>
<configuration>
<failIfNoTests>false</failIfNoTests>
<redirectTestOutputToFile>${test.logs}</redirectTestOutputToFile>
<forkedProcessTimeoutInSeconds>${test.timeout}</forkedProcessTimeoutInSeconds>
<forkMode>${fork.mode}</forkMode>
<environmentVariables>
<JAVA_HOME>${java.home}</JAVA_HOME>
</environmentVariables>
<systemPropertyVariables>
<build.dir>${project.build.directory}</build.dir>
<build.output.dir>${project.build.outputDirectory}</build.output.dir>
<log4j.configuration>file:///${yarn.basedir}/../src/test/log4j.properties</log4j.configuration>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>

View File

@ -199,27 +199,6 @@
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<!-- requires 2.5+ to make system properties work -->
<!-- requires 2.7+ to avoid SUREFIRE-640 -->
<version>2.9</version>
<configuration>
<failIfNoTests>false</failIfNoTests>
<redirectTestOutputToFile>${test.logs}</redirectTestOutputToFile>
<forkedProcessTimeoutInSeconds>${test.timeout}</forkedProcessTimeoutInSeconds>
<forkMode>${fork.mode}</forkMode>
<environmentVariables>
<JAVA_HOME>${java.home}</JAVA_HOME>
</environmentVariables>
<systemPropertyVariables>
<build.dir>${project.build.directory}</build.dir>
<build.output.dir>${project.build.outputDirectory}</build.output.dir>
<log4j.configuration>file:///${mr.basedir}/src/test/log4j.properties</log4j.configuration>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>