Build Profiles

This lesson explains the concept of build profiles in Maven that can be used to customize a build for a targeted environment such as production or test.

The notion of a profile when building Maven projects stems from the need for build portability. The ease with which a particular project can be built for different environments is referred to as build portability. For example, if you are working on a project on your local machine, can another developer easily clone your project on their machine and build it successfully? If your project has dependencies only found on your machine, other developers will not be able to build your project and the project will not be considered portable. Build portability isn’t a binary attribute, rather it spans a spectrum as shown below:

Get hands-on with 1400+ tech skills courses.