Intellij 配置maven阿里仓库

2018-06-11  本文已影响0人  偷得浮生半日咸

Intellij IDEA -> Preference -> Build ->Build tools -> Maven
在User setting file 选项显示的路径下,找到settings.xml文件(如果没有,则新建一个),勾选右方的Override。
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/SETTIN
             https://maven.apache.org/xsd/settings-1.0.0.xsd">
       <mirrors>
           <mirror>
               <id>alimaven</id>
               <name>aliyun maven</name>
              <url>http://maven.aliyun.com/nexus/content/repos
          </mirror>
      </mirrors>
  </settings>               
上一篇 下一篇

猜你喜欢

热点阅读