IntelliJ IDEA 14.0.0 Web Help

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:

img

To toggle between active and inactive state of a profile

  1. In the Maven Projects tool window, expand the Profiles node and select the desired profile.
  2. To activate a profile, select its check box. To deactivate profile, clear its check box.

See Also

Last modified: 12 November 2014
comments powered by Disqus