每次我在Eclipse改变了我的pom.xml的时间遇到错误消息。Maven的Eclipse中抱怨说,“无法找到javac编译”每当POM改变
Build errors for myapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project web: Compilation failure
Unable to locate the Javac Compiler in:
C:\Program Files (x86)\Java\jre6\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable
我设置了JAVA_HOME环境变量。它是:JAVA_HOME = d:\的Java \ jdk1.6.0_23
感谢。
我有同样的问题,我不能解决这个问题,你可以看看http://stackoverflow.com/questions/12049566/an-internal-error-occurred-during-enabling-maven-dependency- management-unsup – 2012-08-21 07:18:38