在我的build.gradle中,我有这个依赖项,在构建过程中,它没有从mule下载依赖文件,并给出了错误消息。
dependencies {
implementation 'org.mule.modules:mule-apikit-module:1.1.9'
testImplementation 'com.mulesoft.munit:munit-runner:2.1.5'
testImplementation 'com.mulesoft.munit:munit-tools:2.1.5'
compile 'org.codehaus.groovy:groovy-all:2.5.8'
}错误消息
警告:根项目无法解决其他项目配置。详细信息: org.gradle.api.artifacts.ResolveException:无法解决配置的所有依赖关系“:runtimeClasspath”。原因: org.gradle.internal.resolve.ArtifactNotFoundException:找不到mule模块-1.1.9.jar(org.mule.Module:mule模块:1.1.9)。在以下位置搜索:https://repository.mulesoft.org/releases/org/mule/modules/mule-apikit-module/1.1.9/mule-apikit-module-1.1.9.jar
当我查看Mule站点时,jar的名称中添加了-mule-plugin字符串。
如何更新我的build.gradle以下载此依赖项?
发布于 2019-11-15 08:30:59
-mule-plugin部件是一个分类器。不确定为什么要使用分类器,因为它是该坐标的唯一工件,但是您可以这样指定它:
dependencies {
implementation 'org.mule.modules:mule-apikit-module:1.1.9:mule-plugin'
}https://stackoverflow.com/questions/58866313
复制相似问题