From 8c361330f105494d1d22b95ba9864f919856e523 Mon Sep 17 00:00:00 2001 From: Dhawal Kapil Date: Fri, 26 Oct 2018 23:56:07 +0530 Subject: [PATCH] BAEL-9709 Fix start of Boot projects with parent-boot-2 parent -Added placeholder {start-class} tag in parent-boot-2's spring-boot-maven-plugin so that any child that has a {start-class} automatically is benefited from this plugin and wil help that child class to run -Fix startup issues of few spring boot 2 projects --- parent-boot-2/pom.xml | 3 ++ spring-all/pom.xml | 1 - .../spring-boot-h2-database/pom.xml | 2 +- spring-boot-mvc/pom.xml | 43 +++++++++++-------- spring-boot/pom.xml | 8 ++-- spring-security-mvc-boot/pom.xml | 2 +- 6 files changed, 36 insertions(+), 23 deletions(-) diff --git a/parent-boot-2/pom.xml b/parent-boot-2/pom.xml index bcfcfdec44..eded6d1e3c 100644 --- a/parent-boot-2/pom.xml +++ b/parent-boot-2/pom.xml @@ -42,6 +42,9 @@ org.springframework.boot spring-boot-maven-plugin ${spring-boot.version} + + ${start-class} + diff --git a/spring-all/pom.xml b/spring-all/pom.xml index bab2e431ec..2dc4915bab 100644 --- a/spring-all/pom.xml +++ b/spring-all/pom.xml @@ -1,7 +1,6 @@ 4.0.0 - com.baeldung spring-all 0.1-SNAPSHOT spring-all diff --git a/spring-boot-h2/spring-boot-h2-database/pom.xml b/spring-boot-h2/spring-boot-h2-database/pom.xml index 94f2293c34..4d677ab0d4 100644 --- a/spring-boot-h2/spring-boot-h2-database/pom.xml +++ b/spring-boot-h2/spring-boot-h2-database/pom.xml @@ -23,7 +23,7 @@ UTF-8 1.8 - com.mycorp.starter.HelloWorldApplication + com.baeldung.h2db.demo.server.SpringBootApp diff --git a/spring-boot-mvc/pom.xml b/spring-boot-mvc/pom.xml index 65d23ebfc6..5f6cdff85b 100644 --- a/spring-boot-mvc/pom.xml +++ b/spring-boot-mvc/pom.xml @@ -8,11 +8,11 @@ Module For Spring Boot MVC - parent-boot-2 - com.baeldung - 0.0.1-SNAPSHOT - ../parent-boot-2 - + parent-boot-2 + com.baeldung + 0.0.1-SNAPSHOT + ../parent-boot-2 + @@ -23,7 +23,7 @@ org.apache.tomcat.embed tomcat-embed-jasper - + org.glassfish javax.faces @@ -35,18 +35,27 @@ spring-boot-starter-test test - + org.springframework.boot spring-boot-starter-validation - - + + com.rometools rome ${rome.version} + + + org.hibernate.validator + hibernate-validator + + + javax.validation + validation-api + @@ -55,17 +64,17 @@ org.springframework.boot spring-boot-maven-plugin - com.baeldung.springbootmvc.SpringBootMvcApplication - JAR - + com.baeldung.springbootmvc.SpringBootMvcApplication + JAR + - - - 1.10.0 - com.baeldung.springbootmvc.SpringBootMvcApplication - + + + 1.10.0 + com.baeldung.springbootmvc.SpringBootMvcApplication + diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml index 0ea6b6156f..976db40648 100644 --- a/spring-boot/pom.xml +++ b/spring-boot/pom.xml @@ -1,9 +1,7 @@ 4.0.0 - com.baeldung spring-boot - 0.0.1-SNAPSHOT war spring-boot This is simple boot application for Spring boot actuator test @@ -159,6 +157,11 @@ 1.1.16 compile + + + javax.validation + validation-api + @@ -234,7 +237,6 @@ 3.6.0 3.2.0 18.0 - 1.2.0 2.2.4 diff --git a/spring-security-mvc-boot/pom.xml b/spring-security-mvc-boot/pom.xml index d2316ddca5..2427d0de1a 100644 --- a/spring-security-mvc-boot/pom.xml +++ b/spring-security-mvc-boot/pom.xml @@ -220,7 +220,7 @@ - org.baeldung.Application + org.baeldung.custom.Application