SpringMaven项目构建错误

SpringMaven项目构建错误,maven,sts-springsourcetoolsuite,Maven,Sts Springsourcetoolsuite,我正在使用spring和maven创建一个新项目,我正在使用spring源代码工具。我已经创建了SpringWebMaven项目。创建的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

我正在使用spring和maven创建一个新项目,我正在使用spring源代码工具。我已经创建了SpringWebMaven项目。创建的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>org.springframework.samples.service.service</groupId>
  <artifactId>SpringWeb</artifactId>
  <version>0.0.1-SNAPSHOT</version>

<other part is removed>
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'SpringWeb'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5
Plugin org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.5

我不明白什么是错误。是否正确配置pom.xml文件。我在互联网上查看了配置是否正确。

您提供的信息很少,至少可以在pom.xml中看到您的maven resources插件配置

但一般来说,您可能正在使用某个代理,并且在下载插件jar时,您收到了一个HTML格式的HTTP错误响应,该响应在repo中保存为jar


尝试手动从repo中删除jar并再次运行构建。

您提供的信息很少,至少可以在pom.xml中看到您的maven resources插件配置

但一般来说,您可能正在使用某个代理,并且在下载插件jar时,您收到了一个HTML格式的HTTP错误响应,该响应在repo中保存为jar

尝试手动从repo中删除jar,然后再次运行构建。

检查此帖子:检查此帖子: