How to detect what maven profiles are activated?
Asked Answered
S

3

5

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?

Sholley answered 4/11, 2011 at 10:19 Comment(0)
S
12

You can simply check by using:

mvn help:active-profiles
Sallie answered 4/11, 2011 at 10:44 Comment(1)
Works perfectly! Thanks! If you'd like to see the profile before carrying out your regular steps, as with all maven tasks you can chain them e.g: mvn help:active-profiles clean package. This will print the active profile at the beginning of your output and you can be sure the subsequent steps are running in your desired context.Cooley
X
3

this will help

 mvn help:active-profiles

for more details refer Maven Build profile

Xeres answered 4/11, 2011 at 10:48 Comment(0)
C
0

Enable the debug mode with

mvn -X install
Couchman answered 4/11, 2011 at 10:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.