linux maven安裝配置



1.Run the wget command from the dir you want to extract maven too.

wget http://mirrors.cnnic.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz

2.run the following to extract the tar,

tar xvf apache-maven-3.3.9-bin.tar.gz

3.move maven to /usr/local/apache-maven

mv apache-maven-3.3.9  /usr/local/apache-maven

4.Next add the env variables to your ~/.bashrc file

export M2_HOME=/usr/local/apache-maven
export M2=$M2_HOME/bin 
export PATH=$M2:$PATH

5.Execute these commands

source ~/.bashrc

6.Verify everything is working with the following command      

mvn -version

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM