Skip to content

Publish snapshot artifacts to Sonatype fails #547

Closed
@sormuras

Description

@sormuras

The deployment of snapshot artifacts failed due to a 401 Unauthorized error: https://github.com/google/google-java-format/runs/1455239922

Note: a run on a fork reports "green", as the publish step is skipped: https://github.com/sormuras/google-java-format/actions/runs/383909185

These are the lines in question that trigger the upload:

- name: 'Set up JDK 15'
uses: actions/setup-java@v1
with:
java-version: 15
server-id: sonatype-nexus-snapshots
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
- name: 'Publish'
run: mvn source:jar deploy -B -DskipTests=true -Dinvoker.skip=true -Dmaven.javadoc.skip=true

Reading https://github.com/actions/setup-java#publishing-using-apache-maven again, I think that all required credentials are given, passed, and written to correct configuration files. It should, if it worked, render the util/settings.xml superseded.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions