i am using springboot3.x to build the native image in a muilti-modules project
but when i try to execute the command like this : mvn clean -pl $WORKLOAD -am -Pnative spring-boot:build-image -Dspring-boot.build-image.imageName=$DOCKER_USERNAME/$DOCKER_REPOSITORY:latest,i shows error Unable to find main class because of a no class application
i have uploaded the demo project on gh,detail:https://github.com/behappy-java-study/customerservice-spring-boot-3/actions/runs/5713203487/job/15478156771
and i am using native-muilti-modules branch
Comment From: snicoll
@wang-xiaowu that's a Maven usage question. That command request the build-image to work on every module in the reactor. Not every modules are applications so that's not what you meant to do.
You can add a native profile in the module that needs it with an execution on build-image, as described in the documentation. If you have further questions, please ask on StackOverflow.