安装m2eclipse报错的信息及解决方案

时间:2024-04-07 09:02:42

今天在安装eclipse Maven插件(m2eclipse)的时候报如下错误:

 

Cannot complete the install because one or more required items could not be found.

  Software being installed: m2e connector for build-helper-maven-plugin 0.15.0.201207090124 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201207090124)

  Missing requirement: Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found

  Missing requirement: Maven Integration for Eclipse 1.4.1.20140328-1905 (org.eclipse.m2e.core 1.4.1.20140328-1905) requires 'bundle org.slf4j.api 1.6.2' but it could not be found

  Cannot satisfy dependency:

    From: m2e connector for build-helper-maven-plugin 0.15.0.201207090124 (org.sonatype.m2e.buildhelper 0.15.0.201207090124)

    To: bundle org.eclipse.m2e.core [1.1.0,2.0.0)

  Cannot satisfy dependency:

    From: m2e connector for build-helper-maven-plugin 0.15.0.201207090124 (org.sonatype.m2e.buildhelper.feature.feature.group 0.15.0.201207090124)

    To: org.sonatype.m2e.buildhelper [0.15.0.201207090124]

 

解决方案:

根据以上错误信息很容易知道是由于eclipse的org.slf4j.api_X.X.X.jar版本过低导致的,查看home(eclipse的安装目录)/plugins目录发现此jar的版本为1.6.1,果断换成高版本后问题解决。安装m2eclipse报错的信息及解决方案