在 Ubuntu 的 eclipse 3.8 中安装 maven [英] Install maven in eclipse 3.8 in Ubuntu

查看:97
本文介绍了在 Ubuntu 的 eclipse 3.8 中安装 maven的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Ubuntu 中安装了默认"eclipse 3.8.我想在其上安装 Maven 支持.我愿意

1) 在 Eclipse 中,转到帮助->安装新软件"

2) 在打开的窗口中按右上角的添加"

3) 将名称文本框设置为Maven2Eclipse"

4) 将值文本框设置为

  1. [完成] => 一切安装正常

I have installed "default" eclipse 3.8 in Ubuntu. I would like to install Maven support on it. I do

1) In eclipse, go to "Help->Install New Software"

2) press "Add" in the upper right button in the opened window

3) set the name textbox to be "Maven2Eclipse"

4) set the value textbox to be http://download.eclipse.org/technology/m2e/releases

5) after press OK I got following error:

  Cannot satisfy dependency:
    From: Maven Integration for Eclipse JDT UI 1.5.1.20150109-1820 (org.eclipse.m2e.jdt.ui 1.5.1.20150109-1820)



    Cannot complete the install because one or more required items could not be found.
      Software being installed: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.1.20150109-1820 (org.eclipse.m2e.feature.feature.group 1.5.1.20150109-1820)
      Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
      Missing requirement: Maven Integration for Eclipse 1.5.1.20150109-1820 (org.eclipse.m2e.core 1.5.1.20150109-1820) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
      Missing requirement: Maven Integration for Eclipse 1.5.2.20150413-2215 (org.eclipse.m2e.core 1.5.2.20150413-2215) requires 'bundle org.slf4j.api 1.6.2' but it could not be found
      Cannot satisfy dependency:
        From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.1.20150109-1820 (org.eclipse.m2e.feature.feature.group 1.5.1.20150109-1820)
        To: org.eclipse.m2e.jdt.ui [1.5.1.20150109-1820]
      Cannot satisfy dependency:
        From: Maven Integration for Eclipse JDT UI 1.5.1.20150109-1820 (org.eclipse.m2e.jdt.ui 1.5.1.20150109-1820)
        To: bundle org.eclipse.m2e.core [1.5.0,1.6.0)

How to solve this problem?

解决方案

It sounds like it might be a version issue.

I've never had any problem installing Maven (or SVN, or any related plugins) ... but I don't happen to have a copy of Juno handy to double-check for you.

SUGGESTION:

  1. Make sure you're pointing to the Eclipse 3.8 (and only 3.8) repositories

  2. Try installing m2e with that repo

http://archive.eclipse.org/eclipse/downloads/drops/R-3.8.2-201301310800/

http://download.eclipse.org/releases/juno/

ADDENDUM:

Here's what I did on Luna, on CentOS Linux:

  1. Eclipse > Help > Install Software (not "Marketplace*)

  2. Work With > http://downloads.eclipse.org/releases/luna

  3. filter text > m2e, [ENTER]

  4. m2e Maven Integration = Y <= the package you want

    m2e sl4j = Y <= the dependency in your error

  1. [Finish] => everything installed OK

这篇关于在 Ubuntu 的 eclipse 3.8 中安装 maven的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆