解决:maven配置文件setting.xml里server里ID必须匹配mirror的ID
<servers> <server> <id>nexus-release</id> <---THIS MUST MATCH <username>USER_NAME</username> <password>USER_PASSWD</password> </server> </servers> <mirrors> <mirror> <id>nexus-release</id> <---THIS <mirrorOf>*</mirrorOf> <url>http://MY_NEXUS_HOST:8081/nexus/content/groups/public</url> </mirror> </mirrors>