Skip to content

hotReloadCapable:true doesn't work with java-springboot #6657

Closed
odo-devfiles/springboot-ex
#4
@kadel

Description

@kadel

/kind bug
/priority high

  1. odo init --name java-springboot-starter --devfile java-springboot --starter springbootproject
  2. edit devfile and add hotReloadCapable: true to run exec command
  3. run odo dev
  4. edit source code
  5. odo should just sync files and application should automatically pick up changes, but this is not happening. When running locally with mvn spring-boot:run (the same command devfile uses) it works correctly.

When trying similar steps with nodejs, it works as expected.

  1. odo init --name test --devfile nodejs --starter nodejs-starter
  2. edit devfile and add hotReloadCapable: true to run exec command
  3. install nodemon to project npm install --save-dev nodemon
  4. modify package.json and use nodemon server.js as start script
  5. run odo dev
  6. edit source code
  7. right after file sync is done you can see changes in the application

Because it works in nodejs but doesn't with springboot it looks like this is specific to springboot container.

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.priority/HighImportant issue; should be worked on before any other issues (except priority/Critical issue(s)).status/blockedDenotes an issue or PR that is blocked on something (e.g., issue/PR in different repo)

Type

No type

Projects

Status

Done ✅

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions