修改maven本地仓库位置
首先需要安裝好,假設(shè)安裝位置在:D:\****\maven\apache-maven-3.3.3
修改本地倉庫位置,打開配置文件:D:\****\maven\apache-maven-3.3.3\conf\settings.xml
<!-- localRepository
?? | The path to the local repository maven will use to store artifacts
?? | Default: ${user.home}/.m2/repository
? <localRepository>/path/to/local/repo</localRepository>
? -->
將原來配置文件中的默認(rèn)值改為自己maven安裝的位置:
? <localRepository>D:\****\maven\repository</localRepository>
修改Eclipse中的配置,Eclipse -> Prefrences -> Maven -> User Settings ->?
下面的local repository會(huì)自動(dòng)識(shí)別配置文件中的配置,自己更換。點(diǎn)擊OK完成。
【如果setting文件改了之后,下面local repository的位置還是默認(rèn)是C盤,那就說明settings.xml文件中的local Repository的位置沒有改變,改成自己想要的位置即可。】
轉(zhuǎn)載于:https://www.cnblogs.com/shin6758/p/6058257.html
總結(jié)
以上是生活随笔為你收集整理的修改maven本地仓库位置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: beta阶段140字评论
- 下一篇: 数字对 (长乐一中模拟赛day2T2)