2014-05-02 23:51:23 +08:00
|
|
|
-----
|
|
|
|
Spring Boot
|
|
|
|
-----
|
|
|
|
Stephane Nicoll
|
|
|
|
-----
|
|
|
|
2014-05-02
|
|
|
|
-----
|
|
|
|
|
|
|
|
Spring Boot Maven Plugin
|
|
|
|
|
|
|
|
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”.
|
|
|
|
|
|
|
|
* Goals Overview
|
|
|
|
|
|
|
|
The Spring Boot Plugin has the following goals.
|
|
|
|
|
|
|
|
* {{{./run-mojo.html}spring-boot:run}} runs your Spring Boot application.
|
|
|
|
|
|
|
|
* {{{./repackage-mojo.html}spring-boot:repackage}} repackages your jar/war to be executable.
|
|
|
|
|
2015-03-12 15:31:21 +08:00
|
|
|
* {{{./start-mojo.html}spring-boot:start}} and {{{./stop-mojo.html}spring-boot:stop}} to manage
|
|
|
|
the lifecycle of your Spring Boot application (i.e. for integration tests).
|
|
|
|
|
2016-03-17 23:58:08 +08:00
|
|
|
* {{{./build-info-mojo.html}spring-boot:build-info}} generates build information that can be used
|
|
|
|
by the Actuator.
|
|
|
|
|
|
|
|
|
2015-03-12 15:31:21 +08:00
|
|
|
|
2014-05-02 23:51:23 +08:00
|
|
|
* Usage
|
|
|
|
|
|
|
|
General instructions on how to use the Spring Boot Plugin can be found on the {{{./usage.html}usage page}}. Some
|
|
|
|
more specific use cases are described in the examples given below.
|
|
|
|
|
|
|
|
In case you still have questions regarding the plugin's usage, please have a look at the existing
|
|
|
|
{{{http://stackoverflow.com/questions/tagged/spring-boot}stack overflow issue}}. If you still don't get an
|
|
|
|
answer, feel free to create a new thread with the <<<#spring-boot>>> tag.
|
|
|
|
|
|
|
|
If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report
|
|
|
|
in our {{{./issue-tracking.html}issue tracker}}.
|
|
|
|
|
|
|
|
* Examples
|
|
|
|
|
|
|
|
To provide you with better understanding of some usages of Spring Boot, you can take a look into
|
|
|
|
the following examples:
|
|
|
|
|
|
|
|
* {{{./examples/repackage-classifier.html}Custom repackage classifier}}
|
|
|
|
|
2016-03-01 18:12:59 +08:00
|
|
|
* {{{./examples/repackage-disable-attach.html}Local repackaged artifact}}
|
|
|
|
|
2014-05-06 20:54:09 +08:00
|
|
|
* {{{./examples/exclude-dependency.html}Exclude a dependency}}
|
|
|
|
|
2014-05-14 19:26:11 +08:00
|
|
|
* {{{./examples/run-debug.html}Debug the application}}
|
|
|
|
|
2018-04-24 17:42:49 +08:00
|
|
|
* {{{./examples/run-system-properties.html}Using system properties}}
|
|
|
|
|
2015-03-12 15:31:21 +08:00
|
|
|
* {{{./examples/it-random-port.html}Random port for integration tests}}
|
|
|
|
|
2016-11-25 18:17:58 +08:00
|
|
|
* {{{./examples/it-skip.html}Skip integration tests}}
|
|
|
|
|
2015-10-15 22:57:52 +08:00
|
|
|
* {{{./examples/run-profiles.html}Specify active profiles}}
|
|
|
|
|
2016-03-17 23:58:08 +08:00
|
|
|
* {{{./examples/build-info.html}Generate build information}}
|
|
|
|
|
2017-05-29 20:56:14 +08:00
|
|
|
* {{{./examples/custom-layout.html}Custom layout}}
|
|
|
|
|
2014-05-02 23:51:23 +08:00
|
|
|
[]
|
|
|
|
|
|
|
|
|
|
|
|
|