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+ <modelVersion >4.0.0</modelVersion >
6+ <parent >
7+ <groupId >org.springframework.boot</groupId >
8+ <artifactId >spring-boot-starter-parent</artifactId >
9+ <version >2.2.2.RELEASE</version >
10+ <relativePath /> <!-- lookup parent from repository -->
11+ </parent >
12+ <groupId >org.mendora</groupId >
13+ <artifactId >spring-demo</artifactId >
14+ <version >1.0-SNAPSHOT</version >
15+
16+ <properties >
17+ <java .version>1.8</java .version>
18+ <dockerfile-maven-version >1.4.13</dockerfile-maven-version >
19+ <docker .repository>harbor.com</docker .repository>
20+ <docker .image.prefix>library</docker .image.prefix>
21+ </properties >
22+
23+ <dependencies >
24+ <dependency >
25+ <groupId >org.springframework.boot</groupId >
26+ <artifactId >spring-boot-starter-web</artifactId >
27+ </dependency >
28+
29+ <dependency >
30+ <groupId >org.springframework.boot</groupId >
31+ <artifactId >spring-boot-starter-test</artifactId >
32+ <scope >test</scope >
33+ <exclusions >
34+ <exclusion >
35+ <groupId >org.junit.vintage</groupId >
36+ <artifactId >junit-vintage-engine</artifactId >
37+ </exclusion >
38+ </exclusions >
39+ </dependency >
40+
41+ <dependency >
42+ <groupId >io.springfox</groupId >
43+ <artifactId >springfox-swagger2</artifactId >
44+ <version >2.9.2</version >
45+ </dependency >
46+
47+ <dependency >
48+ <groupId >io.springfox</groupId >
49+ <artifactId >springfox-swagger-ui</artifactId >
50+ <version >2.9.2</version >
51+ </dependency >
52+ </dependencies >
53+
54+ <build >
55+ <plugins >
56+ <plugin >
57+ <groupId >org.springframework.boot</groupId >
58+ <artifactId >spring-boot-maven-plugin</artifactId >
59+ </plugin >
60+
61+
62+ <plugin >
63+ <groupId >org.apache.maven.plugins</groupId >
64+ <artifactId >maven-deploy-plugin</artifactId >
65+ <configuration >
66+ <skip >true</skip >
67+ </configuration >
68+ </plugin >
69+
70+ <plugin >
71+ <groupId >com.spotify</groupId >
72+ <artifactId >dockerfile-maven-plugin</artifactId >
73+ <version >${dockerfile-maven-version} </version >
74+ <executions >
75+ <!-- <execution>-->
76+ <!-- <id>default</id>-->
77+ <!-- <goals>-->
78+ <!-- <goal>build</goal>-->
79+ <!-- <goal>push</goal>-->
80+ <!-- </goals>-->
81+ <!-- </execution>-->
82+ </executions >
83+ <configuration >
84+ <repository >${docker.repository} /${docker.image.prefix} /${project.artifactId} </repository >
85+ <tag >${project.version} </tag >
86+ <buildArgs >
87+ <JAR_FILE >${project.build.finalName} .jar</JAR_FILE >
88+ </buildArgs >
89+ <useMavenSettingsForAuth >true</useMavenSettingsForAuth >
90+ </configuration >
91+ </plugin >
92+ </plugins >
93+ </build >
94+ </project >
0 commit comments