Goals

The Spring Boot Plugin has the following goals:spring-doc.cn

Goal Description

spring-boot:build-imagespring-doc.cn

Package an application into an OCI image using a buildpack, forking the lifecycle to make sure that package ran. This goal is suitable for command-line invocation. If you need to configure a goal execution in your build, use build-image-no-fork instead.spring-doc.cn

spring-boot:build-image-no-forkspring-doc.cn

Package an application into an OCI image using a buildpack, but without forking the lifecycle. This goal should be used when configuring a goal execution in your build. To invoke the goal on the command-line, use build-image instead.spring-doc.cn

spring-boot:build-infospring-doc.cn

Generate a build-info.properties file based on the content of the current MavenProject.spring-doc.cn

spring-boot:helpspring-doc.cn

Display help information on spring-boot-maven-plugin. Call mvn spring-boot:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.spring-doc.cn

spring-boot:process-aotspring-doc.cn

Invoke the AOT engine on the application.spring-doc.cn

spring-boot:process-test-aotspring-doc.cn

Invoke the AOT engine on tests.spring-doc.cn

spring-boot:repackagespring-doc.cn

Repackage existing JAR and WAR archives so that they can be executed from the command line using java -jar. With layout=NONE can also be used simply to package a JAR with nested dependencies (and no main class, so not executable).spring-doc.cn

spring-boot:runspring-doc.cn

Run an application in place.spring-doc.cn

spring-boot:startspring-doc.cn

Start a spring application. Contrary to the run goal, this does not block and allows other goals to operate on the application. This goal is typically used in integration test scenario where the application is started before a test suite and stopped after.spring-doc.cn

spring-boot:stopspring-doc.cn

Stop an application that has been started by the "start" goal. Typically invoked once a test suite has completed.spring-doc.cn

spring-boot:test-runspring-doc.cn

Run an application in place using the test runtime classpath. The main class that will be used to launch the application is determined as follows: The configured main class, if any. Then the main class found in the test classes directory, if any. Then the main class found in the classes directory, if any.spring-doc.cn