gpt4 book ai didi

java - 找不到 Artifact mule-module-json

转载 作者:行者123 更新时间:2023-12-02 12:34:38 27 4
gpt4 key购买 nike

我一直在 AnypointStudio (Eclipse) 6.2.2 中愉快地开发我的 API,直到现在我向流程中添加了一个 JSON 到对象转换器;现在当我构建 mvn clean package -U

我得到:

Downloading: https://repository.mulesoft.org/nexus/content/repositories/public/org/mule/extensions/mule-extensions/3.8.3/mule-extensions-3.8.3.pom

[INFO] BUILD FAILURE

[INFO] -----------------------------------------------------------------------

[INFO] Total time: 14.775 s

[INFO] Finished at: 2017-07-19T10:38:10+10:00

[INFO] Final Memory: 25M/644M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project foobar: Could not resolve dependencies for project org.foo:bar:mule:1.0.0-SNAPSHOT: Failed to collect dependencies at org.mule.modules:mule-module-json:jar:3.8.3 -> org.mule.modules:mule-module-validation:jar:3.8.3: Failed to read artifact descriptor for org.mule.modules:mule-module-validation:jar:3.8.3: Could not find artifact org.mule.extensions:mule-extensions:pom:3.8.3 in Central (http://central.maven.org/maven2/) -> [Help 1]

谁能指出出了什么问题吗?我需要 EE 许可证才能使用 JSON-to-Object 吗?

最佳答案

我找到了这个问题的答案。我的 POM 使用的是 Mule 运行时 3.8.3

<mule.version>3.8.3</mule.version>

但是,没有与此版本对应的 json 模块的版本。 Mulesoft Releases 的最新版本是 3.8.1:

https://repository.mulesoft.org/nexus/content/repositories/releases/org/mule/modules/mule-module-json/3.8.1/

因此,在我的 POM 中手动更改此依赖项的版本可以解决该问题:

     <dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-json</artifactId>
<version>3.8.1</version>
<scope>provided</scope>
</dependency>

关于java - 找不到 Artifact mule-module-json,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45179257/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com