关闭codehaus之后,我无法再构建任何使用mule-scripting-component的Mule项目,因为它正试图从codehaus下载构件(由于上述站点的关闭,它不再具有此功能)。当我尝试构建时,出现以下错误:
Could not resolve dependencies for project my.company.muleproject:mule-subproject-page:mule-module:1.0.1: Failed to collect dependencies at org.mule.modules:mule-module-scripting:jar:3.6.0 -> javax.script:jruby-engine:jar:jdk14:1.1: Failed to read artifact descriptor for javax.script:jruby-engine:jar:jdk14:1.1: Could not transfer artifact javax.script:jruby-engine:pom:1.1 from/to codehaus-mule-repo (http://repository.codehaus.org): peer not authenticated -> [Help 1]
为了让Mule忽略codehaus repo ,我该怎么办?
最佳答案
如前所述,在您的Maven settings.xml中设置一个镜像将对其进行修复。为了更加明确,这是我添加的解决此问题的方法:
<mirror>
<id>mule-codehaus-mirror</id>
<mirrorOf>codehaus-mule-repo,codehaus-releases,codehaus-snapshots</mirrorOf>
<name>Mule Codehaus Mirror</name>
<url>https://repository.mulesoft.org/nexus/content/repositories/public</url>
</mirror>
关于maven - 由于Codehaus关闭,无法再建立Mule项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30294299/