First:

Every time 'mvn -Pnative spring-boot: build-image' is run, a Docker image will be pulled again Can I specify a locally prepared image when packaging?

Second:

Each packaging will download the jvm. Can you specify a local jvm?

These two questions perplex me I want to use my own basic image to package, but I can't find the right way

Comment From: scottfrederick

Can I specify a locally prepared image when packaging?

The spring-boot:build-image goal has a pullPolicy option that can be used to configure this, as shown in the documentation.

Each packaging will download the jvm. Can you specify a local jvm?

Assuming you're using the default Paketo builder, this question has been answered by the Paketo team here: https://github.com/paketo-buildpacks/bellsoft-liberica/issues/323#issuecomment-1272618645.

As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. Please use Stack Overflow to follow-up with additional questions.