building oozie: Unknown host repository.codehaus.org

安稳与你 提交于 2019-12-21 12:58:56

问题


I'm trying to build Oozie 4.2.0 downloaded from here: http://ftp.cixug.es/apache/oozie/4.2.0/oozie-4.2.0.tar.gz

After launching the build

bin/mkdistro.sh -DskipTests

I'm getting this error:

[ERROR] Failed to execute goal on project oozie-core: Could not resolve dependencies for project org.apache.oozie:oozie-core:jar:4.2.0: Could not transfer artifact org.apache.hbase:hbase:jar:1.1.1 from/to Codehaus repository (http://repository.codehaus.org/): Unknown host repository.codehaus.org

From what I'm seeing on the Internet, codehause repository is not available any more. Is there a way to build Oozie without it?


回答1:


Just for the sake of helping people seeing this question in the future , you can resolve this through backing up this repo source with another source

The Codehaus hosting platform was ended, i.e., their public Maven repository is gone, too. You should try to follow their advice and add the following to your ~/.m2/settings.xml file:

<repositories>
     <repository>
       <id>Codehaus repository</id>
       <name>codehaus-mule-repo</name>
       <url>https://repository-master.mulesoft.org/nexus/content/groups/public/
       </url>
       <layout>default</layout>
     </repository>
   </repositories>

This should use a backup repository to get the missing dependency.

Source : Missing dependency hive-builtins causes build failure with error code 410 for Oozie



来源:https://stackoverflow.com/questions/32248317/building-oozie-unknown-host-repository-codehaus-org

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!