© Balaji Varanasi 2019
B. VaranasiIntroducing Mavenhttps://doi.org/10.1007/978-1-4842-5410-3_3

3. Maven Dependency Management

Balaji Varanasi1 
(1)
Salt Lake City, UT, USA
 
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. There are a couple of problems with this approach:
  1. 1.

    The JAR file you downloaded might depend on a few other libraries. You would now have to hunt down all of those dependencies (and their dependencies) and add them to your project.

     
  2. 2.

    When the time comes to upgrade ...

Get Introducing Maven: A Build Tool for Today's Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.