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

4. Maven Project Basics

Balaji Varanasi1 
(1)
Salt Lake City, UT, USA
 

Maven provides conventions and a standard directory layout for all of its projects. As discussed in Chapter 1, this standardization provides a uniform build interface, and it also makes it easy for developers to jump from one project to another. This chapter will explain the basics of a Maven project and the pom.xml file.

Basic Project Organization

The best way to understand Maven project structure is to look at one. Figure 4-1 illustrates a bare-bones Maven-based Java project.
../images/332298_2_En_4_Chapter/332298_2_En_4_Fig1_HTML.png
Figure 4-1

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.