From b597faada0d3e90ea314ca816976ce8260023199 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Tue, 30 Jul 2013 10:19:08 -0400 Subject: [PATCH] Upgrade to Spring Boot --- README.md | 25 +++++++++++++++---------- complete/pom.xml | 12 ++++++------ initial/pom.xml | 8 ++++---- 3 files changed, 25 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index aa9f24fea6..2408eb5c7b 100644 --- a/README.md +++ b/README.md @@ -61,15 +61,15 @@ In a project directory of your choosing, create the following subdirectory struc 0.1.0 - org.springframework.zero - spring-starter-parent + org.springframework.boot + spring-boot-up-parent 0.5.0.BUILD-SNAPSHOT - org.springframework.zero - spring-starter-batch + org.springframework.boot + spring-boot-up-batch org.hsqldb @@ -99,7 +99,7 @@ In a project directory of your choosing, create the following subdirectory struc ``` -TODO: mention that we're using Spring Bootstrap's [_starter POMs_](../gs-bootstrap-starter) here. +TODO: mention that we're using Spring Boot's [_starter POMs_](../gs-bootstrap-starter) here. Note to experienced Maven users who are unaccustomed to using an external parent project: you can take it out later, it's just there to reduce the amount of code you have to write to get started. @@ -438,8 +438,8 @@ Add the following configuration to your existing Maven POM: - org.springframework.zero - spring-package-maven-plugin + org.springframework.boot + spring-boot-maven-plugin @@ -447,15 +447,20 @@ Add the following configuration to your existing Maven POM: The `start-class` property tells Maven to create a `META-INF/MANIFEST.MF` file with a `Main-Class: hello.Application` entry. This entry enables you to run the jar with `java -jar`. -The [Spring Package maven plugin][spring-package-maven-plugin] collects all the jars on the classpath and builds a single "über-jar", which makes it more convenient to execute and transport your service. +The [Spring Boot maven plugin][spring-boot-maven-plugin] collects all the jars on the classpath and builds a single "über-jar", which makes it more convenient to execute and transport your service. -Now run the following to produce a single executable JAR file containing all necessary dependency classes and resources: +Now run the following command to produce a single executable JAR file containing all necessary dependency classes and resources: ```sh $ mvn package ``` -[spring-package-maven-plugin]: https://github.com/SpringSource/spring-zero/tree/master/spring-package-maven-plugin +To run the package, run this: +```sh +$ mvn spring-boot:run +``` + +[spring-boot-maven-plugin]: https://github.com/SpringSource/spring-boot/tree/master/spring-boot-maven-plugin > **Note:** The procedure above will create a runnable JAR. You can also opt to [build a classic WAR file](/guides/gs/convert-jar-to-war/content) instead. diff --git a/complete/pom.xml b/complete/pom.xml index b385f70fde..3eac007e24 100644 --- a/complete/pom.xml +++ b/complete/pom.xml @@ -8,15 +8,15 @@ 0.1.0 - org.springframework.zero - spring-starter-parent + org.springframework.boot + spring-boot-up-parent 0.5.0.BUILD-SNAPSHOT - org.springframework.zero - spring-starter-batch + org.springframework.boot + spring-boot-up-batch org.hsqldb @@ -31,8 +31,8 @@ - org.springframework.zero - spring-package-maven-plugin + org.springframework.boot + spring-boot-maven-plugin diff --git a/initial/pom.xml b/initial/pom.xml index 0ff64866f6..2d9ad9e721 100644 --- a/initial/pom.xml +++ b/initial/pom.xml @@ -8,15 +8,15 @@ 0.1.0 - org.springframework.zero - spring-starter-parent + org.springframework.boot + spring-boot-up-parent 0.5.0.BUILD-SNAPSHOT - org.springframework.zero - spring-starter-batch + org.springframework.boot + spring-boot-up-batch org.hsqldb