“org.eclipse.m2e.jdt.JarLifecycleMapping”不可用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15320874/
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
"org.eclipse.m2e.jdt.JarLifecycleMapping" is not available
提问by quarks
How do I deal with this m2e plugin problem with Eclipse:
如何使用 Eclipse 处理这个 m2e 插件问题:
Description Resource Path Location Type Lifecycle mapping "org.eclipse.m2e.jdt.JarLifecycleMapping" is not available. To enable full functionality, install the lifecycle mapping and run Maven->Update Project Configuration. pom.xml /vosao-web line 11 Maven Project Build Lifecycle Mapping Problem
描述资源路径位置类型生命周期映射“org.eclipse.m2e.jdt.JarLifecycleMapping”不可用。要启用完整功能,请安装生命周期映射并运行 Maven->更新项目配置。pom.xml /vosao-web line 11 Maven 项目构建生命周期映射问题
Does anyone have fixed this issue? Or this plugin is simply not supported in Eclipse?
有没有人解决过这个问题?或者这个插件在 Eclipse 中根本不支持?
回答by user2728399
Today i had the same problem and found this page by google.
今天我遇到了同样的问题,并通过谷歌找到了这个页面。
My solution to resolve the problem right click on the project then click Maven > Update Project... then click OK. That′s all!
我解决问题的解决方案右键单击项目,然后单击 Maven > 更新项目...然后单击确定。就这样!
回答by Ravi Vyas
that's what i did on STS to resolve this issue:
这就是我在 STS 上为解决这个问题所做的:
1) Right-click on your project, select Maven -> Disable Maven Nature.
1) 右键单击您的项目,选择 Maven -> 禁用 Maven Nature。
2) Right-click on your project, select spring tools -> update maven dependencies
2)右击你的项目,选择spring tools -> update maven dependencies
3) Right click on your Project and select “Configure -> Convert into Maven Project”
3) 右键单击您的项目并选择“配置 -> 转换为 Maven 项目”
回答by vivekmore
Here's a quick solution that worked for me:
这是一个对我有用的快速解决方案:
- Disable the maven nature of the project:
- Right click on the project
- Maven
- Disable Maven Nature
- Enable the maven nature of the project
- Right click on the project
- Configure
- Convert to Maven Project
- 禁用项目的maven性质:
- 右键单击项目
- 马文
- 禁用 Maven 自然
- 启用项目的maven性质
- 右键单击项目
- 配置
- 转换为 Maven 项目
Hope this helps.
希望这可以帮助。
回答by fego
Today I resolved this problem by running eclipse with the "-clean" option (hope it will help someone in the future)
今天我通过使用“-clean”选项运行 eclipse 解决了这个问题(希望它会在将来对某人有所帮助)
回答by Narendra Rabari
only update project was not resolving the problem.
只有更新项目没有解决问题。
It forced update of snapshot/release and it works.
它强制更新快照/发布并且它有效。
回答by Néjib
The problem is fixed for me after restarting eclipse.
重新启动 eclipse 后,问题已为我解决。
Hope this helps too :-)
希望这也有帮助:-)
回答by Volodymyr Levytskyi
I had the same problem in spring tool suite(based on eclipse). I uninstalled completelly maven support and then installed it again. It helped!
我在 spring 工具套件(基于 eclipse)中遇到了同样的问题。我完全卸载了 maven 支持,然后再次安装了它。它有帮助!
回答by AlphaAtlas
I restart my STS. Then right click on the maven project -> Maven -> Update project
我重新启动我的 STS。然后在maven项目上右键->Maven->更新项目
回答by Azy
Right-click on your project, select Maven -> Disable Maven Nature. select Maven -> Update Project
右键单击您的项目,选择 Maven -> 禁用 Maven Nature。选择 Maven -> 更新项目
回答by s.a.k.arif
Restart STS Tool.Than update your maven projects.Working fine for me.
重新启动 STS 工具。然后更新您的 Maven 项目。对我来说工作正常。