question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quarkus doesn't refresh when resource files are updated

See original GitHub issue

Describe the bug

My project has a set of json configuration files in the resources directory. We’d like Quarkus to restart and load these files when they are updated. Currently, Quarkus sees the file updates but determines that a restart isn’t necessary. We know this because we see the message ‘Files changed but restart not needed’ when we make modifications.

Expected behavior

Quarkus is restarted when any resource file is modified.

Actual behavior

Quarkus is only restarted when certain resources files are modified. Not certain what these files are, but they include banner.txt.

To Reproduce

Steps to reproduce the behavior:

  1. Add file fields.json to resources directory
  2. Start quarkus
  3. Edit fields.json
  4. See message "Files changed but restart not needed’

Environment (please complete the following information):

Output of java -version

openjdk 11.0.10

Quarkus version or git rev

1.10.5.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.6.3

Additional context

None.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gastaldicommented, Mar 19, 2021

I think this issue may be closed (or renamed) and can be marked as a good-first-issue for our rockstar community contributors 😉

0reactions
mkoubacommented, Mar 22, 2021

Stupid question maybe but why don’t we reload by default when resources are changed?

I think that historically we’ve chosen this path to minimize the number of resources that can trigger the reload, i.e. not every resource modification requires a reload. Anyway, if we change it now it would be a non-compatible change. So we should be careful here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building applications with Maven - Quarkus
You can then update the application sources, resources and configurations. The changes are automatically reflected in your running application. This is great to ......
Read more >
Auto reloading on save of template file in Quarkus?
I know Quarkus has auto reload for resources and java files however, while editing a html template using the Qute templating engine you...
Read more >
How to trigger the extension build step during an hot reload of ...
In Kogito's Quarkus extension we support hot reload of Kogito resources that are non-java files with many different file extensions.
Read more >
Home of Quarkus Cheat-Sheet - GitHub Pages
You need to distribute the -runner.jar file together with quarkus-app directory. ... quarkus.hibernate-orm.database.generation=update.
Read more >
Configuring your Quarkus applications
Generating an example configuration file for your Quarkus application ... The following procedure shows how you can update your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found