Maven: The Complete Reference - 5.4. Listing Active Profiles |
|
Maven profiles can be defined in either pom.xml, profiles.xml,
~/.m2/settings.xml, or ${M2_HOME}/conf/settings.xml. With
these four levels, there’s no good way of keeping track of profiles
available to a particular project without remembering which profiles
are defined in these four files. To make it easier to keep track of
which profiles are available, and where they have been defined, the
Maven Help plugin defines a goal, $ mvn help:active-profiles Active Profiles for Project 'My Project': The following profiles are active: - my-settings-profile (source: settings.xml) - my-external-profile (source: profiles.xml) - my-internal-profile (source: pom.xml) |