eclipse更新插件的方法(maven)
以maven为例:
首先是去maven官网找寻插件下载地址:
m2eclipse Core Update Site: http://m2eclipse.sonatype.org/sites/m2e
然后安装如下图示简单操作就可安装成功:
第一步:选择安装新软件:
2:添加maven地址
3.添加插件名称
四勾选安装
安装maven后出现的异常:
Maven: The Maven Integration requires that Eclipse be running in a JDK
解决办法:
The fully error message that you might get is as follows:
The Maven Integration requires that Eclipse be running in a JDK, because anumber 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 JREs are also using JDK installs.
To solve this problem add a new option into your eclipse.ini (which is located in your Eclipse installation folder):
-vm C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exeIt is important to have this line on the correct location, otherwise Eclipse will have no clue about this setting:
-showsplashorg.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
It has to be before the -vmargs argument.