How to detect what maven profiles are activated?

2.6k Views Asked by At

I use a very complex maven project and I would like to know what maven profiles are activated when I do mvn install.

How to find this out?

3

There are 3 best solutions below

0
On

Enable the debug mode with

mvn -X install
1
On

You can simply check by using:

mvn help:active-profiles
0
On

this will help

 mvn help:active-profiles

for more details refer Maven Build profile