intellij idea使用maven本地倉庫及修改本地倉庫路徑


手動創建一個settings.xml 的文件,把下面的代碼復制進去即可,標紅色的為倉庫路徑,可以自行更改。

<?xml version="1.0" encoding="UTF-8"?>


<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          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">

  <localRepository>D:/maven/my_local_repository</localRepository>
  

</settings>

簡單配置一下就可以,太多反而可能造成依賴包不能正確加載!

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM