缺少工件 com.fasterxml.jackson.core:jackson-core:jar:1.9.11
Missing artifact com.fasterxml.jackson.core:jackson-core:jar:1.9.11
我构建了一个 maven 项目并在 pom.xml 某些依赖项中缺少工件时遇到错误。我该如何解决?
我在你的图片上看不到 ${jackson.version}
的值,但从问题的标题来看,我认为它是你正在寻找的版本 1.9.11。如果您签入任何多个 Maven 存储库查看器,例如 maven central, you'll see that version is not present, and therefore maven cannot resolve that dependency. Click this link to see the versions available in maven central.
您必须从中央存储库中选择一个现有版本,或者,如果您在另一个存储库中有 1.9.11 版,请在您的 pom.xml 文件中包含该存储库的详细信息。
您必须指定 jackson.version 的 属性,这可以通过添加如下所示的部分来完成:
<properties>
<jackson.version>2.10.0</jackson.version>
</properties>
版本已根据 Maven 的最新文档更新。
来自两个 Maven 依赖项
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.13.2</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.2.2</version>
<type>bundle</type>
</dependency>
从两个依赖项中删除 bundle 标签并保持版本几乎相同,否则它会显示上述错误。
我构建了一个 maven 项目并在 pom.xml 某些依赖项中缺少工件时遇到错误。我该如何解决?
我在你的图片上看不到 ${jackson.version}
的值,但从问题的标题来看,我认为它是你正在寻找的版本 1.9.11。如果您签入任何多个 Maven 存储库查看器,例如 maven central, you'll see that version is not present, and therefore maven cannot resolve that dependency. Click this link to see the versions available in maven central.
您必须从中央存储库中选择一个现有版本,或者,如果您在另一个存储库中有 1.9.11 版,请在您的 pom.xml 文件中包含该存储库的详细信息。
您必须指定 jackson.version 的 属性,这可以通过添加如下所示的部分来完成:
<properties>
<jackson.version>2.10.0</jackson.version>
</properties>
版本已根据 Maven 的最新文档更新。
来自两个 Maven 依赖项
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.13.2</version>
<type>bundle</type>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.2.2</version>
<type>bundle</type>
</dependency>
从两个依赖项中删除 bundle 标签并保持版本几乎相同,否则它会显示上述错误。