zoukankan      html  css  js  c++  java
  • 使用国内阿里maven私服方法

    方法1,在maven的config下setings.xml文件中加入以下代码

    1. <mirrors>
    2. <mirror>
    3. <id>mirrorId</id>
    4. <mirrorOf>repositoryId</mirrorOf>
    5. <name>Human Readable Name for this Mirror.</name>
    6. <url>http://my.repository.com/repo/path</url>
    7. </mirror>
    8. </mirrors>

    方法2,在pom.xml加入以下代码

    1. <!--第三方maven私服-->
    2. <repositories>
    3. <repository>
    4. <id>nexus-aliyun</id>
    5. <name>Nexus aliyun</name>
    6. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    7. <releases>
    8. <enabled>true</enabled>
    9. </releases>
    10. <snapshots>
    11. <enabled>false</enabled>
    12. </snapshots>
    13. </repository>
    14. </repositories>
    15. <pluginRepositories>
    16. <pluginRepository>
    17. <id>nexus-aliyun</id>
    18. <name>Nexus aliyun</name>
    19. <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    20. <releases>
    21. <enabled>true</enabled>
    22. </releases>
    23. <snapshots>
    24. <enabled>false</enabled>
    25. </snapshots>
    26. </pluginRepository>
    27. </pluginRepositories>


    原文地址:https://blog.csdn.net/xingfeichen/article/details/54290735
  • 相关阅读:
    三.Python数据类型详述
    二.Python基础语法和数据类型
    一.Python特点
    Hive之explode和lateral view
    javascript之函数作用域
    javascript之函数使用
    javascript之函数定义
    javascript之变量
    Html之元素
    Html之页面
  • 原文地址:https://www.cnblogs.com/jpfss/p/11095217.html
Copyright © 2011-2022 走看看