赞
踩
wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar -zxvf apache-maven-3.3.9-bin.tar.gz
vim /etc/profile
export MAVEN_HOME=/usr/local/maven/apache-maven-3.3.9
export PATH=${PATH}:${MAVEN_HOME}/bin
source /etc/profile
mkdir -p /usr/local/repository
vim $MAVEN_HOME/conf/settings.xml
找到标签配置Maven的本地仓库地址
<localRepository>/repository</localRepository>
找到标签,添加阿里云镜像
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。