将 Maven 性质添加到具有 pom 但没有 Maven 子菜单的现有 Eclipse 项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32399467/
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
Add Maven nature to existing Eclipse project that has pom but no Maven submenu
提问by Captain Man
How can I convert a project to Maven nature when there is no sub-menu for Maven on right click in Eclipse? The project already has a POM file.
当 Eclipse 中右键单击没有 Maven 子菜单时,如何将项目转换为 Maven 性质?该项目已经有一个 POM 文件。
回答by ShrekWang
Right click on the project- Configure - Convert -Convert to Maven Project
右键项目-配置-转换-转换为Maven项目
This is also a method to refresh the Maven Dependencies.
这也是刷新Maven依赖的一种方法。
回答by Captain Man
Delete the project (but do notdelete it from disk) and re-import but choose to import an existing Maven project.
删除的项目(但不从磁盘中删除)并重新导入而是选择导入现有Maven项目。