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