在hadoop2.5.2-src目录下,执行mvn eclipse:eclipse -DskipTests的时候 报异常

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Hadoop Main ................................. SUCCESS [ 2.294 s]
[INFO] Apache Hadoop Project POM .......................... SUCCESS [ 2.199 s]
[INFO] Apache Hadoop Annotations .......................... SUCCESS [ 0.312 s]
[INFO] Apache Hadoop Project Dist POM ..................... SUCCESS [ 0.125 s]
[INFO] Apache Hadoop Assemblies ........................... SUCCESS [ 0.094 s]
[INFO] Apache Hadoop Maven Plugins ........................ SUCCESS [ 1.310 s]
[INFO] Apache Hadoop MiniKDC .............................. SUCCESS [ 3.572 s]
[INFO] Apache Hadoop Auth ................................. SUCCESS [ 2.512 s]
[INFO] Apache Hadoop Auth Examples ........................ SUCCESS [ 0.312 s]
[INFO] Apache Hadoop Common ............................... SUCCESS [ 3.572 s]
[INFO] Apache Hadoop NFS .................................. SUCCESS [ 0.624 s]
[INFO] Apache Hadoop Common Project ....................... SUCCESS [ 0.032 s]
[INFO] Apache Hadoop HDFS ................................. FAILURE [41:39 min]
[INFO] Apache Hadoop HttpFS ............................... SKIPPED
[INFO] Apache Hadoop HDFS BookKeeper Journal .............. SKIPPED
[INFO] Apache Hadoop HDFS-NFS ............................. SKIPPED
[INFO] Apache Hadoop HDFS Project ......................... SKIPPED
............
[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.5:a
dd-source (add-jsp-generated-sources-directory) on project hadoop-hdfs: Executio
n add-jsp-generated-sources-directory of goal org.codehaus.mojo:build-helper-mav
en-plugin:1.5:add-source failed: Plugin org.codehaus.mojo:build-helper-maven-plu
gin:1.5 or one of its dependencies could not be resolved: The following artifact
s could not be resolved: org.apache.maven:maven-project:jar:2.0.2, org.apache.ma
ven:maven-core:jar:2.0.2: Could not transfer artifact org.apache.maven:maven-pro
ject:jar:2.0.2 from/to central (https://repo.maven.apache.org/maven2): GET reque
st of: org/apache/maven/maven-project/2.0.2/maven-project-2.0.2.jar from central
failed: Read timed out -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :hadoop-hdfs

GET request of: org/apache/maven/maven-project/2.0.2/maven-project-2.0.2.jar from central failed: Read timed out
温馨提示:答案为网友推荐,仅供参考
相似回答