File tree Expand file tree Collapse file tree 2 files changed +59
-33
lines changed
spring-cloud-kubernetes-controllers Expand file tree Collapse file tree 2 files changed +59
-33
lines changed Original file line number Diff line number Diff line change 22set -e
33
44./mvnw deploy -DskipTests -B -Pfast,deploy ${@ }
5+ ./mvnw clean package -pl :spring-cloud-kubernetes-configuration-watcher,:spring-cloud-kubernetes-discoveryserver,:spring-cloud-kubernetes-configserver -Pexecutable -DskipTests
56./mvnw dockerfile:push -pl :spring-cloud-kubernetes-configuration-watcher -Pdockerpush ${@ }
67./mvnw dockerfile:push -pl :spring-cloud-kubernetes-discoveryserver -Pdockerpush ${@ }
78./mvnw dockerfile:push -pl :spring-cloud-kubernetes-configserver -Pdockerpush ${@ }
Original file line number Diff line number Diff line change 2121
2222 <build >
2323 <plugins >
24-
2524 <plugin >
26- <groupId >org.springframework.boot</groupId >
27- <artifactId >spring-boot-maven-plugin</artifactId >
28- <configuration >
29- <image >
30- <name >${env.IMAGE} </name >
31- <pullPolicy >IF_NOT_PRESENT</pullPolicy >
32- </image >
33- <goal >build-image</goal >
34- </configuration >
35- <executions >
36- <execution >
37- <id >build-image</id >
38- <phase >package</phase >
39- <goals >
40- <goal >build-image-no-fork</goal >
41- </goals >
42- </execution >
43- <execution >
44- <id >repackage</id >
45- <phase >package</phase >
46- <goals >
47- <goal >repackage</goal >
48- </goals >
49- </execution >
50- <execution >
51- <goals >
52- <goal >repackage</goal >
53- </goals >
54- </execution >
55- </executions >
25+ <groupId >org.apache.maven.plugins</groupId >
26+ <artifactId >maven-jar-plugin</artifactId >
5627 </plugin >
57-
5828 </plugins >
59-
6029 </build >
6130
31+ <profiles >
32+ <profile >
33+ <id >executable</id >
34+ <activation >
35+ <property >
36+ <name >!skipExecutable</name >
37+ </property >
38+ </activation >
39+ <build >
40+ <plugins >
41+ <plugin >
42+ <groupId >org.springframework.boot</groupId >
43+ <artifactId >spring-boot-maven-plugin</artifactId >
44+ <configuration >
45+ <image >
46+ <name >${env.IMAGE} </name >
47+ <pullPolicy >IF_NOT_PRESENT</pullPolicy >
48+ </image >
49+ <goal >build-image</goal >
50+ </configuration >
51+ <executions >
52+ <execution >
53+ <id >build-image</id >
54+ <phase >package</phase >
55+ <goals >
56+ <goal >build-image-no-fork</goal >
57+ </goals >
58+ </execution >
59+ <execution >
60+ <id >repackage</id >
61+ <phase >package</phase >
62+ <goals >
63+ <goal >repackage</goal >
64+ </goals >
65+ <configuration >
66+ <classifier >exec</classifier >
67+ <!-- DO NOT attach the executable JAR - this prevents deployment -->
68+ <attach >false</attach >
69+ </configuration >
70+ </execution >
71+ <execution >
72+ <goals >
73+ <goal >repackage</goal >
74+ </goals >
75+ <configuration >
76+ <classifier >exec</classifier >
77+ <!-- DO NOT attach the executable JAR - this prevents deployment -->
78+ <attach >false</attach >
79+ </configuration >
80+ </execution >
81+ </executions >
82+ </plugin >
83+ </plugins >
84+ </build >
85+ </profile >
86+ </profiles >
6287</project >
You can’t perform that action at this time.
0 commit comments