On Mon, Jan 2, 2012 at 5:45 PM, Ronald Petty <[email protected]> wrote: > Martin, > > Thanks for the tip. I tried a few more things and found the root cause. > On a Mac, tools.jar is missing and I had placed a symbolic link from > tools.jar to classes.jar (to fix other issues).
tools.jar is never present in an Apple JDK. Normally, maven works perfectly fine, you shouldn't need that link. If Hadoop has a dependency on tools.jar you should open a JIRA on them, there's a standard cliche for MacOS. If your problem is not specific to Hadoop, I'd suspect your setting of JAVA_HOME. Mine is : JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home It turns out that was > causing the problem. I am not certain why at this time, but if I can find > something I will update. > > Thanks again. > > Ron > > On Mon, Jan 2, 2012 at 5:42 PM, Martin Gainty <[email protected]> wrote: > >> >> Hi Ron- If the problem is the javac executable is being lost then:i would >> specifically call maven-compiler-plugin and set the configuration >> <executable> path to specific location of javac e.ghttp:// >> maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.htmlDoes >> this help? >> Martin >> ______________________________________________ >> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité >> >> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene >> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte >> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht >> dient lediglich dem Austausch von Informationen und entfaltet keine >> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von >> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. >> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le >> destinataire prévu, nous te demandons avec bonté que pour satisfaire >> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie >> de ceci est interdite. Ce message sert à l'information seulement et n'aura >> pas n'importe quel effet légalement obligatoire. Étant donné que les email >> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter >> aucune responsabilité pour le contenu fourni. >> >> > From: [email protected] >> > Date: Mon, 2 Jan 2012 17:01:08 -0500 >> > Subject: Fatal error compiling: Prohibited package name: java.lang >> > To: [email protected] >> > >> > Hello, >> > >> > I am trying to build Hadoop (trunk) on a Mac via "mvn -e -X compile" on a >> > Mac/Snow Leopard. I am receiving the following error through: >> > >> > Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) >> > Maven home: /usr/share/maven >> > Java version: 1.6.0_29, vendor: Apple Inc. >> > Java home: >> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home >> > Default locale: en_US, platform encoding: MacRoman >> > OS name: "mac os x", version: "10.6.8", arch: "x86_64", family: "mac" >> > [INFO] Error stacktraces are turned on. >> > >> > ... >> > >> > [INFO] Compiling 8 source files to >> > >> /data/hadoop-trunk/hadoop-common-project/hadoop-annotations/target/classes >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] BUILD FAILURE >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: 1.379s >> > [INFO] Finished at: Mon Jan 02 16:43:22 EST 2012 >> > [INFO] Final Memory: 4M/81M >> > [INFO] >> > ------------------------------------------------------------------------ >> > [ERROR] Failed to execute goal >> > org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile >> > (default-compile) on project hadoop-annotations: Fatal error compiling: >> > Prohibited package name: java.lang -> [Help 1] >> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute >> > goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile >> > (default-compile) on project hadoop-annotations: Fatal error compiling >> > at >> > >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) >> > at >> > >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) >> > at >> > >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) >> > .... >> > >> > Prior to this error message, Maven displays the command and args that are >> > executed. If I copy those and run it from the command line it works. I >> > have seen websites describing what the error means in general, but I have >> > not been able to figure out why Maven fails but the command line works. >> If >> > I echo $JAVA_HOME it is unset on the command line. If I set it to the >> > something else, it is not changed in the Maven output. >> > >> > Any pointers? >> > >> > Kindest regards. >> > >> > Ron >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
