others - 在 Eclipse ( pom.xml ) 中,Maven 错误: 无法传输: maven 插件:maven: 2.12.4

  显示原文与译文双语对照的内容
0 0

我想使用 Maven 使web项目自动导入所有需要的库,所以我选择了 "maven-archetype-webpp"

之后,我在 pom.xml 文件上得到了这个错误:

Description Resource Path Location Type Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 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.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml/SpringTuto line 1 Maven Configuration Problem

我更新了我的项目,但没有结果 !

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>com.pre.example</groupId>
 <artifactId>SpringTuto</artifactId>
 <packaging>war</packaging>
 <version>0.0.1-SNAPSHOT</version>
 <name>SpringTuto 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>SpringTuto</finalName>
 </build>
</project>
时间:原作者:4个回答

0 0

Eclipse Maven 插件的一个好的插件是 Eclipse Maven sonatype, m2eclipse 。

堆栈管理器中的指南

或者你可以下载 Spring Framework 工具( 例如 Eclipse ) 。

原作者:
...