No repository found at http://m2eclipse.sonatyp...

本文提供了解决Eclipse安装Maven插件时遇到的常见问题的方法,包括使用不同地址安装插件、解决依赖冲突以及更新插件版本等步骤。

eclipse安装maven插件的问题

  1. 安装插件出现No repository found at http://m2eclipse.sonatype.org/sites/m2e错误

        后来用如下地址安装成功:

        http://download.eclipse.org/technology/m2e/releases

   2.  如果 你在安装的时候报如下错误:

         Cannot complete the install because one or more required items could not be found.
  Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
  Missing requirement: async-http-client 1.6.5.20130531-2315 (com.ning.async-http-client 1.6.5.20130531-2315) requires 'package org.slf4j 1.6.2' but it could not be found
  Cannot satisfy dependency:
    From: Maven Archetype Common Bundle 1.4.0.20130531-2315 (org.eclipse.m2e.archetype.common 1.4.0.20130531-2315)
    To: bundle org.eclipse.m2e.maven.runtime [1.4.0,1.5.0)
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
    To: org.eclipse.m2e.archetype.common [1.4.0.20130531-2315]
  Cannot satisfy dependency:
    From: Embedded Maven Runtime Bundle 1.4.0.20130531-2315 (org.eclipse.m2e.maven.runtime 1.4.0.20130531-2315)
    To: bundle com.ning.async-http-client [1.6.5,1.6.6)

说明它缺少 slf4j 的依赖

点击installing software 输入 http://www.fuin.org/p2-repository/

点开 "Maven osgi-bundles" 

然后选择 "slf4j-api" 安装

再执行第一步操作

3. 如果你在安装的时候出现如下错误:

   Cannot complete the install because of a conflicting dependency.
  Software being installed: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
  Software currently installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
  Only one of the following can be installed at once: 
    This version of m2eclipse cannot be installed on top of the already installed m2eclipse. Uninstall the previous version of m2eclipse and try the install again. 1.4.0.20130601-0317 (org.maven.ide.eclipse 1.4.0.20130601-0317)
    Maven Integration for Eclipse 0.12.1.20110112-1712 (org.maven.ide.eclipse 0.12.1.20110112-1712)
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse 1.4.0.20130601-0317 (org.eclipse.m2e.feature.feature.group 1.4.0.20130601-0317)
    To: bundle org.maven.ide.eclipse [1.4.0.20130601-0317]
  Cannot satisfy dependency:
    From: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
    To: org.maven.ide.eclipse [0.12.1.20110112-1712]

说明你的插件版本过高,需要依赖的包此eclipse暂时没有,所以你可以下载如下版本,前提是你要卸载之前的版本

http://download.eclipse.org/technology/m2e/releases/1.3


转载于:https://my.oschina.net/u/942651/blog/142638

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值