在Intelij IDEA中修改阿里Maven源


国内镜像:阿里Maven源 https://maven.aliyun.com/mvn/view

打开IntelliJ IDEA->Settings ->Build, Execution, Deployment -> Build Tools > Maven

或者直接搜索maven

具体如下图所示:

idea配置maven源

而一般情况下在c:\Users\xxx.m2
这个目录下面如果没有没有settings.xml文件和repository文件夹,我们可以新建一个

settings.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
                          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/groups/public/</url>  
            <mirrorOf>central</mirrorOf>          
        </mirror>  
      </mirrors>
</settings>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM