Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3007476E2 for ; Mon, 29 Aug 2011 17:39:46 +0000 (UTC) Received: (qmail 18781 invoked by uid 500); 29 Aug 2011 17:39:45 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 18723 invoked by uid 500); 29 Aug 2011 17:39:45 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 18715 invoked by uid 99); 29 Aug 2011 17:39:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 17:39:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2011 17:39:38 +0000 Received: by wyg30 with SMTP id 30so6255722wyg.35 for ; Mon, 29 Aug 2011 10:39:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.206.197 with SMTP id fv5mr4199751wbb.66.1314639558445; Mon, 29 Aug 2011 10:39:18 -0700 (PDT) Received: by 10.227.153.208 with HTTP; Mon, 29 Aug 2011 10:39:18 -0700 (PDT) In-Reply-To: References: Date: Mon, 29 Aug 2011 10:39:18 -0700 Message-ID: Subject: Re: Trunk and 0.23 build failing with clean .m2 directory From: Mahadev Konar To: mapreduce-dev@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Bobby, You are right. The test-patch uses mvn compile. Please file a jira. It should be a minor change: thanks mahadev On Mon, Aug 29, 2011 at 10:34 AM, Robert Evans wrote: > Thanks Alejandro, > > That really clears things up. Is the a JIRA you know of to change test-pa= tch to do mvn test -DskipTests instead of mvn compile? =A0If not I can file= one and do the work. =A0Test-patch failed for me because of this. > > --Bobby > > On 8/29/11 12:21 PM, "Alejandro Abdelnur" wrote: > > The reason for this failure is because of how Maven reactor/dependency > resolution works (IMO a bug). > > Maven reactor/dependency resolution is smart enough to create the classpa= th > using the classes from all modules being built. > > However, this smartness falls short just a bit. The dependencies are > resolved using the deepest maven phase used by current mvn invocation. If > you are doing 'mvn compile' you don't get to the test compile phase. =A0T= his > means that the TEST classes are not resolved from the build but from the > cache/repo. > > The solution is to run 'mvn test -DskipTests' instead 'mvn compile'. This > will include the TEST classes from the build. > > The same when creating the eclipse profile, run 'mvn test -DskipTests > eclipse:eclipse' > > Thanks. > > Alejandro > > On Mon, Aug 29, 2011 at 9:59 AM, Ravi Prakash wrot= e: > >> Yeah I've seen this before. Sometimes I had to descend into child >> directories to mvn install them, before I could maven install parents. I= 'm >> hoping/guessing that issue is fixed now >> >> On Mon, Aug 29, 2011 at 11:39 AM, Robert Evans >> wrote: >> >> > Wow this is odd install works just fine, but compile fails unless I do= an >> > install first (I found this trying to run test-patch). >> > >> > $mvn --version >> > Apache Maven 3.0.3 (r1075438; 2011-02-28 11:31:09-0600) >> > Maven home: /home/evans/bin/maven >> > Java version: 1.6.0_22, vendor: Sun Microsystems Inc. >> > Java home: /home/evans/bin/jdk1.6.0/jre >> > Default locale: en_US, platform encoding: UTF-8 >> > OS name: "linux", version: "2.6.18-238.12.1.el5", arch: "i386", family= : >> > "unix" >> > >> > Has anyone else seen this, or is there something messed up with my >> machine? >> > >> > Thanks, >> > >> > Bobby >> > >> > On 8/29/11 11:18 AM, "Robert Evans" wrote: >> > >> > I am getting the following errors when I try to build either trunk or >> 0.23 >> > with a clean maven cache. =A0I don't get any errors if I use my old ca= che. >> > >> > [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ >> > hadoop-yarn-common --- >> > [INFO] Compiling 2 source files to >> > >> > >> /home/evans/src/hadoop-git/hadoop-mapreduce-project/hadoop-yarn/hadoop-y= arn- >> > common/target/classes >> > [INFO] >> > [INFO] >> > ----------------------------------------------------------------------= -- >> > [INFO] Building hadoop-yarn-server-common 0.24.0-SNAPSHOT >> > [INFO] >> > ----------------------------------------------------------------------= -- >> > [INFO] >> > ----------------------------------------------------------------------= -- >> > [INFO] Reactor Summary: >> > [INFO] >> > [INFO] Apache Hadoop Project POM ......................... SUCCESS >> [0.714s] >> > [INFO] Apache Hadoop Annotations ......................... SUCCESS >> [0.323s] >> > [INFO] Apache Hadoop Project Dist POM .................... SUCCESS >> [0.001s] >> > [INFO] Apache Hadoop Assemblies .......................... SUCCESS >> [0.025s] >> > [INFO] Apache Hadoop Alfredo ............................. SUCCESS >> [0.067s] >> > [INFO] Apache Hadoop Common .............................. SUCCESS >> [2.117s] >> > [INFO] Apache Hadoop Common Project ...................... SUCCESS >> [0.001s] >> > [INFO] Apache Hadoop HDFS ................................ SUCCESS >> [1.419s] >> > [INFO] Apache Hadoop HDFS Project ........................ SUCCESS >> [0.001s] >> > [INFO] hadoop-yarn-api ................................... SUCCESS >> [7.019s] >> > [INFO] hadoop-yarn-common ................................ SUCCESS >> [2.181s] >> > [INFO] hadoop-yarn-server-common ......................... FAILURE >> [0.058s] >> > [INFO] hadoop-yarn-server-nodemanager .................... SKIPPED >> > [INFO] hadoop-yarn-server-resourcemanager ................ SKIPPED >> > [INFO] hadoop-yarn-server-tests .......................... SKIPPED >> > [INFO] hadoop-yarn-server ................................ SKIPPED >> > [INFO] hadoop-yarn ....................................... SKIPPED >> > [INFO] hadoop-mapreduce-client-core ...................... SKIPPED >> > [INFO] hadoop-mapreduce-client-common .................... SKIPPED >> > [INFO] hadoop-mapreduce-client-shuffle ................... SKIPPED >> > [INFO] hadoop-mapreduce-client-app ....................... SKIPPED >> > [INFO] hadoop-mapreduce-client-hs ........................ SKIPPED >> > [INFO] hadoop-mapreduce-client-jobclient ................. SKIPPED >> > [INFO] hadoop-mapreduce-client ........................... SKIPPED >> > [INFO] hadoop-mapreduce .................................. SKIPPED >> > [INFO] Apache Hadoop Main ................................ SKIPPED >> > [INFO] >> > ----------------------------------------------------------------------= -- >> > [INFO] BUILD FAILURE >> > [INFO] >> > ----------------------------------------------------------------------= -- >> > [INFO] Total time: 14.938s >> > [INFO] Finished at: Mon Aug 29 11:18:06 CDT 2011 >> > [INFO] Final Memory: 29M/207M >> > [INFO] >> > ----------------------------------------------------------------------= -- >> > [ERROR] Failed to execute goal on project hadoop-yarn-server-common: >> Could >> > not resolve dependencies for project >> > org.apache.hadoop:hadoop-yarn-server-common:jar:0.24.0-SNAPSHOT: Failu= re >> to >> > find org.apache.hadoop:hadoop-yarn-common:jar:tests:0.24.0-SNAPSHOT in >> > http://ymaven.corp.yahoo.com:9999/proximity/repository/apache.snapshot= was >> > cached in the local repository, resolution will not be reattempted unt= il >> > the >> > update interval of local apache.snapshot mirror has elapsed or updates >> are >> > forced -> [Help 1] >> > [ERROR] >> > [ERROR] To see the full stack trace of the errors, re-run Maven with t= he >> -e >> > switch. >> > [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> > [ERROR] >> > [ERROR] For more information about the errors and possible solutions, >> > please >> > read the following articles: >> > [ERROR] [Help 1] >> > >> > >> http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionExc= epti >> > on >> > [ERROR] >> > [ERROR] After correcting the problems, you can resume the build with t= he >> > command >> > [ERROR] =A0 mvn -rf :hadoop-yarn-server-common >> > >> > >> > Is anyone looking into this yet? >> > >> > --Bobby >> > >> > >> > >> > >