ISRC-CAS/tarsier-oerv

[构建失败]mxparser

lvxiaoqian555 opened this issue · 1 comments

obs构建失败,域名解析失败

[ 1735s] [INFO] Building MXParser 1.2.1
[ 1735s] [INFO] --------------------------------[ jar ]---------------------------------
[ 1747s] Downloading from huaweicloud: https://mirrors.huaweicloud.com/repository/maven/org/apache/maven/plugins/maven-eclipse-plugin/maven-metadata.xml
[ 1759s] [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-eclipse-plugin/maven-metadata.xml from/to huaweicloud (https://mirrors.huaweicloud.com/repository/maven/): mirrors.huaweicloud.com: Name or service not known
[ 1759s] [INFO] ------------------------------------------------------------------------
[ 1759s] [INFO] BUILD FAILURE
[ 1759s] [INFO] ------------------------------------------------------------------------
[ 1759s] [INFO] Total time: 29.451 s
[ 1759s] [INFO] Finished at: 2022-03-17T06:34:23Z
[ 1759s] [INFO] ------------------------------------------------------------------------
[ 1759s] [ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven-eclipse-plugin' from the repositories [local (/home/abuild/.m2/repository), huaweicloud (https://mirrors.huaweicloud.com/repository/maven/)]: Plugin not found in any plugin repository -> [Help 1]
[ 1759s] [ERROR] 

本地构建修改buildroot里的/etc/hosts,添加

124.70.125.167 mirrors.huaweicloud.com
199.232.192.215 repo.maven.apache.org

可以构建成功
image

这种情况我们obs这边要如何处理呢?也去改/etc/hosts吗

将缺少的文件打包上传作为source,可以构建成功