eclipse更新插件的方法(maven)
以maven为例:
首先是去maven官网找寻插件下载地址:
m2eclipseCoreUpdateSite:http://m2eclipse.sonatype.org/sites/m2e
然后安装如下图示简单操作就可安装成功:
第一步:选择安装新软件:
2:添加maven地址
3.添加插件名称
四勾选安装
![Eclipse中安装Maven插件 M2eclipse - MyRudy - 记事本](https://i-blog.csdnimg.cn/blog_migrate/38ec1cf563f09cc82e67c59724f9074b.jpeg)
![Eclipse中安装Maven插件 M2eclipse - MyRudy - 记事本](https://i-blog.csdnimg.cn/blog_migrate/5cab0e61acddd020c8844b2bc54ed6ef.jpeg)
安装maven后出现的异常:
Maven:TheMavenIntegrationrequiresthatEclipseberunninginaJDK
解决办法:
Thefullyerrormessagethatyoumightgetisasfollows:
TheMavenIntegrationrequiresthatEclipseberunninginaJDK,becauseanumberofMavencorepluginsareusingjarsfromtheJDK.
Pleasemakesurethe-vmoptionineclipse.iniispointingtoaJDKandverify
thatInstalledJREsarealsousingJDKinstalls.
Tosolvethisproblemaddanewoptionintoyoureclipse.ini(whichislocatedinyourEclipseinstallationfolder):
-vmC:\ProgramFiles\Java\jdk1.6.0_06\bin\javaw.exeItisimportanttohavethislineonthecorrectlocation,otherwiseEclipsewillhavenoclueaboutthissetting:
-showsplashorg.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\ProgramFiles\Java\jdk1.6.0_06\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
Ithastobebeforethe-vmargsargument.