提示的错误信息为:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.0.0:deploy (default-deploy) on project usreio-parent: Failed to deploy artifacts: Could not transfer artifact com.usreio:usreio-parent:pom:0.1.0 from/to ossez-repo (https://repo.ossez.com/repository/maven-releases/): transfer failed for https://repo.ossez.com/repository/maven-releases/com/usreio/usreio-parent/0.1.0/usreio-parent-0.1.0.pom, status: 400 Bad Request -> [Help 1]
[ERROR]
问题和原因
这是因为我们向 Release 发布的版本中推送了 2 次。
原因是仓库中已经有一个 Release 的版本了。
Maven 针对 Release 的版本只能推送一次。