1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project xmlns =" http://maven.apache.org/POM/4.0.0"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5
+ <parent >
6
+ <artifactId >spring-cloud-template</artifactId >
7
+ <groupId >de.marcusjanke.examples</groupId >
8
+ <version >1.0-SNAPSHOT</version >
9
+ </parent >
10
+ <modelVersion >4.0.0</modelVersion >
11
+
12
+ <artifactId >greeting-service</artifactId >
13
+
14
+ <dependencies >
15
+ <dependency >
16
+ <groupId >org.springframework.boot</groupId >
17
+ <artifactId >spring-boot-starter</artifactId >
18
+ </dependency >
19
+ <dependency >
20
+ <groupId >org.springframework.boot</groupId >
21
+ <artifactId >spring-boot-starter-web</artifactId >
22
+ </dependency >
23
+ <dependency >
24
+ <groupId >org.springframework.cloud</groupId >
25
+ <artifactId >spring-cloud-config-client</artifactId >
26
+ <version >1.4.2.RELEASE</version >
27
+ </dependency >
28
+ <dependency >
29
+ <groupId >org.springframework.cloud</groupId >
30
+ <artifactId >spring-cloud-starter-eureka</artifactId >
31
+ <version >1.4.2.RELEASE</version >
32
+ </dependency >
33
+ <dependency >
34
+ <groupId >org.springframework.cloud</groupId >
35
+ <artifactId >spring-cloud-starter-hystrix</artifactId >
36
+ <version >1.4.2.RELEASE</version >
37
+ </dependency >
38
+ </dependencies >
39
+
40
+ <dependencyManagement >
41
+ <dependencies >
42
+ <dependency >
43
+ <!-- Import dependency management from Spring Boot -->
44
+ <groupId >org.springframework.boot</groupId >
45
+ <artifactId >spring-boot-dependencies</artifactId >
46
+ <version >1.5.7.RELEASE</version >
47
+ <type >pom</type >
48
+ <scope >import</scope >
49
+ </dependency >
50
+ </dependencies >
51
+ </dependencyManagement >
52
+
53
+ <build >
54
+ <plugins >
55
+ <plugin >
56
+ <groupId >org.springframework.boot</groupId >
57
+ <artifactId >spring-boot-maven-plugin</artifactId >
58
+ <configuration >
59
+ <!-- Only because we're not inheriting spring-boot-starter-parent -->
60
+ <mainClass >de.marcusjanke.examples.springcloud.greetingservice.Application</mainClass >
61
+ <layout >ZIP</layout >
62
+ </configuration >
63
+ <executions >
64
+ <execution >
65
+ <goals >
66
+ <goal >repackage</goal >
67
+ </goals >
68
+ </execution >
69
+ </executions >
70
+ </plugin >
71
+ <plugin >
72
+ <groupId >com.spotify</groupId >
73
+ <artifactId >dockerfile-maven-plugin</artifactId >
74
+ <version >1.3.6</version >
75
+ <executions >
76
+ <execution >
77
+ <id >default</id >
78
+ <goals >
79
+ <goal >build</goal >
80
+ </goals >
81
+ </execution >
82
+ </executions >
83
+ <configuration >
84
+ <repository >${docker.image.prefix} /${project.artifactId} </repository >
85
+ <buildArgs >
86
+ <JAR_FILE >target/${project.build.finalName} .jar</JAR_FILE >
87
+ </buildArgs >
88
+ </configuration >
89
+ </plugin >
90
+ </plugins >
91
+ </build >
92
+
93
+ </project >
0 commit comments