IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    使用阿里云Maven库

    blchen发表于 2017-12-03 08:28:45
    love 0

    在C:\Users\{username}\.m2\下创建一个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”>

    <mirrors>

    <!– 阿里云仓库 –>

    <mirror>

    <id>alimaven</id>

    <mirrorOf>central</mirrorOf>

    <name>aliyun maven</name>

    <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>

    </mirror>

    </mirrors>

    </settings>



沪ICP备19023445号-2号
友情链接