美文网首页
Intellij 配置maven阿里仓库

Intellij 配置maven阿里仓库

作者: 偷得浮生半日咸 | 来源:发表于2018-06-11 17:00 被阅读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>               

相关文章

网友评论

      本文标题:Intellij 配置maven阿里仓库

      本文链接:https://www.haomeiwen.com/subject/tmpheftx.html