How to list all activated profiles in mvn in a multimodule project

Max Rydahl Andersen picture Max Rydahl Andersen · Oct 28, 2012 · Viewed 17.7k times · Source

mvn help:active-profiles only list the profiles activate within the project + system settings you call it in.

It does not list the profiles that have been enabled/activated from i.e. the parent pom.

Any any way to actually see the full list of activated profiles by other means than trial-and-error to look at what properties are enabled or not ?

Answer

Quaestor Lucem picture Quaestor Lucem · Sep 16, 2013

Another option is mvn help:all-profiles, which also list inherited profiles.

Displays a list of available profiles under the current project. Note: it will list all profiles for a project. If a profile comes up with a status inactive then there might be a need to set profile activation switches/property.

More details in Maven's help plugin page