2019-11-20 00:25:24 +08:00
|
|
|
[[getting-started]]
|
2021-05-20 12:16:06 +08:00
|
|
|
= Getting Started
|
2020-04-03 03:18:59 +08:00
|
|
|
To use the Spring Boot Maven Plugin, include the appropriate XML in the `plugins` section of your `pom.xml`, as shown in the following example:
|
|
|
|
|
2021-03-06 10:24:35 +08:00
|
|
|
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
|
2020-04-03 03:18:59 +08:00
|
|
|
----
|
2021-03-06 10:24:35 +08:00
|
|
|
include::../maven/getting-started/pom.xml[tags=getting-started]
|
2020-04-03 03:18:59 +08:00
|
|
|
----
|
|
|
|
|
|
|
|
If you use a milestone or snapshot release, you also need to add the appropriate `pluginRepository` elements, as shown in the following listing:
|
|
|
|
|
2021-03-06 10:24:35 +08:00
|
|
|
[source,xml,indent=0,subs="verbatim,attributes",tabsize=4]
|
2020-04-03 03:18:59 +08:00
|
|
|
----
|
2021-03-06 10:24:35 +08:00
|
|
|
include::../maven/getting-started/plugin-repositories-pom.xml[tags=plugin-repositories]
|
2020-04-03 03:18:59 +08:00
|
|
|
----
|