From aaee4d9efe23df48fd01fcf66814b78a6800e823 Mon Sep 17 00:00:00 2001 From: jobrienski Date: Wed, 27 Feb 2019 14:35:23 -0800 Subject: [PATCH] module and fix compile with common module --- .gitignore | 25 +++++++++++ parent-project/pom.xml | 82 +++++++++++++++++++++++++++++++++++ pom.xml | 37 ++++++++++++++++ spring-eureka-common/pom.xml | 68 +++++++++++++++-------------- spring-eureka-gallery/pom.xml | 41 ++++-------------- spring-eureka-zuul/.gitignore | 2 +- 6 files changed, 189 insertions(+), 66 deletions(-) create mode 100755 .gitignore create mode 100644 parent-project/pom.xml create mode 100644 pom.xml diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..6248fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +.mvn/ +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ \ No newline at end of file diff --git a/parent-project/pom.xml b/parent-project/pom.xml new file mode 100644 index 0000000..60097bb --- /dev/null +++ b/parent-project/pom.xml @@ -0,0 +1,82 @@ + + + + 4.0.0 + + com.eureka + parent-project + 0.0.1-SNAPSHOT + + parent-project + + http://www.example.com + + ../spring-eureka-common + ../spring-eureka-auth + ../spring-eureka-server + ../spring-eureka-zuul + ../spring-eureka-image + ../spring-eureka-gallery + + pom + + + com.eureka + project-root + 0.0.1-SNAPSHOT + .. + + + UTF-8 + 1.8 + 1.8 + UTF-8 + UTF-8 + 1.8 + + + + + + org.springframework.cloud + spring-cloud-dependencies + ${spring-cloud.version} + pom + import + + + + + + + org.springframework.boot + spring-boot-starter-test + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.7.0 + + 1.8 + 1.8 + + + + + + + spring-milestones + Spring Milestones + https://repo.spring.io/milestone + + always + false + + + + + diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..77e6081 --- /dev/null +++ b/pom.xml @@ -0,0 +1,37 @@ + + + + 4.0.0 + + com.eureka + project-root + 0.0.1-SNAPSHOT + + project-root + + http://www.example.com + + + org.springframework.boot + spring-boot-starter-parent + 2.0.0.RELEASE + + + + parent-project + + pom + + + UTF-8 + 1.8 + 1.8 + UTF-8 + UTF-8 + 1.8 + Finchley.M9 + + + + diff --git a/spring-eureka-common/pom.xml b/spring-eureka-common/pom.xml index 9779b89..1765106 100755 --- a/spring-eureka-common/pom.xml +++ b/spring-eureka-common/pom.xml @@ -1,6 +1,6 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.eureka.common @@ -10,14 +10,15 @@ spring-eureka-common Demo project for Spring Boot Cloud - - org.springframework.boot - spring-boot-starter-parent - 2.0.0.RELEASE - + com.eureka + parent-project + 0.0.1-SNAPSHOT + ../parent-project + + UTF-8 UTF-8 @@ -34,22 +35,11 @@ org.springframework.cloud spring-cloud-starter-netflix-eureka-client - - - org.springframework.boot - spring-boot-devtools - true - - - - org.projectlombok - lombok - - org.springframework.boot - spring-boot-starter-test - test + org.projectlombok + lombok + compile @@ -68,22 +58,34 @@ - org.springframework.boot - spring-boot-maven-plugin + org.apache.maven.plugins + maven-surefire-plugin + + + **/*IntegrationTest.java + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + integration-tests + + integration-test + verify + + + + **/*IntegrationTest.java + + + + - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - false - - - - diff --git a/spring-eureka-gallery/pom.xml b/spring-eureka-gallery/pom.xml index 4c7d97b..27d31b9 100755 --- a/spring-eureka-gallery/pom.xml +++ b/spring-eureka-gallery/pom.xml @@ -3,21 +3,22 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - com.eureka.student - spring-eureka-student + com.eureka.gallery + spring-eureka-gallery 0.0.1-SNAPSHOT jar - spring-eureka-student + spring-eureka-gallery Demo project for Spring Boot Cloud - - org.springframework.boot - spring-boot-starter-parent - 2.0.0.RELEASE - + com.eureka + parent-project + 0.0.1-SNAPSHOT + ../parent-project + + UTF-8 UTF-8 @@ -44,23 +45,10 @@ org.springframework.cloud spring-cloud-starter-netflix-hystrix - - - org.springframework.boot - spring-boot-devtools - true - - org.springframework.cloud spring-cloud-starter-sleuth - - - org.springframework.boot - spring-boot-starter-test - test - @@ -84,16 +72,5 @@ - - - spring-milestones - Spring Milestones - https://repo.spring.io/milestone - - false - - - - diff --git a/spring-eureka-zuul/.gitignore b/spring-eureka-zuul/.gitignore index 81a33ed..6248fdb 100755 --- a/spring-eureka-zuul/.gitignore +++ b/spring-eureka-zuul/.gitignore @@ -1,6 +1,6 @@ target/ !.mvn/wrapper/maven-wrapper.jar - +.mvn/ ### STS ### .apt_generated .classpath