Skip to content

Publish snapshot artifacts to Sonatype fails #547

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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