Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can no longer build Mule projects due to closure of Codehaus

Tags:

maven

mule

After the closure of codehaus, I can no longer build any Mule project that uses the mule-scripting-component because it is trying to download an artifact from codehaus(which it can no longer due to the closure of aforementioned site). When I try to build I get the following error:

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]

What can I do in order to get Mule to ignore the codehaus repo?

like image 241
user439407 Avatar asked May 18 '15 02:05

user439407


3 Answers

As already mentioned, setting up a Mirror in your Maven settings.xml will fix it. Just to be a bit more explicit, this is what I added to workaround the issue:

<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>
like image 150
jpendle Avatar answered Nov 14 '22 02:11

jpendle


Mulesoft has mirrored and copied the codehaus repository in the following repo:

https://repository.mulesoft.org/nexus/content/repositories/public/

like image 38
Juan Alberto López Cavallotti Avatar answered Nov 14 '22 03:11

Juan Alberto López Cavallotti


Although it's in maven central the poms for all the mule libraries still point to codehaus which is causing the error. I unfortunately had to resort to using mirrors to fix this. Since all the artifacts are in either maven central or the mule repos, I just added mirrors in my maven's settings.xml to point any and all codehaus repos to maven central. This is less than ideal but fixed the issue.

like image 2
user439407 Avatar answered Nov 14 '22 03:11

user439407