您的位置:首页 > 编程语言 > Java开发

第五章Maven与Eclipse整合

2014-07-03 22:40 405 查看
第一步:下载eclipse版本,到http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr2,下载对应的版本。然后解压。

第二步:安装eclipse的maven插件m2eclipse,上官网http://m2eclipse.sonatype.org/installing-m2eclipse.html

上面介绍了两种安装方法的。

第一种方法过程如下:

1.选择help菜单> Install New Software.然后弹出安装的对话框;

2。复制http://m2eclipse.sonatype.org/sites/m2e到名为“Work with”的输入框,然后回车

3.点击下一步,就可以安装了,然后点击next,勾选同意Licence,安装,最后重启eclipse。

第二种安装方法也是m2eclipse上图文介绍很详细的,具体看http://www.sonatype.com/books/m2eclipse-book/reference/install-sect-marketplace.html

第三种安装方法

具体步骤是这样的,

获得zest,m2e和m2e-extras三件文件夹。

进入到eclipse中的dropins目录下,新建三个txt文件(zest.txt,m2e.txt,m2e-extras.txt)。其中每个文件内容如下:

  path=E:/personal/maven/install/GEF-zest-3.7.1

  3.重新启动eclipse,点击windowsàpreferences.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: