Setting.xml配置
    该配置一般存在与系统用户目录下的.m2隐藏目录下。

    其中地址配置仓库如下:

    1. <mirrors>
    2. <!--自己的仓库-->
    3. <mirror>
    4. <id>acompe</id>
    5. <name>acompe-publicl</name>
    6. <url>http://maven.acompe.com:8081/repository/maven-public/</url>
    7. <mirrorOf>central</mirrorOf>
    8. </mirror>
    9. <!--阿里云仓库-->
    10. <mirror>
    11. <id>aliyum</id>
    12. <name>aliyum-publicl</name>
    13. <url>https://maven.aliyun.com/repository/central</url>
    14. <mirrorOf>central</mirrorOf>
    15. </mirror>
    16. </mirrors>

    其中用户信息配置如下:

     <servers>
        <server>
          <id>acompe-snapshots</id>
          <username>yanguoyu</username>
          <password>wanzhy123</password>
        </server>
    
        <server>
          <id>acompe-releases</id>
          <username>yanguoyu</username>
          <password>wanzhy123</password>
        </server>
    </servers>
    

    pom.xml配置
    该配置一般因创建项目而存在,构建项目时使用。

    配置deploy时,应使用如下配置:

    <project> 
        <distributionManagement>
            <repository>
                <id>acompe-releases</id>
                <name>acompe-verification-release</name>
                <url>http://maven.acompe.com:8081/repository/maven-releases/</url>
            </repository>
            <snapshotRepository>
                <id>acompe-snapshots</id>
                <name>acompe-verification-snapshots</name>
                <url>http://maven.acompe.com:8081/repository/maven-snapshots/</url>
            </snapshotRepository>
        </distributionManagement>
    </project>