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

5. Maven Lifecycle

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

Central to Maven is its lifecycle that provides a uniform interface for building and distributing projects. In this chapter, we will review the lifecycle and building blocks that make up the lifecycle.

Goals and Plug-ins

Build processes generating artifacts such as JAR or WAR files typically require several steps and tasks to be completed successfully in a well-defined order. Examples of such tasks include compiling source code, running unit tests, and packaging of the artifact. Maven uses the concept of goals to represent such granular tasks.

To better understand what a goal is, let’s look at ...

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.