我在SpringSource Tool Suite中创建了一个新的maven项目.我在新的maven项目中遇到此错误.
无法转移org.apache.maven.plugins:来自http://repo1.maven.org/maven2的 maven-surefire-plugin:pom:2.7.1 被缓存在本地存储库中,在更新间隔之前不会重新尝试解析中心已经过去或强制更新.原始错误:无法传输工件org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central(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>
Run Code Online (Sandbox Code Playgroud)
将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>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
<servers>
</servers>
<mirrors>
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
</mirrors>
<profiles>
</profiles>
</settings>
Run Code Online (Sandbox Code Playgroud)
请注意,我能够构建它.在IDE中的pom.xml中显示错误.任何解决方案?
如何在eclipse中创建一个简单的maven项目.每次创建它时都会在创建项目时出错.
错误说明资源路径位置类型CoreException:无法计算构建计划:插件org.apache.maven.plugins:maven-compiler-plugin:2.3.2或其中一个依赖项无法解析:无法读取org的工件描述符. apache.maven.plugins:maven-compiler-plugin:jar:2.3.2:ArtifactResolutionException:无法从http://repo1.maven转移org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 .org/maven2缓存在本地存储库中,在中心的更新间隔过去或强制更新之前,不会重新尝试解析.原始错误:无法传输工件org.apache.maven.plugins:maven-compiler-plugin:pom:2.3.2 from/to central(http://repo1.maven.org/maven2):连接超时pom.xml/speech-to-text line 1 Maven Project构建生命周期映射问题