Details
-
Publishing Support
-
Resolution: Fixed
-
Major
-
null
-
oss.sonatype.org
-
No
Description
I am trying to push some artifacts of desensitization-logback project ( https://gitee.com/cqdevops/diary_desensitization) to the staging repo.
mvn release:prepare went fine.
However, the uploading step with mvn release:perform
ended with the following error:
[INFO] — maven-deploy-plugin:2.7:deploy (default-deploy) @ desensitization-logback —
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/gitee/cqdevops/desensitization-logback/1.1.1/desensitization-logback-1.1.1.jar
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/gitee/cqdevops/desensitization-logback/1.1.1/desensitization-logback-1.1.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.757 s
[INFO] Finished at: 2018-11-26T11:08:21+08:00
[INFO] Final Memory: 28M/221M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "releases" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project desensitization-logback: Failed to deploy artifacts: Could not transfer artifact com.gitee.cqdevops:desensitization-logback:jar:1.1.1 from/to releases (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/gitee/cqdevops/desensitization-logback/1.1.1/desensitization-logback-1.1.1.jar. Return code is: 401, ReasonPhrase: Unauthorized. -> [Help 1]