2
我使用Spring工具套件(最新版本),每當我做新建工程一個新的Maven項目時 - > Maven項目並選擇Maven的原型 - web應用我的原型,我得到以下奇怪的錯誤在我的pom文件中。奇怪的故障創建
Failure to transfer org.codehaus.plexus:plexus-components:pom:1.1.18 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.plexus:plexus-components:pom:1.1.18 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000
而且,這裏的很短,簡單的生成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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>Tset</groupId>
<artifactId>Tset</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Tset Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>Tset</finalName>
</build>
</project>
我在這一個新手,所以我可能只是缺少明顯的東西。
我通過從一個ROO生成的新項目中獲取POM文件解決了這個問題,但我很好奇這是什麼原因以及我如何解決它。
很多感謝您花時間回答! :d – Eugen