2014-02-13 34 views
1

我在使用IDE配置时遇到了一些麻烦。我无法更新我的Maven项目。无法使用SpringSource工具套件计算构建计划

Could not calculate build plan: Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\dolgopolov.a\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature) 
Failed to parse plugin descriptor for org.apache.maven.plugins:maven-war-plugin:2.1.1 (C:\Users\dolgopolov.a\.m2\repository\org\apache\maven\plugins\maven-war-plugin\2.1.1\maven-war-plugin-2.1.1.jar): invalid LOC header (bad signature) 

pom.xml

<?xml version="1.0" encoding="UTF-8"?> 
<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"> 

标记被定位附近xml versionxmlns。它说:

The word 'xml' is not correctly spelled 
The word 'xmlns' is not correctly spelled 

sts有什么问题?

回答

1

首先:您看到的标记只是您的IDE拼写检查器。它不知道这两个字,但它们在你的pom中是正确的。你可以忽略它。

至于你的实际问题:你下载的依赖可能以某种方式损坏。尝试删除文件夹C:\Users\dolgopolov.a\.m2\repository\org\apache\maven\plugins\maven-war-plugin并尝试再次构建。 Maven应该重新下载依赖关系,希望这次能够正确地执行。

如果这不起作用,您可能会在代理后面,无法从Maven存储库正确下载依赖关系。

相关问题