Skip to content

Central publish fails: central-publishing plugin 0.6.0 cannot parse new warnings field #158

Description

@simbo1905

Problem

After fixing the 401 (#156), the Central upload now authenticates and the deployment is accepted, but the response parsing fails:

UnrecognizedPropertyException: Unrecognized field "warnings" (class DeploymentApiResponse), not marked as ignorable (6 known properties: "deploymentId", "purls", "cherryBomUrl", "errors", "deploymentState", "deploymentName")

Root cause

The Sonatype Central Portal API began returning a new warnings field in the deployment response; central-publishing-maven-plugin 0.6.0 has a strict Jackson model without it and blows up after a successful upload.

Fix

Bump the plugin to a current version (0.8.0+) in the parent pom, which knows the new response fields.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions