繁体   English   中英

无法使用SpringSource Tool Suite计算构建计划

[英]Could not calculate build plan with SpringSource Tool Suite

我在IDE配置方面遇到了一些麻烦。 我无法更新我的Maven项目。

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有什么问题?

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

至于您的实际问题:您下载的依赖项可能在某种程度上已损坏。 尝试删除文件夹C:\\Users\\dolgopolov.a\\.m2\\repository\\org\\apache\\maven\\plugins\\maven-war-plugin然后尝试重新构建。 Maven应该重新下载依赖项,希望这次正确。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM