views:

46

answers:

2

Hello,

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... :(

+3  A: 

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.

Aaron Digulla
Thanks, 3) is ok for me ;)
Sebastien Lorber
Depressing. This is a good answer (+1), but the options are very unsatisfactory. Perhaps someone should file a feature request for an alphabetic order option, but I wouldn't know if that should be targeted at eclipse or at m2eclipse.
seanizer
@seanize: Just do it. IIRC, there already is one.
Aaron Digulla
A: 

have a look at the project properties in the 'java build path' section under the 'libraries' tab.

i don't know for sure if this works for the m2eclipse plugin.

Salandur