Eclipse 中的 Maven:分步安装
我已经在 Maven 网站上阅读了 5 分钟和 30 分钟的教程,并第一次试用了 Maven.
I have spent been on the Maven site reading the 5- and 30-minute tutorials, and trialing Maven out for the first time.
我想安装一个 Maven 插件并使用它从 Eclipse 开始构建 Maven 项目.
I want to install a Maven plugin and use it to start building Maven projects from Eclipse.
尽管付出了诚实的努力,但我还是找不到任何 Maven 插件的综合教程.M2E
,这似乎是事实上的标准,在他们的网站上只有损坏的(或递归的)链接.
Despite an honest effort, I have been unable to find a comprehensive tutorial on any Maven plugin. M2E
, which seems like the de facto standard, has nothing but broken (or recursive) links on their site.
我什至不知道我是否正确安装了插件,或者如何使用它.
I can't tell if I even installed the plugin correctly, or how to use it.
有人知道M2E
或任何其他插件的良好分步指南吗?一个附带良好的安装文档,以及对其功能和正确用途的可靠解释?
Does anyone know of a good step-by-step guide to M2E
or any other plugin? One that comes with good installation documentation, along with a solid explanation of its features and proper uses?
推荐答案
(2016-10-12 许多 Eclipse 从 https://eclipse.org/downloads/eclipse-packages/ 已经包含 M2Eclipse.从 Neon 开始,Java 和 Java EE 包都可以 - 寻找Maven 支持")
(Edit 2016-10-12: Many Eclipse downloads from https://eclipse.org/downloads/eclipse-packages/ have M2Eclipse included already. As of Neon both the Java and the Java EE packages do - look for "Maven support")
方式一: Maven Eclipse插件安装分步:
Way 1: Maven Eclipse plugin installation step by step:
- 打开 Eclipse IDE
- 点击帮助 -> 安装新软件...
- 点击右上角的添加按钮
在弹出窗口中:将名称填写为M2Eclipse",将位置填写为http://download.eclipse.org/technology/m2e/releases"或者http://download.eclipse.org/technology/m2e/milestones/1.0
现在点击确定
之后将开始安装.
方式二:通过Eclipse Marketplace"为Eclipse安装Maven插件的另一种方式:
Way 2: Another way to install Maven plug-in for Eclipse by "Eclipse Marketplace":
- 打开 Eclipse
- 转到帮助 -> Eclipse 市场
- 按 Maven 搜索
- 点击Maven Integration for Eclipse"部分的安装"按钮
- 按照说明一步一步来
安装成功后在Eclipse中进行如下操作:
After successful installation do the followings in Eclipse:
- 转到窗口 --> 首选项
- 注意,Maven 已在左侧面板中入伍
最后,
- 点击现有项目
- 选择配置 -> 转换为 Maven 项目
相关文章