I\'m trying to set an active profile in Spring Boot application using Maven 3. In my pom.xml I set default active profile and property spring.pr
I would like to run an automation test in different environments. So I add this to command maven command:
spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=productionEnv1"
Here is the link where I found the solution: [1]https://github.com/spring-projects/spring-boot/issues/1095