[英]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 version
和xmlns
附近。 它說:
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.