20
无法将工件org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1从中央传输到中央(http://repo1.maven.org/maven2)
我在SpringSource Tool Suite中创建了一个新的maven项目。我在新的Maven项目中遇到此错误。 无法从http://repo1.maven.org/maven2传输org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 缓存在本地存储库中,直到更新间隔才会重新尝试解析已用完或已强制更新。原始错误:无法将文物org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1从中央传输到中央(http://repo1.maven.org/maven2):连接超时 pom.xml: <project 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/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.test.app</groupId> <artifactId>TestApp</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>TestApp</name> <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project> Settings.xml <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups> </pluginGroups> <proxies> <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>user</username> <password>pass</password> <host>ip</host> <port>80</port> …