|
|
-
Re: Trunk and 0.23 build failing with clean .m2 directoryAlejandro Abdelnur 2011-08-29, 17:21
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 classpath 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. This 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 <[EMAIL PROTECTED]> wrote: > 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 <[EMAIL PROTECTED]> > 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" <[EMAIL PROTECTED]> wrote: > > > > I am getting the following errors when I try to build either trunk or > 0.23 > > with a clean maven cache. I don't get any errors if I use my old cache. > > > > [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-yarn- > > 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 > |