找不到工件 mule-module-json
Could not find artifact mule-module-json
我一直在 AnypointStudio (Eclipse) 6.2.2 中愉快地开发我的 API,直到现在我将一个 JSON-to-Object 转换器添加到流程中;现在当我构建 mvn clean package -U
我得到:
[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 runtime 3.8.3
<mule.version>3.8.3</mule.version>
但是,没有与此版本相对应的 json 模块版本。 Mulesoft Releases
的最新版本是 3.8.1:
因此,在我的 POM 中手动更改此依赖项的版本可以解决此问题:
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-json</artifactId>
<version>3.8.1</version>
<scope>provided</scope>
</dependency>
我一直在 AnypointStudio (Eclipse) 6.2.2 中愉快地开发我的 API,直到现在我将一个 JSON-to-Object 转换器添加到流程中;现在当我构建 mvn clean package -U
我得到:
[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 runtime 3.8.3
<mule.version>3.8.3</mule.version>
但是,没有与此版本相对应的 json 模块版本。 Mulesoft Releases
的最新版本是 3.8.1:
因此,在我的 POM 中手动更改此依赖项的版本可以解决此问题:
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-json</artifactId>
<version>3.8.1</version>
<scope>provided</scope>
</dependency>