简体   繁体   English

Maven eclipse:pom.xml的项目配置不是最新的

[英]Maven eclipse: project configuration is not up to date with pom.xml

I was just wondering if any of you have a tip to avoid getting the eclipse error: 我只是想知道你们中是否有人提示避免发生日食错误:

project configuration is not up to date with pom.xml each time you switch branch with different pom files. 每次您使用不同的pom文件切换分支时,pom.xml的项目配置都不是最新的。 This is really annoying and I know just selecting it and doing quick fix or doing maven update solve it but it is a lost of time each time. 这确实很烦人,我知道只选择它并进行快速修复或进行maven更新就可以解决它,但这每次都浪费了时间。

Thanks ;). 谢谢 ;)。

m2e首选项中有一个实验性选项,可以自动更新项目。

Dose refresh the file and turn the auto build works? 剂量刷新文件并打开自动构建功能? I think this cause the cache of the m2e plugins. 我认为这导致了m2e插件的缓存。 It treats the file change, when you switch the branch.It should refresh the cache, so you must manual do it as your said. 当您切换分支时,它会处理文件更改。它应该刷新缓存,因此您必须按照您的说明手动进行操作。

Please press Alt and hold it down. 请按住Alt键 Then press F5 s o , then release Alt and press return . 然后按F5 s o ,然后释放Alt并按return

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

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