Maven Plugin (Spring Boot)
Introduction
The Spring Boot Maven Plugin provides Spring Boot support in Maven, allowing you to package executable jar or war archives and run an application “in-place”.
The Spring Boot Plugin has the following goals.
spring-boot:run runs your Spring Boot application.
spring-boot:repackage repackages your jar/war to be executable.
spring-boot:start and spring-boot:stop to manage the lifecycle of your Spring Boot application (i.e. for integration tests).
spring-boot:build-info generates build information that can be used by the Actuator.
Run app using the 'test' application.properties
https://www.baeldung.com/spring-boot-command-line-arguments
The --spring.config.location was introduced in Spring Boot 2. Multiple values can be separated by commas.
mvn spring-boot:run -Dspring-boot.run.arguments=--spring.config.location=file:./src/test/resources/