When I use IntelliJ (2024.3.1.1) to work with a Maven project which has been decomposed into a module hierarchy, I see this a lot:
That is, the pom.xml
files naturally sink to the bottom of the project view for the respective modules, which makes it hard to tell which one relates to which module. You can control some aspects of the sort-by order (eg Folders Always on Top) - is there a way to promote specific files like these to the top of their module?
Same goes for Gradle's build.gradle
etc, as any project with a modular hierarchy would likely want the relevant module definition control file to be prominently associated with the module name. Slightly more of a problem with Maven as the control file's name places it late in the alphabet, of course! 'Make' fixed this back in the day by converging on Makefile and letting ascii-ordering do the rest.
(Just to note, I can mitigate one level of pain by turning off Folders Always on Top as pom.xml
luckily comes before src
, but now the pom file appears in the middle of the sub-project project lists.)
No. You can't - at least not in any current version.
I've raised a feature request: https://youtrack.jetbrains.com/issue/IJPL-178265.