eclipse 如何将maven项目转换回java web项目
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26588439/
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
How to convert back maven project to java web project
提问by Tarun Chaudhary
I have converted my java web projectto maven projectusing m2e pluginin eclipse. Now i need to convert it back to java web project. So now how it is possible to change it back to java web project.
我已经在 Eclipse 中使用m2e 插件将我的java web 项目转换为maven 项目。现在我需要将它转换回 java web 项目。那么现在如何将其改回 java web 项目。
回答by DirkNM
Please try the following:
请尝试以下操作:
- Open context menu on the maven project
- Select "Maven" -> "Disable Maven Nature"
- 在 Maven 项目上打开上下文菜单
- 选择“Maven”->“禁用Maven Nature”
Hope that helps.
希望有帮助。
回答by Vipul Gulhane
Use this maven command
使用这个 Maven 命令
mvn eclipse:eclipse
http://mytechnologythought.blogspot.com/2017/09/convert-maven-project-to-eclipse.html
http://mytechnologythought.blogspot.com/2017/09/convert-maven-project-to-eclipse.html
回答by RosscoGiordano
I had the same problem when attempting to use Maven with EFXclipse. I wanted to revert, but faced all kinds of unknown errors after following the answer from @DirkNM
尝试将 Maven 与 EFXclipse 一起使用时,我遇到了同样的问题。我想恢复,但在遵循@DirkNM的回答后遇到了各种未知错误
So, I just created a new project of my particular type (be it an EFXclipse project, web, java, etc.)
所以,我刚刚创建了一个我的特定类型的新项目(无论是 EFXclipse 项目、web、java 等)
And then re-added all source files and project dependencies to build-path manually.
然后手动将所有源文件和项目依赖项重新添加到 build-path 中。
Sounds harder, but was way easier... considering I didn't have to go looking for all kinds of random settings not reverted back using the answer from @DirkNM
听起来更难,但要容易得多......考虑到我不必去寻找使用@DirkNM 的答案不会恢复的各种随机设置