Erlo

使用NEXUS搭建MAVEN私服

2019-04-24 15:01:49 发布   246 浏览  
页面报错/反馈
收藏 点赞

一、安装 

1.下载地址:https://www.sonatype.com/nexus-repository-oss,ZIP版

2.下载完后,将文件解压,存放到一个目录中。下载完成后,直接将下载后的压缩文件进行解压,存放在磁盘的某个目录下即可

3.将nexus-2.14.12-02bin 写入系统环境变量的path下

4.修改配置文件 bin/jsw/conf/wrapper.conf,wrapper.java.command=c:xxxjava1.xxxbinjava(java的路径)

5.nexus install安装成WINDOWS服务

6.nexus start启动nexus服务

 

二、添加三方jar包

1.打开localhost:8080/nexus, 使用admin/admin123登录

2.切换到3rd part上,artifact页签上,上传jar包

3.切换到browser index页签上,找到需要使用的jar包,COPY对应的MAVEN信息到项目的POM文件中

 

三、MAVEN的配置 

 打开maven/conf/settings.xml文件,修改成如下:

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

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

  c:mavenrepositories

   

 

 

 

   

      nexus-releases

      admin

      admin123

   

   

      nexus-snapshots

      admin

      admin123

   

 

 

  

 

   

       center

        

          

            nexus

            nexus  

            http://localhost:8081/nexus/content/groups/public/  

              

                true  

              

              

                true  

              

          

       

        

          

            nexus  

            nexus  

            http://localhost:8081/nexus/content/groups/public/  

              

                true  

              

              

                true  

              

          

     

   

 

 

    center

 

 

 

 

登录查看全部

参与评论

评论留言

还没有评论留言,赶紧来抢楼吧~~

手机查看

返回顶部

给这篇文章打个标签吧~

棒极了 糟糕透顶 好文章 PHP JAVA JS 小程序 Python SEO MySql 确认