tar zxvf apache-maven-3.5.4-bin.tar.gz -C /opt/inst
創(chuàng)新互聯(lián)建站主要從事網(wǎng)站制作、成都網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)平原,十載網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來(lái)電咨詢建站服務(wù):18980820575
cd opt/inst
mv apache-maven-3.5.4 maven354
本地倉(cāng)的作用是:將遠(yuǎn)程倉(cāng)的jar包下載到本地,以后再需要下載jar包的時(shí)候,就會(huì)先再本地找,如果有就直接用,沒(méi)有的話,再去遠(yuǎn)程下載
cd maven354/conf/
vi settings.xml
修改本地倉(cāng)庫(kù)為/opt/jarstore,但是需要注意的是需要LINUX機(jī)器/opt下沒(méi)有jarstore文件夾,故而需要手動(dòng)創(chuàng)建
/opt/jarstore
alimaven
central
aliyun maven
https://maven.aliyun.com/repository/central
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central
cd /opt
mkdir jarstore
export MAVEN_HOME=/opt/inst/maven354
export PATH=$PATH:$MAVEN_HOME/bin
source /etc/profile
mvn -version
MAVEN_HOME =D:\Program Files (x86)\apache-maven-3.5.4
PATH=%MAVEN_HOME%\bin
先修改本地倉(cāng)庫(kù)地址D:/Program Files (x86)/apache-maven-3.5.4/jarstore,記得在本地機(jī)器上新建一個(gè)文件夾jarstore
修改鏡像文件為阿里云地址,和linux一樣
alimaven
central
aliyun maven
https://maven.aliyun.com/repository/central
alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central