Maven Dependency Management

Enterprise-level projects typically depend on a variety of open source libraries. Consider the scenario where you want to use Log4J for your application logging. To accomplish this, you would go to the Log4J download page, download the JAR file, and put it in your project’s lib folder or add it to the project’s class path. As you may know already, there are a couple of problems with this approach:

  1. You need to check JAR files into SVN so that your projects can be built on a computer other than your own.
  2. The JAR file you downloaded might depend on a few other libraries. You would now have to hunt down all ...

Get Introducing Maven now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.