码上敲享录 > 互联网笔记 > maven项目如何从私服nexus中下载依赖包

maven项目如何从私服nexus中下载依赖包

上一章章节目录下一章 2018-04-28已有3770人阅读 评论(0)

maven项目如何从私服nexus中下载依赖包


解决方法:

1.打开maven的config目录中settings.xml文件

2.在<profile></profiles>之间添加以下代码:

   <profile>

           <id>central</id>

           <repositories>

               <repository>

                   <id>central</id>

                   <url>http://gisserver2:9081/nexus/content/groups/public/</url>

                   <releases>

                       <enabled>true</enabled>

                   </releases>

                   <snapshots>

                       <enabled>true</enabled>

                   </snapshots>

               </repository>

           </repositories>

    </profile>

3.在<profile></profiles>后面添加以下代码(使配置文件始终处于活动状态):  

  <activeProfiles>

       <activeProfile>central</activeProfile>

   </activeProfiles>

本文地址:http://www.yayihouse.com/yayishuwu/chapter/1219


向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
0

有建议,请留言!

  • *您的姓名:

  • *所在城市:

  • *您的联系电话:

    *您的QQ:

  • 咨询问题:

  • 提 交