Community Support - Open Source Project Repository Hosting
  1. Community Support - Open Source Project Repository Hosting
  2. OSSRH-2957

Getting "Error deploying artifact: Authorization failed: Access denied" when attempting to deploy a ScalaTest snapshot

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Global Rank:
      22309

      Description

      I think I followed all the instructions on this page:

      https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

      I'm trying to deploy a ScalaTest 1.8-SNAPSHOT release, and am getting this problem:

      [artifact:mvn] [INFO] Scanning for projects...
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] Building Maven Default Project
      [artifact:mvn] [INFO] task-segment: [org.apache.maven.plugins:maven-gpg-plugin:1.1:sign-and-deploy-file] (aggregator-style)
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] [gpg:sign-and-deploy-file]
      [artifact:mvn] [INFO] Retrieving previous build number from sonatype-nexus-snapshots
      [artifact:mvn] Uploading: https://oss.sonatype.org/content/repositories/snapshots//org/scalatest/scalatest_2.9.0/1.8-SNAPSHOT/scalatest_2.9.0-1.8-SNAPSHOT.jar
      [artifact:mvn] 2776K uploaded
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [ERROR] BUILD ERROR
      [artifact:mvn] [INFO] ------------------------------------------------------------------------
      [artifact:mvn] [INFO] Error deploying artifact: Authorization failed: Access denied to: https://oss.sonatype.org/content/repositories/snapshots//org/scalatest/scalatest_2.9.0/1.8-SNAPSHOT/scalatest_2.9.0-1.8-SNAPSHOT.jar

      I've attached my pom.xml file.

      Here's an expunged version of what I have in my ~/.m2/settings.xml file:

      <settings>
      <servers>
      <server>
      <id>sonatype-nexus-snapshots</id>
      <username>myusername</username>
      <password>mypassword</password>
      </server>
      <server>
      <id>sonatype-nexus-staging</id>
      <username>myusername</username>
      <password>mypassword</password>
      </server>
      </servers>

      The username and password I put in here is the one I can use to log into issues.sonatype.org.

        Activity

        Hide
        Viktor Kazakov added a comment -

        Bill, did you solve it somehow?

        Show
        Viktor Kazakov added a comment - Bill, did you solve it somehow?
        Hide
        Joel Orlina added a comment -

        Is this still happening? If so, does this document help:

        http://www.sonatype.com/people/2010/11/what-to-do-when-nexus-returns-401/

        Show
        Joel Orlina added a comment - Is this still happening? If so, does this document help: http://www.sonatype.com/people/2010/11/what-to-do-when-nexus-returns-401/
        Hide
        Viktor Kazakov added a comment - - edited

        Oh, I was wrong, in fact I get 403 Forbidden. That's another story, I guess... Thanks for the link!

        Show
        Viktor Kazakov added a comment - - edited Oh, I was wrong, in fact I get 403 Forbidden. That's another story, I guess... Thanks for the link!
        Hide
        Joel Orlina added a comment -

        Viktor,

        If you need deployer rights for this project, please have Bill Venners comment on this issue with his authorization.

        Show
        Joel Orlina added a comment - Viktor, If you need deployer rights for this project, please have Bill Venners comment on this issue with his authorization.

          People

          • Assignee:
            Unassigned
            Reporter:
            Bill Venners
            Last Updated By:
            Joel Orlina
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Date of First Response: