Maven conf目录下settings.xml的简单配置

1、maven配置地址

安装路径

C:Program FilesJetBrainsIntelliJ IDEA 2019.3.1pluginsmavenlibmaven3conf

2、管理员修改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">

<localRepository>E:apache-maven-3.3.9 epo</localRepository>

<interactiveMode>true</interactiveMode>
<offline>false</offline>

<pluginGroups>
</pluginGroups>

<proxies>
</proxies>

<servers>
</servers>

<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>

<profiles>
</profiles>

</settings>

原文地址:https://www.cnblogs.com/smallfa/p/12228619.html