Maven 本地仓库同步到私服中

步骤:

第一步:找到安装私服的目录中plexus.properties文件。

    地址:C:Windowsapache-tomcat-7.0.26webapps exus-2.7.0-06WEB-INF

第二步:修改properties文件

    nexus-work=${nexus-work}/sonatype-work/nexus  修改成 nexus-work=D:/maven/sonatype-work/nexus

  把${}换成本地的仓库目录。

第三步:把本地仓库中的jar包拷贝到私服central中

  D:mavensonatype-work exusstoragecentral

在重新访问私服路径:http://localhost:8080/nexus-2.7.0-06/index.html

新建一个Maven项目,就可以直接从私服中引用jar包了

原文地址:https://www.cnblogs.com/muli/p/5149642.html