Mobile App Development - Maven

Back to Course

Lesson Description

Lession - #411 Maven Build Profile

A Build profile is a set of configuration values, which can be utilized to set or override default values of Maven build. Utilizing a build profile, you can alter build for various environments like Production v/s Development environment. Profiles are specified in pom.

Maven profiles can be utilized to make altered build configurations, such as targeting a level of test granularity or a particular deployment environment.

Types of Build profile

Per Project -

Defined in the POM itself (pom.xml>

Per User -

Defined in the Maven-settings (%USER_HOME%/.m2/settings.xml>

Global -

Defined in the global Maven-settings (${maven.home}/conf/settings.xml>

Profile descriptor -

A descriptor located in project basedir (profiles.xml>

Build profile Example