1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+
6+ <groupId >com.lohika.jclub.client</groupId >
7+ <artifactId >client-service</artifactId >
8+ <version >0.0.1-SNAPSHOT</version >
9+ <packaging >jar</packaging >
10+
11+ <name >Client service</name >
12+ <description >Client service for Spring Boot</description >
13+
14+ <parent >
15+ <groupId >org.springframework.boot</groupId >
16+ <artifactId >spring-boot-starter-parent</artifactId >
17+ <version >1.5.3.RELEASE</version >
18+ <relativePath /> <!-- lookup parent from repository -->
19+ </parent >
20+
21+ <properties >
22+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
23+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
24+ <java .version>1.8</java .version>
25+ <spring-cloud .version>Dalston.RELEASE</spring-cloud .version>
26+ </properties >
27+
28+ <dependencies >
29+ <dependency >
30+ <groupId >org.springframework.cloud</groupId >
31+ <artifactId >spring-cloud-starter-eureka</artifactId >
32+ </dependency >
33+ <dependency >
34+ <groupId >org.springframework.boot</groupId >
35+ <artifactId >spring-boot-starter-web</artifactId >
36+ </dependency >
37+
38+ <dependency >
39+ <groupId >org.springframework.boot</groupId >
40+ <artifactId >spring-boot-starter-test</artifactId >
41+ <scope >test</scope >
42+ </dependency >
43+ <dependency >
44+ <groupId >org.projectlombok</groupId >
45+ <artifactId >lombok</artifactId >
46+ <version >1.16.12</version >
47+ </dependency >
48+ <dependency >
49+ <groupId >org.springframework.cloud</groupId >
50+ <artifactId >spring-cloud-starter-feign</artifactId >
51+ </dependency >
52+ <dependency >
53+ <groupId >com.lohika.jclub.storage.client</groupId >
54+ <artifactId >storage-service-client</artifactId >
55+ <version >0.0.1-SNAPSHOT</version >
56+ </dependency >
57+ <dependency >
58+ <groupId >org.testcontainers</groupId >
59+ <artifactId >testcontainers</artifactId >
60+ <version >1.3.0</version >
61+ <scope >test</scope >
62+ </dependency >
63+ </dependencies >
64+
65+ <dependencyManagement >
66+ <dependencies >
67+ <dependency >
68+ <groupId >org.springframework.cloud</groupId >
69+ <artifactId >spring-cloud-dependencies</artifactId >
70+ <version >${spring-cloud.version} </version >
71+ <type >pom</type >
72+ <scope >import</scope >
73+ </dependency >
74+ </dependencies >
75+ </dependencyManagement >
76+
77+ <build >
78+ <plugins >
79+ <plugin >
80+ <groupId >org.springframework.boot</groupId >
81+ <artifactId >spring-boot-maven-plugin</artifactId >
82+ </plugin >
83+ <plugin >
84+ <groupId >com.spotify</groupId >
85+ <artifactId >docker-maven-plugin</artifactId >
86+ <version >1.0.0</version >
87+ <executions >
88+ <execution >
89+ <id >build-image</id >
90+ <phase >install</phase >
91+ <goals >
92+ <goal >build</goal >
93+ </goals >
94+ </execution >
95+ </executions >
96+ <configuration >
97+ <imageName >client-service</imageName >
98+ <baseImage >java</baseImage >
99+ <entryPoint >["java", "-jar", "/${project.build.finalName} .jar"]</entryPoint >
100+ <resources >
101+ <resource >
102+ <targetPath >/</targetPath >
103+ <directory >${project.build.directory} </directory >
104+ <include >${project.build.finalName} .jar</include >
105+ </resource >
106+ </resources >
107+ </configuration >
108+ </plugin >
109+ </plugins >
110+ </build >
111+ </project >
0 commit comments