- 下载
进入官网下载页面:http://maven.apache.org/download.html
我用的是windows,下载apache-maven-3.2.5-bin.zip:Maven 3.2.5 (Binary zip) apache-maven-3.2.5-bin.zip apache-maven-3.2.5-bin.zip.md5 apache-maven-3.2.5-bin.zip.asc - 解压
解压zip包到E:\develop\build\apache-maven-3.2.3 - 修改配置文件
修改配置文件:E:\develop\build\apache-maven-3.2.3\conf\settings.xml
修改maven仓库位置,修改localRepository节点为:<localRepository>E:\develop\build\apache-maven-3.2.3\repo</localRepository>
- 配置Maven in Eclipse
首先,确保eclipse已安装maven插件。STS已自带。
依次点击eclipse菜单:Window - Preferences
4.1 配置maven安装目录
Maven - Installations - Add - Installation home 文本框填: E:\develop\build\apache-maven-3.2.3
4.2 配置maven配置文件路径
Maven - User Settings - User Settings - Browse.. 选中要使用的配置文件: E:\develop\build\apache-maven-3.2.3\conf\settings.xml
时间: 2024-11-05 23:23:52