【问题标题】:Unable to upload artifacts into JFrog Artifactory because of unrecognized field由于无法识别的字段,无法将工件上传到 JFrog Artifactory
【发布时间】:2021-08-21 08:17:21
【问题描述】:

突然无法将工件上传到 JFrog Artifactory 云。注意:gradle 和 maven 插件都失败了

    id 'com.jfrog.artifactory' version '4.21.0'

            <plugin>
                <groupId>org.jfrog.buildinfo</groupId>
                <artifactId>artifactory-maven-plugin</artifactId>
                <version>3.2.1</version>
....
            </plugin>

com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "slf" (class org.jfrog.build.client.ArtifactoryUploadResponse), not marked as ignorable (12 known properties: "checksums", "size", "repo", "downloadUri", "path", "statusLine", "created", "errors", "uri", "mimeType", "createdBy", "originalChecksums"])

参考https://pastebin.com/AyBqfJ7Y

【问题讨论】:

    标签: maven artifactory jfrog


    【解决方案1】:

    Maven Artifactory 插件 3.2.3 最近发布。此版本包含对此问题的修复。

    根本原因是 Artifactory 在上传 REST API 的响应中返回了一个新字段。 解决方法是忽略新的未知字段,而不是抛出 UnrecognizedPropertyException

    欲了解更多信息,请参阅https://github.com/jfrog/build-info/pull/502

    【讨论】:

    猜你喜欢
    • 2019-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多