Uploaded image for project: '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
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bvenners 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: