CHAPTER 4

image

Maven Project Basics

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.

9781484208427_Fig04-01.jpg

Figure 4-1. Maven Java project structure ...

Get Introducing Maven 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.