




用于加速下载依赖 jar 包
在 apache-maven-3.6.1\conf\settings.xml 文件中配置:
<mirror>
    <id>nexus-aliyun</id>
    <mirrorOf>*,!jeecg,!geecg-snapshots</mirrorOf>
    <name>Nexus aliyun</name>
    <url>http://maven.aliyun.com/nexus/content/groups/public</url> 
</mirror>
在 apache-maven-3.6.1 文件夹下新建一个 maven-repo 文件夹,并在 apache-maven-3.6.1\conf\settings.xml 文件中配置:
<localRepository>D:\Java\apache-maven-3.6.1\maven-repo</localRepository>
为了避免新建项目时重复配置 Maven,在 IDEA 中的全局默认配置中进行配置,如下:


原文:https://www.cnblogs.com/Songzw/p/13179022.html