遇到如下问题 “Failed to transfer file: http://skf-nexus.xxxxx.com/re... Return code is: 401”


[root@dev-technology-215l ~]# cat /usr/local/apache-maven-3.3.9/conf/settings.xml
<settings>
    <mirrors>
        <!--给定仓库的下载镜像。  -->
        <mirror>
            <!--该镜像的唯一标识符。id用来区分不同的mirror元素。  -->
            <id>xxxxx</id>
            <!--镜像名称  -->
            <name>Nexus xxxxx</name>
            <!--该镜像的URL。构建系统会优先考虑使用该URL,而非使用默认的服务器URL。  -->
            <url>http://nexus.xxxxx.com/repository/xxxxx-maven-central/</url>
            <!--被镜像的服务器的id。例如,如果我们要设置了一个Maven中央仓库(http://repo1.maven.org/maven2)的镜像,-->
            <!--就需要将该元素设置成central。这必须和中央仓库的id central完全一致。 -->
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>
    <profiles>
         <profile>
            <id>jdk-1.8</id>
            <activation>
                <activeByDefault>true</activeByDefault>
                <jdk>1.8</jdk>
                </activation>
            <properties>
                <maven.compiler.source>1.8</maven.compiler.source>
                <maven.compiler.target>1.8</maven.compiler.target>
                <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
            </properties>
        </profile>
         <profile>
            <id>dev</id>
            <repositories>
                <repository>
                    <id>nexus</id>
                    <url>http://skf-nexus.xxxxx.com/repository/xxxxx-release/</url>
                    <releases>
                        <enabled>true</enabled>
                    </releases>
                    <snapshots>
                        <enabled>true</enabled>
                    </snapshots>
                </repository>
            </repositories>
        </profile>
    </profiles>
   <activeProfiles>
        <activeProfile>dev</activeProfile>
    </activeProfiles>
    <servers>
        <server>
            <id>releases</id>
            <username>admin</username>
            <password>xxxxx-0312</password>
        </server>
    <server>
            <id>snapshots</id>
            <username>admin</username>
            <password>xxxxx-0312</password>
        </server>
    </servers>
    <distributionManagement>
        <repository>
            <id>xxxxx-releases</id>
            <name>Nexus Release Repository</name>
            <url>http://skf-nexus.xxxxx.com/repository/xxxxx-release/</url>
        </repository>
        <snapshotRepository>
            <id>snapshots</id>
            <name>Nexus Snapshot Repository</name>
            <url>http://skf-nexus.xxxxx.com/repository/snapshots/</url>
        </snapshotRepository>
    </distributionManagement>
</settings>

03-05 23:56