本文演示了Eclipse安装Maven插件Maven Integration for Eclipse(m2e)的方法:
运行环境:m2e 1.4.0, Maven 3.0.5, Eclipse Indigo 安装配置Maven的clipse插件
> Help -> Eclipse Marketplace -> 搜索maven -> 选择Maven Integration for Eclipse -> Install
安装过程中会报异常
Cannot complete the install because one or more required items could not be found. Software being installed: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317) Missing requirement: Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.core.ui 1.4.0.20130601-0317) requires 'bundle org.slf4j.api 1.6.2' but it could not be found Cannot satisfy dependency: From: m2e logback appender 1.4.0.20130601-0317 (org.eclipse.m2e.logback.appender 1.4.0.20130601-0317) To: bundle org.eclipse.m2e.core.ui [1.4.0,1.5.0) Cannot satisfy dependency: From: m2e - slf4j over logback logging (Optional) 1.4.0.20130601-0317 (org.eclipse.m2e.logback.feature.feature.group 1.4.0.20130601-0317) To: org.eclipse.m2e.logback.appender [1.4.0.20130601-0317]