“Installing Apache Maven”的版本间的差异

来自linux中国网wiki
跳到导航 跳到搜索
(创建页面,内容为“=Installing Apache Maven= <pre> xport PATH=/opt/apache-maven-3.8.2/bin:$PATH # on my kali vim /etc/profile export PATH=/usr/local/maven3/bin/:$PATH source /…”)
 
第17行: 第17行:
  
 
</pre>
 
</pre>
 +
 +
=国内源=
 +
<pre>
 +
 +
 +
国内源
 +
 +
在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>
 +
 +
</pre>
 +
 +
 +
 +
  
 
  https://maven.apache.org/install.html
 
  https://maven.apache.org/install.html
  
 
[https://developer.aliyun.com/article/663332 Linux 安装Maven]
 
[https://developer.aliyun.com/article/663332 Linux 安装Maven]

2021年8月19日 (四) 16:09的版本

Installing Apache Maven



xport 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
 
 

国内源



国内源

在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