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?

5

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.

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?

---
Original message URL:
http://devnet.jetbrains.net/message/5286229#5286229


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please add this possibility, it can really help the project to be more logically organized. Thank you.

0

请先登录再写评论。