Skip to content

Commit 8bdc855

Browse files
committed
common plugin
Signed-off-by: wind57 <eugen.rabii@gmail.com>
1 parent 2e9c48d commit 8bdc855

3 files changed

Lines changed: 26 additions & 30 deletions

File tree

pom.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,32 @@
186186
</dependencyManagement>
187187

188188
<build>
189+
<pluginManagement>
190+
<plugins>
191+
<plugin>
192+
<groupId>org.springframework.boot</groupId>
193+
<artifactId>spring-boot-maven-plugin</artifactId>
194+
<configuration>
195+
<image>
196+
<env>
197+
<BP_SPRING_CLOUD_BINDINGS_DISABLED>true</BP_SPRING_CLOUD_BINDINGS_DISABLED>
198+
<BP_LOG_LEVEL>DEBUG</BP_LOG_LEVEL>
199+
</env>
200+
<name>docker.io/springcloud/${project.artifactId}:${project.version}</name>
201+
</image>
202+
</configuration>
203+
<executions>
204+
<execution>
205+
<id>build-image</id>
206+
<phase>package</phase>
207+
<goals>
208+
<goal>build-image-no-fork</goal>
209+
</goals>
210+
</execution>
211+
</executions>
212+
</plugin>
213+
</plugins>
214+
</pluginManagement>
189215
<plugins>
190216
<plugin>
191217
<groupId>org.codehaus.mojo</groupId>

spring-cloud-kubernetes-controllers/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,11 @@
5858
<artifactId>spring-boot-maven-plugin</artifactId>
5959
<configuration>
6060
<image>
61-
<env>
62-
<BP_SPRING_CLOUD_BINDINGS_DISABLED>true</BP_SPRING_CLOUD_BINDINGS_DISABLED>
63-
<BP_LOG_LEVEL>DEBUG</BP_LOG_LEVEL>
64-
</env>
6561
<name>${spring-cloud-kubernetes.controllers.image.name}</name>
6662
<pullPolicy>IF_NOT_PRESENT</pullPolicy>
6763
</image>
68-
<goal>build-image</goal>
6964
</configuration>
7065
<executions>
71-
<execution>
72-
<id>build-image</id>
73-
<phase>package</phase>
74-
<goals>
75-
<goal>build-image-no-fork</goal>
76-
</goals>
77-
</execution>
7866
<execution>
7967
<id>repackage</id>
8068
<phase>package</phase>

spring-cloud-kubernetes-integration-tests/pom.xml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,6 @@
3232
<plugin>
3333
<groupId>org.springframework.boot</groupId>
3434
<artifactId>spring-boot-maven-plugin</artifactId>
35-
<configuration>
36-
<image>
37-
<env>
38-
<BP_SPRING_CLOUD_BINDINGS_DISABLED>true</BP_SPRING_CLOUD_BINDINGS_DISABLED>
39-
<BP_LOG_LEVEL>DEBUG</BP_LOG_LEVEL>
40-
</env>
41-
<name>docker.io/springcloud/${project.artifactId}:${project.version}</name>
42-
</image>
43-
</configuration>
44-
<executions>
45-
<execution>
46-
<id>build-image</id>
47-
<phase>package</phase>
48-
<goals>
49-
<goal>build-image-no-fork</goal>
50-
</goals>
51-
</execution>
52-
</executions>
5335
</plugin>
5436

5537
<!-- ignore plain tests (in the 'test' phase), so that we could build the image first, see above -->

0 commit comments

Comments
 (0)