[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin
:pom:2.4.3' from repository AsiainfoCUVSD (http://vsd.asiainfo.com/maven): Error
 transferring file: Connection timed out: connect
Downloading: http://repos.zeroturnaround.com/maven2/org/apache/maven/plugins/mav
en-surefire-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin
:pom:2.4.3' from repository zt-repo (http://repos.zeroturnaround.com/maven2): Er
ror transferring file: Connection refused: connect
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefi
re-plugin/2.4.3/maven-surefire-plugin-2.4.3.pom
[WARNING] Unable to get resource 'org.apache.maven.plugins:maven-surefire-plugin
:pom:2.4.3' from repository central (http://repo1.maven.org/maven2): Error trans
ferring file: Connection refused: connect
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: org.apache.maven.plugins:maven-surefire-pluginReason: POM 'org.apache.maven.plugins:maven-surefire-plugin' not found in reposi
tory: Unable to download the artifact from any repository  org.apache.maven.plugins:maven-surefire-plugin:pom:2.4.3from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  jboss2 (https://repository.jboss.org/nexus/content/groups/public),
  bonecp-repo (http://jolbox.com/bonecp/downloads/maven),
  AsiainfoCUVSD (http://vsd.asiainfo.com/maven),
  zt-repo (http://repos.zeroturnaround.com/maven2),
  jboss (http://repository.jboss.com/maven2) for project org.apache.maven.plugins:maven-surefire-plugin
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30 seconds
[INFO] Finished at: Thu Mar 28 08:49:33 GMT 2013
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------
               这是咋回事了?mavenjava

解决方案 »

  1.   

    maven-surefire-plugin 插件有问题。
    把你的pom.xml 贴出来看看
      

  2.   

    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
    <skip>true</skip>
    </configuration>
    </plugin>
     
       请教!!!!!!!!!!!!!!!!!!!!!
      

  3.   

    这个是代理问题 你公司用代理上网吧 
      C:\Users\tangxin\.m2这个目录下面创建一个settings.xml。内容如下: <settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                                     http://maven.apache.org/xsd/settings-1.0.0.xsd">
         <localRepository />
         <interactiveMode />
         <usePluginRegistry />
         <offline />
         <pluginGroups />
         <servers />
         <proxies>
             <!-- 使用代理上网 -->
             <proxy>
                 <id>optional</id>
                 <active>true</active>
                 <protocol>http</protocol>
                 <username></username>
                 <password></password>
                 <host>172.16.1.35</host>
                 <port>80</port>
                 <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
             </proxy>
         </proxies>
         <profiles />
         <activeProfiles />
     </settings>