Maven安装配置及IDEA Intellji 配置
程序员文章站
2024-01-28 19:59:28
一、Maven安装及配置 二、IDEA Intellji 配置Maven ......
一、maven安装及配置
1.下载安装包:apache-maven-3.5.2.zip,下载地址:http://maven.apache.org/download.cgi 2.安装及配置环境变量: $ 安装 -> 解压apache-maven-3.5.2.zip -> d:\app\apache-maven-3.5.2 $ 配置环境变量: maven_home=d:\app\apache-maven-3.5.2\ path=.;%maven_home%\bin 3.查看版本: $ mvn -v 4.配置settings.mxl ... <localrepository>d:\maven\localrepositories</localrepository>
二、idea intellji 配置maven
1.打开file->settings->build,execution,deployment->maven 2.配置选项: $ maven home directory = d:\app\apache-maven-3.5.2\ $ user settings file = d:\app\apache-maven-3.5.2\conf\settings.xml $ local repository = d:\maven\localrepositories