我无法使用此 IDE Spring 工具套件创建新的 Maven 项目。 它显示了以下错误
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (https://repo.maven.apache.org/maven2): proxy.example.com
我的STS版本是3.7.1 RELEASE 有谁可以帮忙吗
最佳答案
我遇到了完全相同的问题,因为我在某处读到该错误是由缓存文件引起的,所以我通过删除 de .m2 存储库文件夹下的所有文件来修复它。下次构建项目时,我必须再次下载所有依赖项,但这是值得的。
关于java - 无法在STS中创建maven项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34357657/