profiles
Using a profile to run a build.
Can run each profile using mvn clean verify -P
Can activate multiple profiles mvn clean verify -P ,
USe of maven-help-plugin, to display active profile at compile time
use profiles to set properties
no-tests true ```
we can configure many elements such as dependencies, plugins, resources, finalName.
Activating profile by default
integration-tests true ``` - Dont need to use -P to run the profile - If we use the -P, this will use the profile instead of the default one
Activate automatically, based on env variable -D
mvn package -Denvironment
Or by the absence
So calling mvn package -Denvironment will not run this profile
Last updated
Was this helpful?