gpt4 book ai didi

java - 无法计算构建计划 : Plugin org. apache.maven.plugins :maven-war-plugin:2. 2

转载 作者:太空宇宙 更新时间:2023-11-04 11:31:37 26 4
gpt4 key购买 nike

我正在使用 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

谁能帮我解决这个问题吗?

最佳答案

您还可以执行以下步骤。有时它会有所帮助

  1. 移除/删除您的 .m2/repository/ 文件夹
  2. 然后运行以下命令mvn clean install
  3. 然后运行mvn build

资源链接:Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved

关于java - 无法计算构建计划 : Plugin org. apache.maven.plugins :maven-war-plugin:2. 2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43708391/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com