<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
<!--add to plugin if already present-->
<imageName>your-image-name</imageName>
<!--prevents pulling of buildpack each time-->
<pullPolicy>IF_NOT_PRESENT</pullPolicy>
<layers>
<!--enable layers to make subsequent builds faster-->
<enabled>true</enabled>
</layers>
</configuration>
</plugin>
</plugins>
</build>
then
mvn -T 1C spring-boot:build-image -DskipTests
# skip test, (-T 1C) are optional