Activate 2 build profile on maven via command

27 Views Asked by At

how should looks like the output of the command that works I try this

mvn test -P 'test,normal'

and I think it works only show this messages strange (for me, I've started to learn maven recently)

[WARNING] The requested profile "'test" could not be activated because it does not exist.
[WARNING] The requested profile "normal'" could not be activated because it does not exist.

so, the question is how do I identy that already run both profiles?

When I run the command with double quotes doesn't show the warnings but I think that only execute the normal profile, because it shows

[INFO] Executing tasks
 [echo] Using env.properties
[INFO] Executed tasks

Something similar occurs when I run commands that follow

mvn test -Ptest -Pnormal
mvn test -Ptest,normal

So I am not sure how should be look. Thanks for your help. I base on this discussion How do I invoke two different profiles in one maven command?

0

There are 0 best solutions below