我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

maven中怎么设置本地资源库-创新互联

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

为蓬溪等地区用户提供了全套网页设计制作服务,及蓬溪网站建设行业解决方案。主营业务为成都网站建设、网站建设、蓬溪网站设计,以传统方式定制建设网站,并提供域名空间备案等一条龙服务,秉承以专业、用心的态度为用户提供真诚的服务。我们深信只要达到每一位用户的要求,就会得到认可,从而选择与我们长期合作。这样,我们也可以走得更远!

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://shouzuofang.com/article/pgdsh.html

其他资讯