Sort maven dependencies in Eclipse

Sebastien Lorber picture Sebastien Lorber · Sep 28, 2010 · Viewed 18k times · Source

Just wanted to know if it is possible in Eclipse to sort Maven dependencies by alphabetical order?

It's bothering me to have a list of 200 jars not ordered... :(

Answer

Aaron Digulla picture Aaron Digulla · Sep 28, 2010

I guess you refer to the m2eclipse plugin. You have these options:

  1. The order in the navigator is the classpath order. You can sort the dependencies in the POM to get a better list. Of course, there is a problem with transient dependencies.

  2. You can open the POM file in the POM editor and examine the dependencies in the tab "Dependency Hierarchy"

  3. You can type part of the name of a dependency to locate it when the tree item "Maven Dependencies" is open.