Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Environment:
      Windows 10, JDK 13, Eclipse IDE 2020-03

      Description

      I wanted to upload a new version of an artifact to the Central Repository, but when I try, I get this:

      [INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035/com/github/loadingbg/MiniML-for-java/v1.1/MiniML-for-java-v1.1.pom
      [INFO] Uploading to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035/com/github/loadingbg/MiniML-for-java/v1.1/MiniML-for-java-v1.1.jar
      [INFO] Uploaded to : https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035/com/github/loadingbg/MiniML-for-java/v1.1/MiniML-for-java-v1.1.jar (20 kB at 16 kB/s)
      [ERROR] Remote staging finished with a failure: Failed to deploy artifacts: Could not transfer artifact com.github.loadingbg:MiniML-for-java:pom:v1.1 from/to ossrh (https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035): Access denied to https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035/com/github/loadingbg/MiniML-for-java/v1.1/MiniML-for-java-v1.1.pom. Error code 401, 
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  01:12 min
      [INFO] Finished at: 2020-05-07T18:22:04+03:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:deploy (injected-nexus-deploy) on project MiniML-for-java: Remote staging failed: Failed to deploy artifacts: Could not transfer artifact com.github.loadingbg:MiniML-for-java:pom:v1.1 from/to ossrh (https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035): Access denied to https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubloadingbg-1035/com/github/loadingbg/MiniML-for-java/v1.1/MiniML-for-java-v1.1.pom. Error code 401, -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      I searched the problem and I saw that error 401 is for unauthorized access. But my credentials are correct and I have uploaded other projects without problem with the same credentials. Am I doing something wrong and if so, what am I doung wrong?

        Attachments

          Activity

            People

            Assignee:
            jorlina Joel Orlina
            Reporter:
            Loading BG Loading BG
            Last Updated By:
            Joel Orlina
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title