pro-crafting / Jasper-report-maven-plugin

A fast jasper report maven plugin
Apache License 2.0
24 stars 2 forks source link

Deploy to ossrh results in 401 #89

Closed Postremus closed 2 months ago

Postremus commented 2 months ago

The access tokens for ossrh seem to be out of date. At least the deploy fails.

https://github.com/pro-crafting/Jasper-report-maven-plugin/actions/runs/9542274603/job/26296818825

Error:  Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy (injected-nexus-deploy) on project jasperreports-plugin: Failed to deploy artifacts: Could not transfer artifact com.pro-crafting.tools:jasperreports-plugin:jar:3.6.2-20240617.051116-3 from/to ossrh (https://oss.sonatype.org/content/repositories/snapshots): Failed to transfer file: https://oss.sonatype.org/content/repositories/snapshots/com/pro-crafting/tools/jasperreports-plugin/3.6.2-SNAPSHOT/jasperreports-plugin-3.6.2-20240617.051116-3.jar. Return code is: 401, ReasonPhrase: Content access is protected by token. -> [Help 1]

Might also be casued by the migration to the new sonatype portal. https://central.sonatype.org/register/central-portal/

Need to look into this.

Postremus commented 2 months ago

https://central.sonatype.org/register/namespace/#existing-ossrh-namespaces Ok a simple update to the new publisher api, and new tokens should fix this.

Postremus commented 2 months ago

fixed it, just had to generate new username and token.