O'Reilly logo

Apache Maven Cookbook by Raghuram Bharathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Maven Lifecycle

Let us start putting Maven to use. In this chapter, we will cover the following recipes:

  • Understanding the Maven lifecycle, phases, and goals
  • Understanding the pom file
  • Understanding Maven settings
  • Understanding command-line options in Maven
  • Understanding Maven profiles
  • Adding a new Maven profile
  • Activating/deactivating a Maven profile
  • Using properties in Maven
  • Specifying source encoding for platform-independent builds

Introduction

We have set up Maven on our computer. We have created a simple Maven project and seen how to build it. We have also set up Maven to run on our preferred IDE.

Let us now understand better how Maven works and how to use it. We will start by understanding the Maven build lifecycle as well as the phases and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required