centos install maven
1、获取安装包并解压
1 | cd /usr/local |
2、配置环境变量,添加export
1 | vim /etc/profile |
1 | export MAVEN_HOME=/usr/local/maven |
1 | source /etc/profile |
1 | mvn -v |
1 | vim ~/.bash_profile |
1 | source ~/.bash_profile |
3、添加阿里云镜像
1 | vim $MAVEN_HOME/conf/settings.xm |
添加以下镜像配置
1 | <mirrors> |