Searching repository for plugin with prefix: 'eclipse'.
org.apache.maven.plugins: checking for updates from central
NG] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file: Connection timed out: connect
Repository 'central' will be blacklisted
------------------------------------------------------------------------
] BUILD ERROR
------------------------------------------------------------------------
The plugin 'org.apache.maven.plugins:maven-eclipse-plugin' does not exist or no valid version could be found
------------------------------------------------------------------------
For more information, run Maven with the -e switch
------------------------------------------------------------------------
Total time: 22 seconds
Finished at: Fri Aug 26 17:42:01 IST 2011
Final Memory: 3M/15M
答案 0 :(得分:0)
此问题可能是由于可能是临时网络问题。当我们参与其中时,如果您计划将Maven与Eclipse一起使用,请不要使用maven-eclipse-plugin
,而是使用m2e / m2eclipse Eclipse插件。哪一个取决于您使用的是哪个版本的Eclipse; m2e是积极开发的,但仅适用于3.7(Indigo),m2eclipse是与3.6(Helios)一起使用的传统版本。
答案 1 :(得分:0)
可能有几个原因:
如果插件实际存在于Maven存储库中,那么
-U
开关运行maven