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.