简体   繁体   English

无法在STS中创建Maven项目

[英]Can't create maven project in STS

I can't create new maven project using this IDE Spring Tool Suite. 我无法使用此IDE Spring Tool Suite创建新的Maven项目。 It show me the following errors 它显示了以下错误

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 CoreException:无法计算构建计划:插件org.apache.maven.plugins:maven-compiler-plugin:3.1或其依赖项之一无法解析:无法读取org.apache.maven.plugins:maven-的工件描述符编译器插件:jar:3.1:ArtifactResolutionException:无法将工件org.apache.maven.plugins:maven-compiler-plugin:pom:3.1从中央转移到中央( https://repo.maven.apache.org/maven2 ) :proxy.example.com

enter image description here 在此处输入图片说明

the version of my STS is 3.7.1 RELEASE Could any one please help 我的STS版本是3.7.1版本请任何人帮助

I had the exact same problem and since I read somewhere that the error was caused by a cached file, I fixed it by deleting all the files under de .m2 repository folder. 我遇到了完全相同的问题,并且由于我在某处读取到该错误是由缓存的文件引起的,因此我通过删除de .m2存储库文件夹下的所有文件来解决此问题。 The next time I built the project I had to download all the dependencies again but it was worth it. 下次构建项目时,我不得不再次下载所有依赖项,但这是值得的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM