maven settings.xml配置文件是在maven的conf目录下,基本配置如下:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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:\maven\maven\apache-maven-3.2.3\repo</localRepository>
<!-- 设置发布 jar 包时的用户名及密 -->
<servers>
<server>
<id>dynamic-public</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>dynamic-releases</id>
<username>admin</username>
<password>admin123</password>
</server>
<server>
<id>dynamic-snapshots</id>
<username>admin<