突然无法将 Artifact 上传到 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 插件 3.2.3 最近发布。此版本包含针对此问题的修复。
根本原因是在上传 REST API 的响应中从 Artifactory 返回的新字段。
修复方法是忽略新的未知字段而不是抛出 UnrecognizedPropertyException
.
如需更多信息,请参阅 https://github.com/jfrog/build-info/pull/502 .
关于maven - 由于无法识别字段,无法将 Artifact 上传到 JFrog Artifactory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67817536/