一、卸载原有maven插件

MyEclipse 6.5集成了Maven插件,不过有不少bug,用习惯了m2eclipse,不想在这上面浪费时间。要安装m2eclipse,需要先把自带的maven插件卸载掉,卸载步骤如下:
1.删除/eclipse/features/com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806目录
2.进入plugins目录,删除以下目录及jar包

 1 com.genuitec.myeclipse.maven_6.5.1.zmyeclipse650200806
 2 org.maven.ide.components.archetype_common_2.0.0.20080331-1600
 3 org.maven.ide.components.maven_embedder_2.1.0.20080410-2200
 4 org.maven.ide.components.maven_model_edit_1.0.0.20080331-1600
 5 org.maven.ide.components.maven_scm_1.0.0.20080410-2200
 6 org.maven.ide.components.nexus_indexer_1.0.0.20080331-1600
 7 org.maven.ide.components.qname_1.0.0.20080331-1600
 8 com.genuitec.eclipse.maven_6.5.1.zmyeclipse650200806.jar
 9 org.maven.ide.eclipse.central_0.9.1.zmyeclipse650200806.jar 
10 org.maven.ide.eclipse.scm_0.9.2.zmyeclipse650200806.jar
11 org.maven.ide.eclipse_0.9.3.zmyeclipse650200806.jar

二、在线安装m2eclipse

1.Help -> Find and Install ->Search for new features to install->New Remote Site

1 name:m2eclipse
2 url:http://m2eclipse.sonatype.org/sites/m2e/0.10.0.20100209-0800/

2.点击Finish,开始自动搜索。这个链接之前是好用的,不过今天再下载总是提示错误,直接访问也提示内容找不到,看来是挪地方了。最后在官网找到这个帖子Where did http://m2eclipse.sonatype.org/sites/m2e go?根据提示找到了最新地址http://repository.sonatype.org/content/sites/forge-sites/m2e/
帖子内容

As of June 2013, that site has been shut down because M2Eclipse was moved to the Eclipse Foundation years ago.

You can access the archived M2Eclipse sites (including 0.12) here:

https://repository.sonatype.org/content/sites/forge-sites/m2e/

For more information on how to access current m2e releases, see http://eclipse.org/m2e/download/.

所以上面的地址变成了这样

1 name:m2eclipse
2 url:http://repository.sonatype.org/content/sites/forge-sites/m2e/0.10.0/S/20100209-0800/

再安装就没有问题了。

3.设置maven

Window->preferences,搜索maven,User Settings中选择本地maven配置文件,Update Settings->Apply->OK

三、问题

重启MyEclipse后,跳出异常

1 Eclipse is running in a JRE, but a JDK is required
2 Some Maven plugins may not work when importing projects or updating source folders.

具体的解决方案见这个链接http://www.blogjava.net/itvincent/archive/2010/07/25/327101.html

安装Maven后提示找不到JDK的错误 。The Maven Integration requires that Eclipse be running in a JDK

在eclipse中安装了m2eclipse(maven插件)

在安装后,出现下列警告:

The Maven Integration requires that Eclipse be running in a JDK, because a number of Maven core plugins are using jars from the JDK.

Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs.

解决:

(1)设置系统安装的JDK目录set your JDK as a default Java environment in eclipse (default installed JRE)

Open eclipse. Click on ‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’.

If you can’t find any JDK on the list -> click ‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.

After that – check this JDK on the list of installed JREs and click ‘OK’.

(2)增加JDK路径到eclipse.ini文件中add path to your SDK in eclipse.ini

open ‘eclipse.ini’ and add there: -vm path_to_javaw_on_your_machine,so in my example it will be (jdk1.6.0_17 on Windows):-vm
D:\\Java\jdk1.6.0_13\jre\bin\javaw
不能有空格,否则要用~1代替,如: ‘Program Files’ is ‘Progra~1′. Notice 1: Do not use paths with spaces! Replace all dir names with spaces to their shortcuts. For example: ‘Program Files’ is ‘Progra~1′.
要分为2行写。Notice 2: ‘-vm’ is in the first line, path is in the second line

your ‘eclipse.ini’ looks like this:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
D:\Java\jdk1.6.0_13\jre\bin\javaw
-vmargs
-Xms40m
-Xmx256m
-vm要在-vmargs前面。Notice : ‘-vm’ must be  "-vmargs" above

重启eclipse。Restart eclipse and everything should be fine.

MyEclipse 6.5安装maven插件的更多相关文章

  1. Myeclipse安装Maven插件

    Myeclipse安装Maven插件 一.下载Maven 官网下载maven插件  http://maven.apache.org/download.cgi 下载apache-maven-3.6.3- ...

  2. MyEclipse使用总结——MyEclipse安装maven插件[转]

    打开 myeclipse, MyEclipse -->  Preferences -->Maven4MyEclipse 确定jdk是可用的 选择自己安装的maven: 点击Add选中我们的 ...

  3. maven课程 项目管理利器-maven 3-4 eclipse安装maven插件和新建maven项目

    本节主要讲了两个主要内容, 1       eclipse安装maven插件 2 新建maven项目 3 本人实操 1       eclipse安装maven插件 eclipse4.0以上和myec ...

  4. myeclipse2014下卸载,安装maven插件。

    转自:https://blog.csdn.net/gaoshang10/article/details/21177893 一.卸载方法: 点击Help->About Myeclipse Ente ...

  5. 【Maven】Eclipse安装Maven插件后导致Eclipse启动出错

    本文纯属复制粘贴:具体请参照原文: Eclipse安装Maven插件后,Eclipse启动问题:Maven Integration for Eclipse JDK Warning.  解决方法: 1. ...

  6. 总结eclipse中安装maven插件

    当自己越来越多的接触到开源项目时,发现大多数的开源项目都是用maven来够建的.并且在开发应用时,也越来越意识到maven的确会解决很多问题,如果你要了解maven,可以参考:Maven入门指南(一) ...

  7. Eclipse安装maven插件报错

    Eclipse安装maven插件,报错信息如下: Cannot complete the install because one or more required items could not be ...

  8. Eclipse中用Link方式安装Maven插件(转载)

    标签: it 分类: 开发软件 1.工具下载: Eclipse4.2 jee版本(注意是Jee,不是标准版的eclipse) 下载地址:http://www.eclipse.org/downloads ...

  9. 在线安装maven插件问题:Cannot complete the install because one or more required items could not be found.

    用Eclipse在线安装的方式:Help-->Install  New Software 地址输入:http://m2eclipse.sonatype.org/sites/m2e/,列表中打勾勾 ...

随机推荐

  1. Android虚拟机电池状态设置

    问题描述: 安装SDK后使用AVD配合APPIUM进行测试,此时虚拟机的电池状态为0%充电中:部分APP会对手机电池状态有要求,不符合要求时,无法安装或打开. 解决思路: 1.Android系统设置( ...

  2. 消息中间件与RPC的区别

    消息中间件和消息通信与RPC各自具有怎样的优势,如何互补消息中间件主要实现的是异步.弹性消息以及队列,弹性消息有时可以借助于外存从而一定程度上可以实现峰值缓存,有效均衡服务器端压力,同时消息可以进行一 ...

  3. 原生js的容易忽略的相似点(一)

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  4. tac命令

    tac——显示文件内容(反列显示) 命令所在路径:/usr/bin/tac 示例1: # tac /etc/hosts 反列显示/etc/目录下hosts文件内容 ☛适合查看内容较短的文件

  5. ldap_modify: No such object (32) matched DN: cn=config

    centos 6.9 部署 kerbors ldap 报错 [root@hadoop data]# ldapmodify -Y EXTERNAL -H ldapi:/// -f chdomain.ld ...

  6. Android(java)学习笔记172:服务(service)之绑定服务调用服务里面的方法 (采用接口隐藏代码内部实现)

    1. 接口 接口可以隐藏代码内部的细节,只暴露程序员想暴露的方法 2. 利用上面的思想优化之前的案例:服务(service)之绑定服务调用服务里面的方法,如下: (1)这里MainActivity.j ...

  7. EOS Dawn 3.0 智能合约 -- 新格式

    1.简介 随着EOS Dawn 3.0发布,智能合约的坑又要重新踩了o(╥﹏╥)o:3.0不仅将原来本身就在链里的基础合约独立出来,简单的介绍见3.0合约改变,合约的书写方式也有巨大变化,相比之前更加 ...

  8. axios 两种异步模式,代理模式 和 异步模式

    axios 两种异步模式,代理模式 和 异步模式

  9. CAD交互绘制圆弧(网页版)

    在CAD设计时,需要绘制圆弧,用户可以在图面点圆弧起点,圆弧上的一点和圆弧的终点,这样就绘制出圆弧. 主要用到函数说明: _DMxDrawX::DrawArc2 由圆弧上的三点绘制一个圆弧.详细说明如 ...

  10. faster rcnn的改进方向

    http://blog.csdn.net/linolzhang/article/details/74159463 http://blog.csdn.net/linolzhang/article/det ...