Hive 3.1.2 编译出现 Unknown host snapshots.maven.codehaus.org
Posted @SmartSi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hive 3.1.2 编译出现 Unknown host snapshots.maven.codehaus.org相关的知识,希望对你有一定的参考价值。
1. 问题
编译 Hive 3.1.2 出现以下错误:
[ERROR] Failed to execute goal on project hive-service:
Could not resolve dependencies for project org.apache.hive:hive-service:jar:3.1.2:
Failed to collect dependencies at org.apache.directory.server:apacheds-server-integ:jar:1.5.6 -> org.apache.directory.client.ldap:ldap-client-api:jar:0.1-SNAPSHOT:
Failed to read artifact descriptor for org.apache.directory.client.ldap:ldap-client-api:jar:0.1-SNAPSHOT:
Could not transfer artifact org.apache.directory.client.ldap:ldap-client-api:pom:0.1-SNAPSHOT from/to maven-snapshot-server (http://snapshots.maven.codehaus.org/maven2/): snapshots.maven.codehaus.org:
Unknown host snapshots.maven.codehaus.org -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :hive-service
错误的原因是 codehaus 服务器关闭,网页 http://snapshots.maven.codehaus.org/maven2/ 打不开。
2. 解决方案
打开 maven 设置文件 /usr/local/maven/conf/settings.xml,在 repositories 里增加一个 repository:
<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>
Hive 可以编译了。
原文:编译 hive 3.1.2 出现 Unknown host snapshots.maven.codehaus.org 错误的解决方法
以上是关于Hive 3.1.2 编译出现 Unknown host snapshots.maven.codehaus.org的主要内容,如果未能解决你的问题,请参考以下文章
编译x264:avisynth_c.h:825:3: error: unknown type name ‘HMODULE‘
opencv,vc++6.0,编译程序老是出错和警告; warning D4002 : ignoring unknown option '/Qwd167'
docker push 出现:x509: certificate signed by unknown authority
/usr/include/openssl/des.h:91:9: error: unknown type name ‘DES_LONG’ DES_LONG deslong[2];