Gradle 构建寻找不存在的 jackson 提供程序依赖项
Gradle build looking for a non-existent jackson provider dependencies
所以今天我将我的 org.jboss.resteasy:resteasy-jackson2-provider
依赖项从 5.0.1.Final
更新为 6.0.0.Final
,但无法再次进行构建。
Could not find jackson-jaxrs-base-2.13.1-jakarta.jar (com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.1).
Searched in the following locations:
https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.13.1/jackson-jaxrs-base-2.13.1-jakarta.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
这个问题似乎很明显。但为什么?从两个来源传递依赖:
| +--- com.fasterxml.jackson.module:jackson-module-kotlin -> 2.13.1
| | +--- com.fasterxml.jackson.core:jackson-databind:2.13.1
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.13.1
| | | | \--- com.fasterxml.jackson:jackson-bom:2.13.1
| | | | +--- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.1 (c)
和
+--- org.jboss.resteasy:resteasy-jackson2-provider:6.0.0.Final
| +--- com.fasterxml.jackson.core:jackson-core:2.12.3 -> 2.13.1
| | \--- com.fasterxml.jackson:jackson-bom:2.13.1
| | +--- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.1 (c)
到目前为止一切顺利。我想不通的是 -jakarta.jar
片段来自哪里,为什么它不存在于 repo 中?
我可以找到版本 2.12.x 对应的 -jakarta.jar
工件,但 2.13.x 不存在。我错过了什么?
看起来像 2.13 made changes to using new dependencies for Jakarta namespace. You need to use 2.12 for RESTEasy 6. You can file an issue at https://issues.redhat.com/browse/RESTEASY 如果您希望 RESTEasy 升级到 2.13.x.
所以今天我将我的 org.jboss.resteasy:resteasy-jackson2-provider
依赖项从 5.0.1.Final
更新为 6.0.0.Final
,但无法再次进行构建。
Could not find jackson-jaxrs-base-2.13.1-jakarta.jar (com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.1).
Searched in the following locations:
https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.13.1/jackson-jaxrs-base-2.13.1-jakarta.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
这个问题似乎很明显。但为什么?从两个来源传递依赖:
| +--- com.fasterxml.jackson.module:jackson-module-kotlin -> 2.13.1
| | +--- com.fasterxml.jackson.core:jackson-databind:2.13.1
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.13.1
| | | | \--- com.fasterxml.jackson:jackson-bom:2.13.1
| | | | +--- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.1 (c)
和
+--- org.jboss.resteasy:resteasy-jackson2-provider:6.0.0.Final
| +--- com.fasterxml.jackson.core:jackson-core:2.12.3 -> 2.13.1
| | \--- com.fasterxml.jackson:jackson-bom:2.13.1
| | +--- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.13.1 (c)
到目前为止一切顺利。我想不通的是 -jakarta.jar
片段来自哪里,为什么它不存在于 repo 中?
我可以找到版本 2.12.x 对应的 -jakarta.jar
工件,但 2.13.x 不存在。我错过了什么?
看起来像 2.13 made changes to using new dependencies for Jakarta namespace. You need to use 2.12 for RESTEasy 6. You can file an issue at https://issues.redhat.com/browse/RESTEASY 如果您希望 RESTEasy 升级到 2.13.x.