xiaojf

1. maven 配置文件配置settings.xml中设置mirror节点

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

 

 2. pom.xml 配置repository节点

<repository>
    <id>nexus-aliyun</id>
    <name>Nexus aliyun</name>
    <layout>default</layout>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    <snapshots>
        <enabled>false</enabled>
    </snapshots>
    <releases>
        <enabled>true</enabled>
    </releases>
</repository>

 

分类:

技术点:

相关文章:

  • 2022-02-27
  • 2021-08-23
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-26
  • 2022-02-07
  • 2022-02-14
  • 2022-02-26
  • 2022-02-04
  • 2022-02-27
  • 2021-11-22
相关资源
相似解决方案