java - 无法在STS中创建maven项目

标签 java spring maven model-view-controller

我无法使用此 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

enter image description here

我的STS版本是3.7.1 RELEASE 有谁可以帮忙吗

最佳答案

我遇到了完全相同的问题,因为我在某处读到该错误是由缓存文件引起的,所以我通过删除 de .m2 存储库文件夹下的所有文件来修复它。下次构建项目时,我必须再次下载所有依赖项,但这是值得的。

关于java - 无法在STS中创建maven项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34357657/

相关文章:

java - 带有 Hibernate 的 Postgres jsonb

java - 递归 Karatsuba 乘法不起作用?

java - 如何知道哪个 PMD 规则失败?

java - Primefaces 向导。如何返回onnext的js函数选项卡

java - 面向对象结构设计

java - Spring Webflux : How to use different thread for request and response

java - 许多数据库操作的Spring Integration @Transactional回滚

spring - Spring Controllers 中的并发方法入口

java - 如何在 JAR 文件名中包含内部版本号?

java - 如何配置jenkins定期构建和运行spring boot项目?