然后按照上面说的。运行mvn -Declipse.downloadSources=true eclipse:eclipse
又抱错误找不到。
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [eclipse:eclipse]
[WARNING] This plugin currently doesn't support include patterns for resources.
Adding the entire directory.
[WARNING] This plugin currently doesn't support include patterns for resources.
Adding the entire directory.
Downloading:
http://www.ibiblio.org/maven2/org/springframework/spring-mock/1.2.6">
http://www.ibiblio.org/maven2/org/springframework/spring-mock/1.2.6
/spring-mock-1.2.6-sources.jar
[WARNING] Unable to get resource from repository central (
http://www.ibiblio.org
/maven2)
Downloading:
http://www.openfans.org:81/maven2/org/springframework/spring-mock/1">
http://www.openfans.org:81/maven2/org/springframework/spring-mock/1
.2.6/spring-mock-1.2.6-sources.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Error transferring file
org.springframework:spring-mock:java-source:1.2.6
from the specified remote repositories:
central (
http://www.ibiblio.org/maven2),
openfans (
http://www.openfans.org:81/maven2)
Caused by I/O exception: Connection refused: connect
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Tue Apr 11 17:45:56 GMT+08:00 2006
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------