一、安装mawen
下载
解压
tar -zxvf filename
二、mawen环境变量
vim /etc/profile.d/mawen.sh
----------
MAWEN_HOME=/lazy/apache-maven-3.6.2
PATH=$PATH:$MAWEN_HOME/bin
export PATH MAWEN_HOME
----------
source /etc/profile

二、修改mawen仓库
在conf目录中找到settings.xml 文件,配置mirrors的子节点,添加如下mirror
阿里云Maven镜像:
----------
<mirror>  
    <id>nexus-aliyun</id>  
    <mirrorOf>central</mirrorOf>    
    <name>Nexus aliyun</name>  
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>  
</mirror>  
----------
开源中国maven镜像
----------
<mirror>  
    <id>nexus-osc</id>  
    <mirrorOf>*</mirrorOf>  
    <name>Nexus osc</name>  
    <url>http://maven.oschina.net/content/groups/public/</url>  
</mirror>  
----------

相关文章:

  • 2021-11-15
  • 2021-07-28
  • 2021-06-03
  • 2022-12-23
  • 2022-02-08
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2021-11-06
  • 2021-08-13
  • 2021-04-07
  • 2021-08-08
  • 2021-10-19
相关资源
相似解决方案