-
Notifications
You must be signed in to change notification settings - Fork 243
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
hotReloadCapable:true doesn't work with java-springboot #6657
Comments
After some tests, I can see that files are correctly synced to the container, which are detected, and the rebuild is executed.
Adding this dependency to the project fixes the issue:
|
Separate issue: make the run command |
I've tried adding spring-boot-devtools and it doesn't help |
I had tested only on podman (odo dev --platform podman). I can reproduce it on podman, but not on cluster. After some research, I can see that the difference between both platforms is that, when you mark the Run command as hotReloadCapable, the Build command is executed after sources changes in Podman, but not on the cluster. @kadel could you please double-check that you can reproduce on Podman? |
As I understand: springboot reload is done in 2 stages:
The first stage is done by the Build command, after the sources are synced, and the second stage is done by On the other hand, node reload works only with the command |
I've created a related issue regarding running the build command when Run is hotReloadCapable: #6695 |
Fixed when adding this dependency with latest odo version /close |
@feloy: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug
/priority high
odo init --name java-springboot-starter --devfile java-springboot --starter springbootproject
hotReloadCapable: true
torun
exec
commandodo dev
mvn spring-boot:run
(the same command devfile uses) it works correctly.When trying similar steps with nodejs, it works as expected.
odo init --name test --devfile nodejs --starter nodejs-starter
hotReloadCapable: true
torun
exec
commandnodemon
to projectnpm install --save-dev nodemon
package.json
and usenodemon server.js
asstart
scriptodo dev
Because it works in nodejs but doesn't with springboot it looks like this is specific to springboot container.
The text was updated successfully, but these errors were encountered: