RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
maven中怎么设置本地资源库

本篇文章为大家展示了maven中怎么设置本地资源库,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

专业从事网站设计制作、成都网站制作,高端网站制作设计,微信平台小程序开发,网站推广的成都做网站的公司。优秀技术团队竭力真诚服务,采用html5+CSS3前端渲染技术,响应式网站,让网站在手机、平板、PC、微信下都能呈现。建站过程建立专项小组,与您实时在线互动,随时提供解决方案,畅聊想法和感受。

1.安装的地方:${M3_HOME}/conf/settings.xml  全局配置

2.用户的目录:${user.home}/.m2/settings.xml    用户配置

如下是settings.xml的配置,重点讲解几个地方,因为接下来我们要配置安装自己的maven私有库

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">  

    

       ${user.home}/.m2/repository  

      

       true 

      

      

      

       false 

      

      

       false

      

      

      

      

      

             

              org.codehaus.mojo

      

      

      

             

             

                    

                     myproxy

                    

                     true

                    

                     http://…

                    

                     proxy.somewhere.com

                    

                     8080

                      

                     proxyuser

                    

                     somepassword

                    

                     *.google.com|ibiblio.org

             

      

      

      

             

             

                    

                     server001

                  

                     my_login

                    

                     my_password

                    

                    

                     ${usr.home}/.ssh/id_dsa

                    

                     some_passphrase

                    

                  

                     664

                    

                     775

                    

                    

             

      

      

      

             

             

                    

                     planetmirror.com

                    

                     PlanetMirror Australia

                    

                     http://downloads.planetmirror.com/pub/maven2

                    

                    

                     central

             

      

      

      

      

      

      

             

             

                    

                     test

                    

                    

                    

                  

                    

                           

                            false

                           

                            1.7

                           

                           

                                  

                                   Windows XP

                                  

                                   Windows

                                  

                                   x86

                                  

                                   5.1.2600

                           

                           

                           

                           

                                  

                                   mavenVersion

                                  

                                   2.0.3

                           

                           

                           

                           

                                  

                                   /usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/

                                  

                                   /usr/local/hudson/hudson-home/jobs/maven-guide-zh-to-production/workspace/

                           

                    

                      

                    

                    

                    

                    

                    

                    

                    

                    

                           

                            usr/local/winner/jobs/maven-guide

                    

                    

                    

                           

                           

                                  

                                   codehausSnapshots

                                  

                                   Codehaus Snapshots

                                  

                                  

                                         

                                          false

                                         

                                         

                                          always

                                         

                                      

                                          warn

                                  

                                  

                                  

                                  

                                         

                                         

                                         

                                  

                                  

                                   http://snapshots.maven.codehaus.org/maven2

                                  

                                  

                                   default

                           

                    

                    

                    

                    

                    

                           

                           

                                  

                                         

                                         

                                         

                                  

                                  

                                         

                                         

                                         

                                  

                                  

                                  

                                  

                                  

                           

                    

                    

                    

                    

                    

                    

                            env-test

                    

             

      

上述内容就是maven中怎么设置本地资源库,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注创新互联行业资讯频道。


网站栏目:maven中怎么设置本地资源库
浏览地址:http://lswzjz.com/article/ipjcpc.html