Tag: m2eclipse

每当POM改变时,Eclipse中的Maven就会抱怨“无法找到Javac编译器”

每次我在eclipse中更改我的pom.xml时都会收到错误消息。 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 […]

如何解决maven 2.6资源插件依赖?

错误: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 解决方案: 更新的项目:无法从maven的REPO下载。 尝试将特定jar放在.m2 repo的文件夹中。 如果需要,可以提供参考。

“分面项目问题(Java版本不匹配)”错误消息

Eclipse的“问题”选项卡显示此错误: 描述:Java编译器级别与已安装的Java项目方面的版本不匹配。 资源:灌浆 路径:[空白] 位置:未知 类型:分面项目问题(Java版本不匹配) 我的pom.xml有这个设置: org.apache.maven.plugins maven-compiler-plugin 1.6 1.6 哪些设置可能不匹配?