When adding the module to an existing module that already has a POM, it is necessary to manually specify that the new module will be in a different directory. This is counter-intuitive, but I think the "Add Module" dialog was not built with maven specifically in mind.
What this means is when you are adding a module to an existing module with a POM, for example, an aggregator project, on the second page of the dialog, you need to manually copy and paste the "Module Name" onto the end of the "Content root" and "Module file locations".
在这个页面把moudle的名字加上

向已有POM的现有模块添加新模块时,需手动指定新模块在不同目录。‘Add Module’对话框并非专为Maven设计,如向有POM的现有模块(如聚合器项目)添加模块,需在对话框第二页手动将‘Module Name’复制粘贴到‘Content root’和‘Module file locations’末尾。

5万+

被折叠的 条评论
为什么被折叠?



