[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy)
on project xxxxxxx-tbox-gateway-serviceA: Failed to deploy artifacts: Could not transfer artifact com.xxxxxx:xxxxxxx-tbox-gateway-serviceA:jar:0.0.1-20210807.054443-1
from/to test-snapshots (http://xxxxxxxxx:8080/nexus-2.1.2/content/repositories/snapshots/): Failed to transfer file http://xxxxxxxx:8080/nexus-2.1.2/content/repositories/snapshots
/com/xxxx/xxxxxx-tbox-gateway-serviceA/0.0.1-SNAPSHOT/xxxxx-tbox-gateway-serviceA-0.0.1-20210807.054443-1.jar with status code 401 -> [Help 1]
出现这种状况可能是:
项目中distributionManagement里面的repository下的id和你当前使用的maven配置文件中的sever里的id不一致照成的,如下图所示