Eclipse: Dependency Management

What are some methods of using Eclipse for dependency management?

+7
java eclipse maven-2 dependencies eclipse-plugin
source share
3 answers

I really like Maven Integration for Eclipse (m2eclipse, Eclipse m2e) . I use it exclusively for the dependency management function. It's great that you don’t need to go out and download a bunch of new cans every time I set up a project.

+14
source share

An easier way is the Maven Eclipse plugin (as opposed to the Maven plugin for Eclipse). It's just a maven plugin that generates a .project and .classpath file based on pom content, you just run mvn eclipse:eclipse , and you're done. It uses the classpath variable in Eclipse to find the local maven repository.

I personally prefer this approach most of the time because you have more control over updating maven plugins. This is also one less Eclipse plugin for the solution. The m2eclipse plug-in GUI features in the latest version are pretty nice.

There is also an alternative to the m2eclipse plugin called Q4E , now called the Eclipse IAM .

+4
source share

Another option is ivy. Ivy also has eclipse integration.

A comparison of maven and ivy can be found here: http://ant.apache.org/ivy/m2comparison.html

+1
source share

All Articles