Installing Apache Maven

来自linux中国网wiki
跳到导航 跳到搜索

Installing Apache Maven



export PATH=/opt/apache-maven-3.8.2/bin:$PATH




# on my kali
vim /etc/profile
export PATH=/usr/local/maven3/bin/:$PATH

 source  /etc/profile
 
 


/var/jenkins_home/.m2/repository # vi settings.xml
/var/jenkins_home/.m2/repository # 

国内源



国内源

在maven目录下,conf/settings.xml,在<mirrors></mirros>里添加  就是在最后一个 </mirror>前面添加就对了

    阿里

<mirror>  
      <id>nexus-aliyun</id>  
      <mirrorOf>*</mirrorOf>  
      <name>Nexus aliyun</name>  
      <url>http://maven.aliyun.com/nexus/content/groups/public</url>  
</mirror>  

    开源中国

<mirror>  
     <id>nexus-osc</id>  
     <mirrorOf>*</mirrorOf>  
     <name>Nexusosc</name>  
     <url>http://maven.oschina.net/content/groups/public/</url>  
</mirror>



https://maven.apache.org/install.html

Linux 安装Maven