0
点赞
收藏
分享

微信扫一扫

maven阿里云仓库配置


配置maven私服

  1. 在mirrors节点中新增mirror节点:

<mirror>
    <id>alimaven</id>
    <mirrorOf>central</mirrorOf>
    <name>aliyun maven</name>
    <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>

  1. 在profiles节点中新增一个profile节点:

<profile>  
  <id>alimaven</id>  
  <repositories>  
    <repository>  
        <id>alimaven</id>  
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <releases><enabled>true</enabled></releases>  
        <snapshots><enabled>true</enabled></snapshots>  
    </repository>  
  </repositories>  
</profile>

  1. 在activeProfiles节点中新增一个activeProfile 节点:

<activeProfiles>
  <activeProfile>alimaven</activeProfile>
</activeProfiles>


举报

相关推荐

0 条评论