Chapter 4. Essential Maven Plugins

In this chapter, we will look at the following recipes:

  • Using the Maven Clean plugin
  • Using the Maven Compiler plugin
  • Changing the compiler used by the Maven Compiler plugin
  • Specifying the Java version for the Compiler plugin
  • Using the Maven Surefire plugin to run unit tests
  • Using the Maven Failsafe plugin to run integration tests
  • Using the Maven Resources plugin
  • Filtering using resources
  • Using Eclipse to run Maven goals
  • Using NetBeans to run Maven goals
  • Using IntelliJ IDEA to run Maven goals

Introduction

In the previous chapter, we learned about the Maven lifecycle and the phases and goals of the lifecycle, understood the essential elements of the pom project configuration file and the settings file, and learned to use Maven ...

Get Apache Maven Cookbook 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.