Eclipse Maven开发环境搭建

 

 

附件中有图,懒的上传图了

 

 

 

 

 

Eclipse Maven 开发环境搭建

 

一、eclipse 3.6.1 下载地址[eclipse-jee-helios-SR1-win32.zip]
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliossr1

二、插件地址
1
gef 插件地址:
http://download.eclipse.org/tools/gef/updates/interim/

实际测试发现eclipse 3.6.1 已经安装gef, 仅仅缺少zest 插件, 最小安装zestruntime 即可, 地址如下: http://www.eclipse.org/downloads/download.php?file=/tools/gef/downloads/drops/3.6.1/R201009132020/GEF-zest-3.6.1.zip ( 好像已经不能下了使用下图更新方式)

在没有安装 zest 插件的话 , 直接安装 m2eclipse 插件会报出缺少依赖的错误 ,

 

2subclipse 插件地址:
http://subclipse.tigris.org/update_1.6.x

实际测试subclipse 不安装也是可以的.

3maven2 插件地址:
m2eclipse-core Update Site: http://m2eclipse.sonatype.org/sites/m2e
m2eclipse-extras Update Site: http://m2eclipse.sonatype.org/sites/m2e-extras

注意 :必须两个插件都安装,不安装extras 插件时,点击“run as server” 来运行项目时会报错:“the selected did not contain any resources that can run on server maven project”

三、安装时出现问题:
直接在线安装maven2 会出现依赖插件找不到的问题,无法安装。必须先安装gef 插件后才能安装m2eclipse-core 插件,然而安装m2eclipse-extras 插件又依赖subclipse 插件。所以,三个插件的正确的安装顺序是:gef 插件 》subclipse 插件 》m2eclipse 插件。
m2eclipse-core
插件 —— 依赖——gef 插件
m2eclipse-extras
插件 —— 依赖——subclipse 插件

安装完成后,启动eclipse, 你将还会看到如下提示:

安装m2eclipse 插件后,重启Eclipse 老是提示:

Eclipse is running in a JRE, but a JDK is required

Some Maven plugins may not work when importing projects or updating source folders.

-vm 配置项必须在 –vmargs 配置项前,是因为执行到-vmargs 配置项已经选择了一个默认的JVM 了。

所以在–vmargs 前面加上这一句:

-vm
D:/Java/jdk1.6.0_10/bin/javaw.exe

ok, 一切完好。

 

. 远程DEBUG

MAVEN_OPTS:-Xdebug -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n

看到下面这样说明Debug 端口启用成功:

 

五 安装Aptana 前端开发插件

Aptana Update Site

This site is designed to be used though the Eclipse or Aptana update manager.

Installing this Plugin via Aptana or Eclipse

1.  From the Help menu, select Install New Software... to open an Install pop-up window.

2.  In the Work with: text box of the Install window, type the URL http://update15.aptana.org/studio/26124/ for the update site, and hit the Enter key.

3.  In the populated table below, check the box next to the name of the plug-in, and click the Next button.

4.  Click the Next button to go to the license page.

5.  Choose the option to accept the terms of the license agreement, and click the Finish button.

Manual Installation

Download Plugin Update Site

1.  Save the above file to an easy-to-find location.

2.  Open Eclipse distribution, and go to Help -> Install New Software....

3.  Click the Add... button to open the Add Site window.

4.  Click the Archive... button, and select the file saved in step 1.

5.  Select the appropriate plugins to install, and click Next -> Next.

6.  Click the Finish button.

 

 

六,安装HTML 插件 tk.eclipse.plugin.htmleditor_2.0.6.1.jar

下载: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor

简介:Eclipse HTML Editor is an Eclipse plugin for HTML/JSP/XML Editing. It works on Eclipse 3.0 (or higher), JDT and GEF . It has following features.

  • HTML/JSP/XML/CSS/DTD/JavaScript Hilighting
  • HTML/JSP Preview
  • JSP/XML Validation
  • Contents Assist (HTML Tags/Attributes, XML based on DTD and JSP taglib and more)
  • Wizards for creating HTML/JSP/XML files
  • Outline View
  • Editor Preferences
  • Editor Folding
  • Web Browser (It works as an Eclipse's editor)
  • Image Viewer
  • Tag Palette
  • CSS code completion and outline
  • DTD code completion, outline and validation
  • JavaScript code completion, outline and validation

解压缩 tk.eclipse.plugin.htmleditor_2.0.6.1.jar 目录拷贝至 plugins 目录下即可

 

 

                                                                  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值