我正在尝试使用eclipse mvn插件(即m2e)构建hadoop。但是,由于依赖项解决问题,构建过程失败,并提供以下错误消息:
Failed to execute goal on project hadoop-common: Could not resolve dependencies for project org.apache.hadoop:hadoop-common:jar:3.0.0-SNAPSHOT: The following artifacts could not be resolved: com.sun.jersey:jersey-core:jar:1.8, javax.activation:activation:jar:1.1, tomcat:jasper-compiler:jar:5.5.23, commons-el:commons-el:jar:1.0, commons-beanutils:commons-beanutils-core:jar:1.8.0, org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8, com.thoughtworks.paranamer:paranamer:jar:2.3, org.xerial.snappy:snappy-java:jar:1.0.3.2: Could not transfer artifact com.sun.jersey:jersey-core:jar:1.8 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000 -> [Help 1]
现在,我该怎么做才能解决这个问题?
答案 0 :(得分:0)
这是Maven的一个问题。
您会找到Jonas Andersson
最初发布的回复Maven error “Failure to transfer…”的解决方案:
删除所有失败的下载内容:
find ~/.m2 -name "*.lastUpdated" -exec grep -q "Could not transfer" {} \; -print -exec rm {} \;
然后在eclipse中右键单击您的项目并选择Maven-> Update Dependencies
同样,所有的功劳归于Jonas Andersson。