The different types of Maven build profiles are:
- Per-User: This is defined in the Maven settings.xml file.
- Per Project: This is defined in the project’s pom.xml.
- Global: This is defined in the global Maven settings.xml file.
Maven build profiles can be activated or triggered in the following ways:
- Using explicit commands
- Maven settings
- On the basis of environment variables
- Configuration of the operating system
- Present/missing files