6
Maven 本地仓库同步到私服中
source link: https://www.wencst.com/archives/796
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Maven 本地仓库同步到私服中
作者: wencst
分类: JAVA
发布时间: 2017-10-10 16:20
阅读: 3,426 次
第一步:找到安装私服的目录中plexus.properties文件。
地址:C:Windowsapache-tomcat-7.0.26webappsnexus-2.7.0-06WEB-INF
第二步:修改properties文件
nexus-work=${nexus-work}/sonatype-work/nexus 修改成 nexus-work=D:/maven/sonatype-work/nexus
把${}换成本地的仓库目录。
第三步:把本地仓库中的jar包拷贝到私服central中
D:mavensonatype-worknexusstoragecentral
在重新访问私服路径:http://localhost:8080/nexus-2.7.0-06/index.html
新建一个Maven项目,就可以直接从私服中引用jar包了
如果文章对您有用,扫一下支付宝的红包,不胜感激!
欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)
Leave a Reply Cancel reply
You must be logged in to post a comment.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK