IntelliJ IDEA 14本地仓库配置

                方法一:

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           

猜你喜欢

转载自blog.csdn.net/qq_44947882/article/details/89432649