File tree Expand file tree Collapse file tree 11 files changed +174
-71
lines changed
Expand file tree Collapse file tree 11 files changed +174
-71
lines changed Original file line number Diff line number Diff line change 5656 <groupId >org.springframework.boot</groupId >
5757 <artifactId >spring-boot-maven-plugin</artifactId >
5858 </plugin >
59- <plugin >
60- <groupId >com.spotify</groupId >
61- <artifactId >docker-maven-plugin</artifactId >
62- </plugin >
6359 </plugins >
6460 </build >
61+ <profiles >
62+ <profile >
63+ <id >docker</id >
64+ <build >
65+ <plugins >
66+ <plugin >
67+ <groupId >com.spotify</groupId >
68+ <artifactId >docker-maven-plugin</artifactId >
69+ </plugin >
70+ </plugins >
71+ </build >
72+ </profile >
73+ </profiles >
6574</project >
Original file line number Diff line number Diff line change 5959 <groupId >org.springframework.boot</groupId >
6060 <artifactId >spring-boot-maven-plugin</artifactId >
6161 </plugin >
62- <plugin >
63- <groupId >com.spotify</groupId >
64- <artifactId >docker-maven-plugin</artifactId >
65- </plugin >
6662 </plugins >
6763 </build >
68-
64+ <profiles >
65+ <profile >
66+ <id >docker</id >
67+ <build >
68+ <plugins >
69+ <plugin >
70+ <groupId >com.spotify</groupId >
71+ <artifactId >docker-maven-plugin</artifactId >
72+ </plugin >
73+ </plugins >
74+ </build >
75+ </profile >
76+ </profiles >
6977</project >
Original file line number Diff line number Diff line change 3535 <groupId >org.springframework.boot</groupId >
3636 <artifactId >spring-boot-maven-plugin</artifactId >
3737 </plugin >
38- <plugin >
39- <groupId >com.spotify</groupId >
40- <artifactId >docker-maven-plugin</artifactId >
41- </plugin >
4238 </plugins >
4339 </build >
40+ <profiles >
41+ <profile >
42+ <id >docker</id >
43+ <build >
44+ <plugins >
45+ <plugin >
46+ <groupId >com.spotify</groupId >
47+ <artifactId >docker-maven-plugin</artifactId >
48+ </plugin >
49+ </plugins >
50+ </build >
51+ </profile >
52+ </profiles >
4453</project >
Original file line number Diff line number Diff line change 1414 <version >1.0-SNAPSHOT</version >
1515 </parent >
1616
17- <build >
18- <plugins >
19- <plugin >
20- <groupId >com.spotify</groupId >
21- <artifactId >docker-maven-plugin</artifactId >
22- <version >${docker.plugin.version} </version >
23- <executions >
24- <execution >
25- <phase >package</phase >
26- <goals >
27- <goal >build</goal >
28- </goals >
29- </execution >
30- </executions >
31- <configuration >
32- <imageName >${docker.image.prefix} /${project.artifactId} </imageName >
33- <dockerDirectory >${project.basedir} /src/main/docker</dockerDirectory >
34- <resources >
35- <resource >
36- <targetPath >/</targetPath >
37- <directory >${project.build.directory} </directory >
38- <include >${project.build.finalName} .jar</include >
39- <include >classes/</include >
40- </resource >
41- </resources >
42- </configuration >
43- </plugin >
44- </plugins >
45- </build >
17+ <profiles >
18+ <profile >
19+ <id >docker</id >
20+ <build >
21+ <plugins >
22+ <plugin >
23+ <groupId >com.spotify</groupId >
24+ <artifactId >docker-maven-plugin</artifactId >
25+ <version >${docker.plugin.version} </version >
26+ <executions >
27+ <execution >
28+ <phase >package</phase >
29+ <goals >
30+ <goal >build</goal >
31+ </goals >
32+ </execution >
33+ </executions >
34+ <configuration >
35+ <imageName >${docker.image.prefix} /${project.artifactId} </imageName >
36+ <dockerDirectory >${project.basedir} /src/main/docker</dockerDirectory >
37+ <resources >
38+ <resource >
39+ <targetPath >/</targetPath >
40+ <directory >${project.build.directory} </directory >
41+ <include >${project.build.finalName} .jar</include >
42+ <include >classes/</include >
43+ </resource >
44+ </resources >
45+ </configuration >
46+ </plugin >
47+ </plugins >
48+ </build >
49+ </profile >
50+ </profiles >
4651</project >
Original file line number Diff line number Diff line change 3131 <groupId >org.springframework.boot</groupId >
3232 <artifactId >spring-boot-maven-plugin</artifactId >
3333 </plugin >
34- <plugin >
35- <groupId >com.spotify</groupId >
36- <artifactId >docker-maven-plugin</artifactId >
37- </plugin >
3834 </plugins >
3935 </build >
40-
36+ <profiles >
37+ <profile >
38+ <id >docker</id >
39+ <build >
40+ <plugins >
41+ <plugin >
42+ <groupId >com.spotify</groupId >
43+ <artifactId >docker-maven-plugin</artifactId >
44+ </plugin >
45+ </plugins >
46+ </build >
47+ </profile >
48+ </profiles >
4149</project >
Original file line number Diff line number Diff line change 6666 <groupId >org.springframework.boot</groupId >
6767 <artifactId >spring-boot-maven-plugin</artifactId >
6868 </plugin >
69- <plugin >
70- <groupId >com.spotify</groupId >
71- <artifactId >docker-maven-plugin</artifactId >
72- </plugin >
7369 </plugins >
7470 </build >
75-
71+ <profiles >
72+ <profile >
73+ <id >docker</id >
74+ <build >
75+ <plugins >
76+ <plugin >
77+ <groupId >com.spotify</groupId >
78+ <artifactId >docker-maven-plugin</artifactId >
79+ </plugin >
80+ </plugins >
81+ </build >
82+ </profile >
83+ </profiles >
7684</project >
Original file line number Diff line number Diff line change 5050 <groupId >org.springframework.boot</groupId >
5151 <artifactId >spring-boot-maven-plugin</artifactId >
5252 </plugin >
53- <plugin >
54- <groupId >com.spotify</groupId >
55- <artifactId >docker-maven-plugin</artifactId >
56- </plugin >
5753 </plugins >
5854 </build >
55+ <profiles >
56+ <profile >
57+ <id >docker</id >
58+ <build >
59+ <plugins >
60+ <plugin >
61+ <groupId >com.spotify</groupId >
62+ <artifactId >docker-maven-plugin</artifactId >
63+ </plugin >
64+ </plugins >
65+ </build >
66+ </profile >
67+ </profiles >
5968</project >
Original file line number Diff line number Diff line change 4343 <groupId >org.springframework.boot</groupId >
4444 <artifactId >spring-boot-maven-plugin</artifactId >
4545 </plugin >
46- <plugin >
47- <groupId >com.spotify</groupId >
48- <artifactId >docker-maven-plugin</artifactId >
49- </plugin >
5046 </plugins >
5147 </build >
52-
48+ <profiles >
49+ <profile >
50+ <id >docker</id >
51+ <build >
52+ <plugins >
53+ <plugin >
54+ <groupId >com.spotify</groupId >
55+ <artifactId >docker-maven-plugin</artifactId >
56+ </plugin >
57+ </plugins >
58+ </build >
59+ </profile >
60+ </profiles >
5361</project >
Original file line number Diff line number Diff line change 8383 </dependency >
8484
8585 </dependencies >
86-
86+
8787 <build >
8888 <plugins >
8989 <plugin >
9090 <groupId >org.springframework.boot</groupId >
9191 <artifactId >spring-boot-maven-plugin</artifactId >
9292 </plugin >
93- <plugin >
94- <groupId >com.spotify</groupId >
95- <artifactId >docker-maven-plugin</artifactId >
96- </plugin >
9793 </plugins >
9894 </build >
95+ <profiles >
96+ <profile >
97+ <id >docker</id >
98+ <build >
99+ <plugins >
100+ <plugin >
101+ <groupId >com.spotify</groupId >
102+ <artifactId >docker-maven-plugin</artifactId >
103+ </plugin >
104+ </plugins >
105+ </build >
106+ </profile >
107+ </profiles >
99108</project >
Original file line number Diff line number Diff line change 5050 <groupId >org.springframework.boot</groupId >
5151 <artifactId >spring-boot-maven-plugin</artifactId >
5252 </plugin >
53- <plugin >
54- <groupId >com.spotify</groupId >
55- <artifactId >docker-maven-plugin</artifactId >
56- </plugin >
5753 </plugins >
5854 </build >
59-
55+ <profiles >
56+ <profile >
57+ <id >docker</id >
58+ <build >
59+ <plugins >
60+ <plugin >
61+ <groupId >com.spotify</groupId >
62+ <artifactId >docker-maven-plugin</artifactId >
63+ </plugin >
64+ </plugins >
65+ </build >
66+ </profile >
67+ </profiles >
6068</project >
You can’t perform that action at this time.
0 commit comments