Eclipse中的Maven:分步安装 [英] Maven in Eclipse: step by step installation
问题描述
我一直在 Maven 网站上阅读 5 分钟和 30 分钟的教程,并第一次试用 Maven.
我想安装一个 Maven 插件并使用它从 Eclipse 开始构建 Maven 项目.
尽管付出了真诚的努力,但我一直无法找到有关任何 Maven 插件的综合教程.M2E
似乎是事实上的标准,在其网站上只有断开的(或递归的)链接.
我不知道我是否正确安装了插件,或者如何使用它.
有谁知道 M2E
或任何其他插件的分步指南?一个带有良好的安装文档,以及对其功能和正确用法的详细解释的?
(Edit 2016-10-12: Many Eclipse downloads from https://eclipse.org/downloads/eclipse-packages/ 已经包含 M2Eclipse.从 Neon 开始,Java 和 Java EE 包都可以 - 寻找Maven 支持")>
方式一:Maven Eclipse插件安装步骤:
- 打开 Eclipse IDE
- 点击帮助 -> 安装新软件...
- 点击右上角的添加按钮
在弹出窗口中:将名称填写为M2Eclipse",将位置填写为http://download.eclipse.org/technology/m2e/releases"或者http://download.eclipse.org/technology/m2e/milestones/1.0
现在点击确定
安装后将开始.
方式二:另一种通过Eclipse Marketplace"为Eclipse安装Maven插件的方式:
- 打开 Eclipse
- 转到帮助 -> Eclipse Marketplace
- 通过 Maven 搜索
- 在Eclipse 的 Maven 集成"部分点击安装"按钮
- 按照说明逐步操作
安装成功后在Eclipse中进行如下操作:
- 转到窗口 --> 首选项
- 注意,Maven 被招募到左侧面板
最后,
- 点击现有项目
- 选择配置 -> 转换为 Maven 项目
I have spent been on the Maven site reading the 5- and 30-minute tutorials, and trialing Maven out for the first time.
I want to install a Maven plugin and use it to start building Maven projects from Eclipse.
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.
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?
(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")
Way 1: Maven Eclipse plugin installation step by step:
- Open Eclipse IDE
- Click Help -> Install New Software...
- Click Add button at top right corner
At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases" or http://download.eclipse.org/technology/m2e/milestones/1.0
Now click OK
After that installation would be started.
Way 2: Another way to install Maven plug-in for Eclipse by "Eclipse Marketplace":
- Open Eclipse
- Go to Help -> Eclipse Marketplace
- Search by Maven
- Click "Install" button at "Maven Integration for Eclipse" section
- Follow the instruction step by step
After successful installation do the followings in Eclipse:
- Go to Window --> Preferences
- Observe, Maven is enlisted at left panel
Finally,
- Click on an existing project
- Select Configure -> Convert to Maven Project
这篇关于Eclipse中的Maven:分步安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!