Java 在 eclipse juno 中安装 maven 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25454374/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 00:26:43  来源:igfitidea点击:

Install maven plugin in eclipse juno

javaeclipsemaven

提问by user1632980

I am trying to install maven 1.5 in eclipse unfortunately I am getting errors like:

我正在尝试在 eclipse 中安装 maven 1.5 不幸的是我收到如下错误:

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.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
  Missing requirement: Maven Integration for Eclipse 1.5.0.20140606-0033 (org.eclipse.m2e.core 1.5.0.20140606-0033) requires 'bundle com.google.guava [14.0.1,16.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: m2e - Maven Integration for Eclipse (includes Incubating components) 1.5.0.20140606-0033 (org.eclipse.m2e.feature.feature.group 1.5.0.20140606-0033)
    To: org.eclipse.m2e.core [1.5.0.20140606-0033]

回答by user17

Uncheck the option "Select only the latest version of this software", so that versions of the plugin compatible to your eclipse will be displayed, you can select one of them.

取消选中“仅选择此软件的最新版本”选项,以便显示与您的 eclipse 兼容的插件版本,您可以选择其中之一。

回答by Krishnamoorthy

EClipse juno doesnt support maven 1.5..still they have not added capability of 1.5

EClipse juno 不支持 maven 1.5..仍然没有添加 1.5 的功能

so try 1.4 or 1.3

所以试试 1.4 或 1.3

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

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

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

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

MAVEN INSTALLATION

Maven 安装

OPTION 1 :

选项1 :

  1. Open Eclipse IDE
  2. Click Help -> Install New Software...
  3. Click Add button at top right corner
  4. At pop up: fill up Name as "M2Eclipse" and Location as http://download.eclipse.org/technology/m2e/releases/1.4
  5. Now click OK After that installation would be started.
  1. 打开 Eclipse IDE
  2. 单击帮助 -> 安装新软件...
  3. 点击右上角的添加按钮
  4. 在弹出窗口:填写名称为“M2Eclipse”和位置为 http://download.eclipse.org/technology/m2e/releases/1.4
  5. 现在点击 OK 之后安装将开始。

OPTION 2 :-

选项 2 :-

  1. Open Eclipse
  2. Go to Help -> Eclipse Marketplace
  3. Search by Maven
  4. Click "Install" button at "Maven Integration for Eclipse" section
  5. Follow the instruction step by step
  1. 打开日食
  2. 转到帮助 -> Eclipse Marketplace
  3. 按 Maven 搜索
  4. 单击“Eclipse 的 Maven 集成”部分的“安装”按钮
  5. 按照说明一步一步来

After successful installation do the followings in Eclipse:

安装成功后,在 Eclipse 中执行以下操作:

  1. Go to Window --> Preferences
  2. Observe, Maven is enlisted at left panel
  1. 转到窗口 --> 首选项
  2. 观察,Maven 在左侧面板上登记

Finally,

最后,

  1. Click on an existing project
  2. Select Configure -> Convert to Maven Project
  1. 单击现有项目
  2. 选择配置 -> 转换为 Maven 项目

回答by rajeesh

This is because maven 1.5 is not compatible with eclipse juno. So we need to use maven 1.4 or 1.3

这是因为 maven 1.5 与 eclipse juno 不兼容。所以我们需要使用maven 1.4或者1.3

Steps to install maven 1.4 is below

安装 maven 1.4 的步骤如下

  1. Click Help in eclipse
  2. Install New Software
  3. Url for the location of site is "http://download.eclipse.org/technology/m2e/releases"
  4. Uncheck the checkbox "Show only the latest versions of available software" if do not uncheck the checkbox it will only latest version and do not show maven 1.4.
  5. Select m2e and slf4j of 1.4 version and click next.
  1. 点击eclipse中的帮助
  2. 安装新软件
  3. 站点位置的 URL 是“ http://download.eclipse.org/technology/m2e/releases
  4. 取消选中“仅显示可用软件的最新版本”复选框,如果不取消选中该复选框,它将仅显示最新版本而不显示 maven 1.4。
  5. 选择1.4版本的m2e和slf4j,点击下一步。

Note:maven v 1.3 is compatible, correct url for juno: download.eclipse.org/technology/m2e/releases/1.3

注意:maven v 1.3 是兼容的,juno 的正确 url:download.eclipse.org/technology/m2e/releases/1.3

回答by Do Nhu Vy

Choose menu Help \ Install New Software..., then add this repository link:

选择 menu Help \ Install New Software...,然后添加此存储库链接:

http://download.eclipse.org/technology/m2e/releases/1.2/1.2.0.20120903-1050/

http://download.eclipse.org/technology/m2e/releases/1.2/1.2.0.20120903-1050/

Then install for Eclipse WTP (Web Tool Platform) Juno 4.2.

然后安装 Eclipse WTP(Web 工具平台)Juno 4.2。

回答by user3660757

download.eclipse.org/technology/m2e/releases/1.3has worked for Eclipse Java EE IDE for Web Developers.

download.eclipse.org/technology/m2e/releases/1.3曾在 Eclipse Java EE IDE for Web Developers 工作。

Version: Indigo Service Release 2 Build id: 20120216-1857

版本:Indigo Service Release 2 版本号:20120216-1857

Thanks

谢谢

回答by Rafee Mohammad

If all the above options don't work, then first install the WST plugin in your eclipse.

如果以上所有选项都不起作用,那么首先在你的 eclipse 中安装 WST 插件。

In order to do that, in Eclipse Juno, go to Install New Software > Add, under Nameplace Junoand under Location URLinsert http://download.eclipse.org/releases/juno.

为此,在 Eclipse Juno 中,转到Install New Software > Add、在NameplaceJunoLocation URLinsert下http://download.eclipse.org/releases/juno

Then, select WST Server Adaptersunder Web, XML, Java, ...(last option of the list).

然后,WST Server AdaptersWeb, XML, Java, ...(列表的最后一个选项)下选择。

Accept licensing agreement and restart Eclipse.

接受许可协议并重新启动 Eclipse。

Then resume the usual procedure to install Maven.

然后继续安装 Maven 的通常过程。