-
Notifications
You must be signed in to change notification settings - Fork 40.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maven goal spring-boot:build-image
runs package phase twice
#26455
Comments
Thanks for the sample but it fails for me:
|
@snicoll, I am sorry, forgot to mention this, for the front-end compilation you need Yarn, here is how you can get it https://classic.yarnpkg.com/en/docs/install/#mac-stable |
This is happening because the If we remove the lifecycle forking, running For comparison, the Flagging this for team attention to discuss what, if anything, we want to do about this. |
spring-boot:build-image
causing double execution of the build cyclespring-boot:build-image
runs package phase twice
@scottfrederick, thank you for your feedback. Would it be possible to consider another maven goal, something like |
We're going to investigate if we can add a |
What is the current status of this issue? I'm using Spring Boot 2.6.2 and the compile steps are still executed twice. When will this be solved? Do we have a workaround? |
@martijndebruijn The issue is in the |
In a Spring Boot 2.7.x application, I currently use 3.2.0 of the |
@OLibutzki we don't, as we've never tested this combination. If a problem arises with this setup we won't be able to support you as this is mixing incompatible Spring Boot versions. |
In my project I have the front-end part in the same codebase. Consequently, I have a couple of calls to
exec-maven-plugin
to build the front-end. And as a very last step, I havebuild-image
goal execution.For some reason
build-image
triggers execution of the whole build cycle again:The following project can be used to reproduce the problem: https://github.com/alexey-anufriev/spring-boot-build-image-double-build
The text was updated successfully, but these errors were encountered: