简体   繁体   English

M2E Maven插件:导入Maven项目在Eclipse JUNO中引发错误

[英]M2E Maven Plugin: Importing Maven project is throwing error in Eclipse JUNO

I have an existing project in maven which is working fine in other remote env which i dont have any access, I dont know what is the issue in my env, the same project is working in other remote env. 我在maven中有一个现有项目,该项目在其他远程环境中都可以正常工作,但我没有任何访问权限,我不知道我的环境中有什么问题,同一项目在其他远程环境中也可以工作。

My Env Details are:- 我的环境详细信息是:-

Java1.7 Tomcat7.x Eclipse Juno,Build id: 20120614-1722 Plugin Details: M2E - Maven Integration for Eclipse Java1.7 Tomcat7.x Eclipse Juno,内部版本号:20120614-1722插件详细信息:M2E-Maven Integration for Eclipse

The below error is coming while importing the project and after selecting pom.xml. 导入项目时以及选择pom.xml之后,将出现以下错误。

No marketplace entries found to handle maven-compiler-plugin:2.0.2:compile in Eclipse 在Eclipse中找不到可处理maven-compiler-plugin:2.0.2:compile的市场条目

在此处输入图片说明

转到窗口>首选项> Maven安装,然后停用嵌入式并添加您自己的安装。

I would check: 我会检查:

  • That Eclipse Maven build settings are using a JDK and not a JRE Eclipse Maven构建设置使用的是JDK而不是JRE
  • Check the actual compiler settings in the POM. 检查POM中的实际编译器设置。 Maybe the source and target should be explicitly set to 1.7. 也许应该将源和目标显式设置为1.7。

It's also worth checking if this runs properly with mvn from the command line to rule out whether it is truly a Maven or IDE issue. 同样值得在命令行上使用mvn正常运行以排除它是否确实是Maven或IDE问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM