executando assim da certo: PS C:\DEV\spring-boot\api> java -jar api\target\api-0.0.1-SNAPSHOT.jar
E trocando o profile para -prod nao da certo: PS C:\DEV\spring-boot\api> java -Dspring.profiles.active=prod -jar api\target\api-0.0.1-SNAPSHOT.jar Error: Could not find or load main class .profiles.active=prod Caused by: java.lang.ClassNotFoundException: /profiles/active=prod