具有“相同”名称的多个IntelliJ / Maven模块? [英] Multiple IntelliJ/Maven modules with 'same' name?

查看:150
本文介绍了具有“相同”名称的多个IntelliJ / Maven模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为.NET世界Java / Maven / IntelliJ的新手,下面的项目结构(通过IDE创建的'local' core 子模块的嵌套模块,没有手工制作的 pom 's)对我来说非常有意义。为什么IntelliJ在重新打开项目后不喜欢多个核心?是不好的项目/文件夹结构?我是否可以绕过它而不必为每个核心添加冗余 foo-bar - foo -baz - 限定符和污染项目窗口( artifactId 已将它们用于构建)?

As a newcomer to Java/Maven/IntelliJ from .NET world the project structure below (nested modules with 'local' core submodules created through IDE, no handcrafted pom's) makes perfect sense to me. How come IntelliJ doesn't like multiple core's after reopening the project? Is it bad project/folder structure? Can I get around it without unnecessarily prefixing each core with redundant foo-bar- and foo-baz- qualifiers and polluting Project window (artifactId's have them already for builds)?

http://i.stack.imgur.com/mP8Ch.png

推荐答案

您的项目结构很好。我觉得问题出在IDE上,我也用Eclipse看过这个问题。

Your project structure is fine. The issue I feel is with the IDE, I had seen this with Eclipse too.

IDE应该在pom.xml文件中将项目命名为artifactId,这当然可以被覆盖,你试过运行mvn idea:idea?

The IDE should name the project with regards tot he artifactId in the pom.xml file, this can of course be overridden, have you tried running mvn idea:idea?

这篇关于具有“相同”名称的多个IntelliJ / Maven模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆