[英]on new Maven Project: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6?
[英]Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2
我正在使用 eclipse mars-2。 我想在 Windows 中創建一個新的 maven spring boot 項目。 但我收到了類似的錯誤
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.2
or one of its dependencies could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
Plugin org.apache.maven.plugins:maven-war-plugin:2.2 or one of its dependencies
could not be resolved: Failed to read artifact
descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.2
誰能幫我解決這個問題?
您還可以執行以下步驟。 有時它有幫助
.m2/repository/
文件夾mvn clean install
mvn build
資源鏈接: 無法計算構建計划:插件 org.apache.maven.plugins:maven-jar-plugin:2.3.2 或其依賴項之一無法解析
當您安裝像 ECLIPSE 或 STS 這樣的 UDE 時,會生成一個.m2
文件夾,其中包含settings.xml
。
在您的系統中安裝 mavan 后,您將在其中獲得一個 settings.xml。
您只需讓 IDE 知道它必須使用 meven settings.xml
,您可以通過刪除用戶文件夾中的.m2
文件、清理並安裝來實現。
現在您可以開始享受編寫代碼的樂趣了!!!!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.