maven 安装配置
时间:2020-10-20 21:21:54
收藏:0
阅读:29
官网:http://maven.apache.org/download.cgi
环境变量配置
maven_home maven路径
path %MAVEN_HOME%\bin
使用阿里云镜像
<mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public></url> </mirror>
jdk1.8编译项目
<profile> <id>jdk18</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile>
本地仓库位置
<settings> <localRepository>D:/apache-maven-3.6.3/repo</localRepository> </settings>
原文:https://www.cnblogs.com/dch0/p/13848989.html
评论(0)