当我尝试构建我的项目时,我收到以下错误:
BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.435s
[INFO] Finished at: Wed Jun 13 17:25:47 GMT+05:30 2012
[INFO] Final Memory: 10M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project DPCommons: Compilation failure: Compilation failure:
C:\MyEclipseWorkspace\Workspace_MayMU24\DPCommons\src\com\afunds\lang\ResourceClassLoader.java:[13,15] sun.misc.Resource is Sun proprietary API and may be removed in a future release
项目名称将显示在下面。
我该如何克服这个问题。
最佳答案
执行以下步骤来解决该问题:
Window -> Preferences -> Java -> installed JREs -> I have a JRE from the JDK location, my location looks like C:\Program Files\Java\jdk1.6.0_26
Window -> Preferences -> Java -> installed JREs -> Execution Enviroments -> Select JavaSE-1.6 and select a compatible JRE which should be the one set in the previous step.
看看这个链接 -
Maven in Eclipse complains that "Unable to locate the Javac Compiler" whenever POM changed
关于java - Maven 构建失败 - MyEclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11014487/