I'm using Spring's
@Profile to separate test-related classes from dev and prod. I'm having troubles finding a way to set
test automatically, if the goal is
mvn test (so not to specify test twice, i.e.
mvn test -Ptest). In other words, if the maven goal is
test I want the profile to be set to test without having to specifically set it in -P. Is it even possible?