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.


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/