Uploaded image for project: 'Community Support - Open Source Project Repository Hosting'
  1. Community Support - Open Source Project Repository Hosting
  2. OSSRH-12570

Assistance with maven deploy to 'oss.sonatype.org': 'settings.xml' required?

    XMLWordPrintable

    Details

    • Type: Publishing Support
    • Status: Closed
    • Priority: Major
    • Resolution: Automatically Closed
    • Labels:
    • Environment:
      Ubuntu
    • Group Id:
      null
    • Publishing Hostname:
      oss.sonatype.org
    • Modify publishing permissions?:
      No

      Description

      Thank you for your support on: OSSRH-12555

      Since this is my first time deploying to oss.sonatype.org repository, I need some assistance.
      I am following these instruction presented here:

      To begin with:
      Here is my pom.xml, note that it is also the attached file.

      Is my project's groupid still com.tune.sdk or is it com.tune

      Changing groupId to com.tune, so you can deploy to it or to any sub-groups, including com.tune.sdk

      Is there another recommended document that I can follow to perform the following:

      Configuration has been prepared, now you can:

      I am using the following maven deploy command:

      mvn clean deploy -X -DperformRelease=true -Dgpg.passphrase=$(passphrase) -Dgpg.keyname=$(keyname) -DAPI_KEY=$(api_key)
      

      When using it, the tests and build succeeds, but not the transfer to oss.sonatype.org:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project tune-api-java: Failed to deploy artifacts: Could not transfer artifact com.tune.sdk:tune-api-java:jar:0.9.0 from/to sonatype-nexus-staging (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/tune/sdk/tune-api-java/0.9.0/tune-api-java-0.9.0.jar. Return code is: 401, ReasonPhrase: Unauthorized.
      
      Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact com.tune.sdk:tune-api-java:jar:0.9.0 from/to sonatype-nexus-staging (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/tune/sdk/tune-api-java/0.9.0/tune-api-java-0.9.0.jar. Return code is: 401, ReasonPhrase: Unauthorized.
      
      Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tune.sdk:tune-api-java:jar:0.9.0 from/to sonatype-nexus-staging (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/tune/sdk/tune-api-java/0.9.0/tune-api-java-0.9.0.jar. Return code is: 401, ReasonPhrase: Unauthorized.
      
      Caused by: org.sonatype.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact com.tune.sdk:tune-api-java:jar:0.9.0 from/to sonatype-nexus-staging (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/tune/sdk/tune-api-java/0.9.0/tune-api-java-0.9.0.jar. Return code is: 401, ReasonPhrase: Unauthorized.
      
      Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.tune.sdk:tune-api-java:jar:0.9.0 from/to sonatype-nexus-staging (https://oss.sonatype.org/service/local/staging/deploy/maven2/): Failed to transfer file: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/tune/sdk/tune-api-java/0.9.0/tune-api-java-0.9.0.jar. Return code is: 401, ReasonPhrase: Unauthorized.
      

      It is not clear to me if settings.xml is required, and if so then what goes into it?

      Thank you for your assistance.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              central-ossrh Bot Central-OSSRH
              Reporter:
              jefftune Jeff Tanner
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  tigCommentSecurity.panel-title