link original: https://itbook.com/article/1584784431282
instalar
Baixe e instale mvn
wget http: // repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo yum -y instalar em Apache maven
Configurando armazém
Edit Profile
vim /etc/maven/settings.xml
servidor de armazenamento Ali doméstica recomendado configuração:
<espelho> < id > alimaven </ id > <name> aliyun Maven </ name> <url> http: // maven.aliyun.com/nexus/content/groups/public / </ url> <mirrorOf> Central < / mirrorOf> </ mirror>
servidor estrangeira configuração recomendada padrão do warehouse:
<espelho> < id > centro-https </ id > <url> https: // repo.maven.apache.org/maven2 </ url> <mirrorOf> Central </ mirrorOf> </ mirror>