Windows Eclipse Maven 安装
- 下载解压
http://maven.apache.org/download.cgi
- 修改环境变量
M2_HOME -> C:\maven
PATH -> C:\maven\bin
- 集成
Eclipse -> Help -> Eclipse Marketplace -> http://m2eclipse.sonatype.org/sites/m2e/ -> 打钩 -> next -> next ...
Eclipse -> Window -> Preference -> Maven -> Installations -> Add -> C:\maven -> Apply and Close
- 错误 The Maven Integration requires that Eclipse be running in a JDK
Eclipse -> Window -> Preferences -> Java -> Installed JREs -> Add -> Standard VM -> C:\Program Files\Java\jdk1.8.0_144\jre -> Finish -> Apply and Close
eclipse.ini
-vm C:\Program Files\Java\jdk1.8.0_144\jre\bin -vmargs -Dosgi.requiredJavaVersion=1.8
- 错误 An internal error occurred during: Updating indexes
Eclipse -> Windows -> Preference -> Maven -> 取消Download repository index updates on startup
参考文献:
https://jingyan.baidu.com/article/295430f136e8e00c7e0050b9.html
http://blog.csdn.net/chivalrousli/article/details/51841273
http://blog.csdn.net/whuslei/article/details/6655778
浙公网安备 33010602011771号