Activating and Deactivating Maven Profiles
Build profiles define the type of executing Maven goals, and affect the way Maven projects are imported. For example, you can define dedicated release, test or debug profiles.
Profiles are declared in the <profiles>
section of a pom.xml
file. You can view the profiles defined in your pom.xml
files in the Profiles list of the Maven Projects tool window.
Adding profile
tag to the profiles
section of a pom.xml
file adds a new profile check box under the Profiles node:
To toggle between active and inactive state of a profile
- In the Maven Projects tool window, expand the Profiles node and select the desired profile.
- To activate a profile, select its check box. To deactivate profile, clear its check box.
See Also
Last modified: 18 July 2017