Details
-
Publishing Support
-
Resolution: Automatically Closed
-
Major
-
Ubuntu
-
null
-
oss.sonatype.org
-
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:
- Releasing a project to Maven Central repository via Sonatype
- Releasing the Deployment
- How to Generate PGP Signatures with Maven
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:
- Deploy snapshot artifacts into repository https://oss.sonatype.org/content/repositories/snapshots
- Deploy release artifacts into the staging repository https://oss.sonatype.org/service/local/staging/deploy/maven2
Promote staged artifacts into repository 'Releases'- Download snapshot and release artifacts from group https://oss.sonatype.org/content/groups/public
- Download snapshot, release and staged artifacts from staging group https://oss.sonatype.org/content/groups/staging
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
- relates
-
OSSRH-12555 Create new Sonaype project for Tune API SDK for Java: tune-api-java
-
- Closed
-