IntelliJ IDEA 14本地倉庫配置
阿新 • • 發佈:2019-02-04
方法一:
1.在IntelliJ IDEA 中的file選單下,找到settings,進入 ,搜尋mavaen.
2.在如下的mavens設定中, 修改本地倉庫。
方法二:
在maven安裝目錄%M2_HOME%下的conf目錄下,有一個settings.xml檔案,開啟。
在xml檔案的配置中,找到如下配置。
<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
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
將path替換成你要修改的新本地倉庫路徑。重新整理maven Project