Java 无法在 spring 工具套件中更新以下项目的 maven 配置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18273020/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to update maven configuration for the following project in spring tool suite
提问by MobiDev
I'm getting this error for my project that is working well in my other PC. I have imported Maven project and tried to update maven dependencies and it says....
我的项目在我的另一台电脑上运行良好,我收到了这个错误。我已经导入了 Maven 项目并尝试更新 Maven 依赖项,它说....
Unable to update maven configuration for the following project and Updating Maven has encountered a problem could not find .classpath
无法为以下项目更新 Maven 配置,并且更新 Maven 遇到了找不到 .classpath 的问题
I'm using STS 3.0.0. JRE 1.7 ..
我正在使用 STS 3.0.0。JRE 1.7 ..
回答by user2550754
Remove Maven Nature
of your project
. And Add Maven Nature
again.
Remove Maven Nature
你的project
. 而Add Maven Nature
一次。
回答by Guizmoo03
May be you have a sourceDirectoy tag in your pom and where you specified 'src'
just remove it and it will do the job
可能你的 pom 中有一个 sourceDirectoy 标签,在你指定 'src' 的地方
只需删除它,它就会完成这项工作
回答by mohamed hamidi
I get the same problem when I imported a maven project to my workspace. I solved that issue by just closing the project and re-open it, then run the update maven configuration on it.
当我将 Maven 项目导入到我的工作区时,我遇到了同样的问题。我通过关闭项目并重新打开它来解决该问题,然后在其上运行更新 Maven 配置。
回答by SAPAN BHARUCHA
Unable to update Maven configurationCould not calculate build plan:Plugin org.apache.maven.plugins:maven-resources-plugin:2.7 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
无法更新 Maven 配置无法计算构建计划:插件 org.apache.maven.plugins:maven-resources-plugin:2.7 或其依赖项之一无法解析:无法读取 org.apache.maven.plugins 的工件描述符:maven-resources-plugin:jar:2.7
I was getting this error while performing Maven Force Update Snapshots however same project I was able to force update in different workspace on the same machine.
我在执行 Maven Force Update Snapshots 时遇到此错误,但是我能够在同一台机器上的不同工作区中强制更新同一个项目。
Issue was Workspace not pointing to correct maven installation and settings.xml.
问题是 Workspace 没有指向正确的 maven 安装和 settings.xml。
GO to Window > Preference > Maven > Installation Point to to correct maven installation Window > Preference > Maven > User Settings Both global and user settings points to correct settings.xml file.
转到 Window > Preference > Maven > Installation Point 以更正 maven 安装 Window > Preference > Maven > User Settings 全局和用户设置都指向正确的 settings.xml 文件。