Maven Book(en) - http://www.sonatype.com/books/m2eclipse-book/reference/index.html
1). Installing m2eclipse Core Components
To install m2eclipse, use the following Eclipse update site to install the core of the m2eclipse plugin. This Core update site contains a single component: "Maven Integration for Eclipse (Required)". When you install this component you will be installing all of the core Wizards, the POM Editor, Maven Repository integration, and Maven integration:
m2eclipse Plugin: http://m2eclipse.sonatype.org/sites/m2e
To install this plugin in the Eclipse IDE:
Select Help > Install New Software. This should display the "Install" dialog.
Paste the Update Site URL into the field named "Work with:" and press Enter. Pressing Enter should cause Eclipse to update list of available plugins and components.
Choose the component listed under m2eclipse: "Maven Integration for Eclipse (Required)".
Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
Click Next and agree to the terms of the Eclipse Public License v1.0.
Click Finish to begin the installation process.
Eclipse will then download and install the necessary components. Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. Sonatype strongly recommends that you restart your IDE after installing m2eclipse.
Warning
You cannot upgrade from m2eclipse 0.9.8 or m2eclipse 0.9.9 to m2eclipse 0.10.0. If you are running m2eclipse 0.9.8 or 0.9.9 you must either uninstall m2eclipse from your Eclipse installation or start with a fresh installation of Eclipse.
If you've installed the plugin successfully, you should see a Maven option in the list of preference categories when you go to Window, Preferences....
2).Installing m2eclipse Extras
In addition to the core m2eclipse components, the following optional components are available from a separate update site. If you plan to use m2eclipse to materialize projects from Subversion or CVS, integrate Maven with the Eclipse Web Tools Project (WTP), or use the m2eclipse Mylyn integration you will need to install the following, extra components:
Maven SCM Integration
Maven SCM handler for Team/CVS
Maven SCM handler for Subclipse
Maven issue tracking configurator for Mylyn 3.x
Maven Integration for WTP
M2Eclipse Extensions Development Support
To install optional m2eclipse components, use the m2eclipse Extras update site. This update site contains the following m2eclipse components:
m2eclipse Extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras
3). Installing Optional Prerequisites
Several of the extra components listed in the previous section require third-party plugins to be installed prior to installation. You can install these prerequisites when you install m2eclipse, just add a new remote update site to Eclipse for each of the prerequisite components.
To install these prerequisites, select Help, Install New Software... which will load the "Software Updates and Add-ons" dialog. In this dialog, choose the Available Software panel and click on Add Site... which will load the simple "Add Site" dialog. Enter the URL of the update site you wish to add and click OK. In the "Software Updates and Add-ons" dialog, the available plugins from an update site will appear as soon as the site is added. You can then select the modules you want to install and click the Install... button. Eclipse will then resolve all the dependencies for the selected plugins, and ask you to agree to the plugin license. After Eclipse installs new plugins, you should restart the IDE.
3.1).Installing Subclipse
When you install Subclipse, you will need to make a decision about Subversion compatibility. If you are using Subversion 1.5.x client features, you will need to install Subclipse version 1.4. If you are using Subversion 1.6.x client features, you will need to install Subclipse version 1.6.
To install Subclipse, use one of the Eclipse plugin update sites listed below.
Subclipse 1.4 (for Subversion 1.5 compatibility): http://subclipse.tigris.org/update_1.4.x
Subclipse 1.6 (for Subversion 1.6 compatibility): http://subclipse.tigris.org/update_1.6.x
For other versions of Subclipse, and for more information about the Subclipse plugin, please see the Subclipse project's web site at http://subclipse.tigris.org/.
3.2).Installing Mylyn
To install JIRA or Trac integration with Mylyn, add the Mylyn extras Eclipse update URL, you'll want to do this if your organization uses Atlassian's JIRA for issue tracking. To install Mylyn use the following update sites:
Mylyn (Eclipse 3.4, 3.5, and 3.6M4): http://download.eclipse.org/tools/mylyn/update/e3.4
Mylyn Extras (JIRA and Trac Support): http://download.eclipse.org/tools/mylyn/update/extras
For more information about the Mylyn project, see the Mylyn project's web site at http://www.eclipse.org/mylyn/.
3.3). Installing the Web Tools Platform (WTP)
To install the Web Tools Platform (WTP). Install the "Eclipse IDE for Java EE Developers" from http://www.eclipse.org/downloads/, or download a WTP release from http://download.eclipse.org/webtools/downloads/.
For more information about the Web Tools Platform, see the Web Tools Platform project's web site at http://www.eclipse.org/webtools/.
4).设置maven路径变量(可选,如果Eclipse中没有这个环境变量则配置)
在eclipse中设置maven路径变量,让eclipse知道Maven 2的repository(仓库)的路径,因此要设置一个M2_REPO的变量为classpath。
1.使用命令行的方式来设置:
mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
2.在eclipse中定义一个新的classpath变量通过在eclipse的菜单上选择Window> Preferences. 选择Java > Build Path > Classpath Variables
M2_REPO=C:/Documents and
Settings/${username}/.m2/repository
分享到:
相关推荐
**eclipse-maven3-plugin** 是一个专门为 Eclipse IDE 设计的插件,它允许开发者在 Eclipse 开发环境中无缝集成 Maven 构建工具。Maven 是一个项目管理和综合工具,广泛用于 Java 应用程序的构建、依赖管理和项目...
Eclipse Maven3 插件,通常被称为 m2e(Maven Integration for Eclipse),是Eclipse IDE中的一个核心组件,用于支持Maven构建工具的集成。这个插件使得开发者能够在Eclipse环境中无缝地管理Maven项目,包括构建、...
Eclipse Maven3 Plugin,也称为 M2E(Maven Integration for Eclipse),是将 Maven 功能集成到 Eclipse IDE 中的插件,使得开发者在 Eclipse 环境下可以直接使用 Maven 的功能。 1. **集成开发环境中的Maven支持**...
Eclipse Maven3 Plugin,通常称为M2E(Maven Integration for Eclipse),是Eclipse IDE的一个插件,用于集成Maven到开发环境中。它使得开发者可以在Eclipse内直接运行Maven命令,如构建、清理、测试等,无需离开IDE...
【标题】"eclipse-maven3-plugin.rar"指的是Eclipse集成开发环境与Maven 3.0.4版本...通过将Maven 3.0.4插件集成到Eclipse中,开发者可以享受到无缝的开发体验,利用Maven的强大功能,同时保持在熟悉的IDE环境中工作。
Eclipse Maven3 Plugin是Eclipse集成开发环境中的一个插件,用于支持Maven项目管理和构建。这个插件使得开发者在Eclipse内部就能方便地管理Maven依赖、执行Maven生命周期阶段以及配置Maven项目,无需离开IDE。在描述...
Maven-Eclipse插件则是将Maven的功能集成到Eclipse IDE中,使得开发者在Eclipse环境下可以直接进行Maven项目的操作,无需离开IDE。这款最新的maven-eclipse插件版本为1.8.0.20170329-2112,它包含了多项优化和改进,...
Maven Eclipse Plugin是Apache Maven项目的一部分,它主要负责将Maven构建过程与Eclipse IDE集成,使得开发人员能够在Eclipse环境中方便地管理Java项目的依赖、构建以及生命周期。这个插件极大地简化了在Eclipse中...
Eclipse 是一个非常流行的集成开发环境(IDE),广泛用于 Java 开发。将 Maven 与 Eclipse 结合使用可以进一步提高开发效率和项目质量。 - **安装和配置**: - **Java 安装**:首先需要安装 Java 开发工具包(JDK...
m2eclipse 是一个针对 Eclipse IDE 的 Maven 插件,它允许用户在 Eclipse 环境下无缝地管理和构建 Maven 项目。m2eclipse 提供了诸如自动配置项目、依赖管理、生命周期映射等功能,使得开发者无需离开 Eclipse 就能...
Maven Eclipse Plugin是一款集成在Eclipse IDE中的插件,它使得开发者能够在Eclipse环境中方便地管理基于Maven构建的项目。Maven是一个强大的项目管理和依赖管理工具,它通过定义项目的元数据来管理构建过程、依赖...
在开发Web应用程序时,结合Eclipse集成开发环境(IDE)和Tomcat服务器,我们可以实现项目的快速构建和热部署,提高开发效率。 1. **Maven Web 项目创建** Maven 提供了多种 archetype(模板)来创建不同类型的项目...
Liferay IDE Eclipse插件是专为开发者设计的一款强大的工具,旨在提升在Eclipse集成开发环境中的Liferay Portal项目开发效率。这款插件提供了丰富的特性,使得开发者能够在Eclipse内无缝地进行Liferay相关的代码调试...
Eclipse 是一个流行的Java IDE,集成 Maven 可以极大地提高开发者的生产力。以下是使用 "link" 方式离线集成 Maven 3.x 到 Eclipse 的步骤: 1. **下载 Maven**:首先,你需要从 Apache Maven 官网下载 Maven 3.1.1...
这个插件是针对Hadoop 2.6.0版本设计的,主要目标是集成Eclipse IDE,使得开发者可以在本地环境中便捷地创建、调试和管理Hadoop MapReduce项目。 一、插件功能详解 1. **项目创建与导入**:通过Hadoop Eclipse插件...
除了基本的MapReduce开发,Hadoop Eclipse Plugin还可以与其他插件结合,例如使用m2eclipse(Maven Eclipse Integration)来管理依赖,或者与Pig、Hive等大数据工具集成,实现更复杂的数据分析任务。 总结来说,...
1. **Maven集成Eclipse**:Maven是一个强大的项目管理和构建工具,能够管理项目的依赖、构建过程和生命周期。Eclipse是流行的Java IDE,通过集成Maven,开发者可以在Eclipse中直接进行Maven项目的管理和构建,无需...