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

eclipse安装maven插件问题总结

2016-08-21 16:10 701 查看
问题1.the Maven Integration requires that Eclipse be running in a JDK

解决方法1:

打开eclipse,点击‘Window’ -> ‘Preferences’ -> ‘Java’ -> ‘Installed JREs’,查看是否有已安装的JREs,若没有,点击‘Add’ -> ‘Standard VM’ -> set all paths and click ‘Finish’.

解决方法2:

在eclipse的安装目录中找到eclipse.ini文件,并编辑这个文件(-vm一定要在-vmargs这个参数的上面,黑体加粗为需要添加的内容)

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jdk1.7.0_79\jre\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m


问题2.创建maven项目时,No archetypes currently available. The archetype list will refresh when the indexes finish updating

解决方法:

打开eclipse,点击Windows->preferences->Maven->Archetypes->Add Remote Catalog





在Catalog File中填写:http://repo1.maven.org/maven2/archetype-catalog.xml

点击ok,保存

关闭eclipse,重新打开,archetypes列表中就会显示内容了

参考:http://stackoverflow.com/questions/10612599/no-archetypes-currently-available-the-archetype-list-will-refresh-when-the-inde/10873282

参考:http://pan.baidu.com/s/1eS9ICwi
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: