Can I sort modules according to the maven pom.xml?
I use maven to manage my projects.
For example, consider a project like this:
<project>
<artifact>proj</artifact>
<packaging>pom</packaging>
<modules>
<module>common</module>
<module>api</module>
<module>console</module>
<module>web</module>
<module>bundle</module>
</modules>
</project>
After appending this pom.xml into project, IDEA's maven plugin parses <modules>, and imports
all modules automatically. The problem is, in the project explorer, these modules are sorted in
alphabetic order (api, bundle, common, console, web), but not the given order in pom.xml.
Since the pom order usually explained the dependency layering, this made me difficult to find a
certain one in a bunch of modules. So, is there any option to let me sort modules according to
the order in maven pom.xml?
请先登录再写评论。
Hello Mo,
There is no such option at the moment. The Project view shows the physical
structure of your project on disk, not logical structure according to some
criteria.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Please add this possibility, it can really help the project to be more logically organized. Thank you.
Please leave your comment in the related issue: https://youtrack.jetbrains.com/issue/IDEA-177354