Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Eclipse 中创建了一个 Java EE 项目。但现在我决定改用 Spring,所以我希望它是一个更简单的动态 Web 应用程序。我认为这意味着我必须删除“EJB 模块”项目方面并添加“动态 Web 模块”方面。但 Eclipse 拒绝让我这样做,抱怨“无法卸载 EJB 3.1 模块”。我不敢相信 Eclipse 让我的意图变得不可能,那么我该如何正确地做到这一点呢?
我能够通过手动编辑.project文件来删除 Java EE 方面,更改性质以删除 Java EE 性质:
.project
<natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.m2e.core.maven2Nature</nature> <nature>org.eclipse.mylyn.wikitext.ui.wikiTextNature</nature> </natures>