maven配置本地仓库(从本地仓库下载jar包到.m2仓库)详解编程语言

 Windows–》preference 
maven配置本地仓库(从本地仓库下载jar包到.m2仓库)详解编程语言
 
 
maven配置本地仓库(从本地仓库下载jar包到.m2仓库)详解编程语言
 
 
maven配置本地仓库(从本地仓库下载jar包到.m2仓库)详解编程语言
 
 
 把你的settings.xml存到一个地方

maven指向你的settings.xml

settings.xml里的地址是你们私服的本地地址

就好啦 

 
下面是settings.xml的内容:
<?xml version="1.0" encoding="UTF-8"?>   <settings   xmlns="http://maven.apache.org/POM/4.0.0"         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">     <localRepository >e:/m2/repo</localRepository>           <mirrors>         <mirror>             <id>central</id>             <name>central</name>             <url>http://192.168.0.107:8081/nexus/content/repositories/central/</url>             <mirrorOf>*</mirrorOf>         </mirror>     </mirrors>       </settings>

 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/11508.html

(0)
上一篇 2021年7月19日 11:18
下一篇 2021年7月19日 11:18

相关推荐

发表回复

登录后才能评论