Quarkus doesn't refresh when resource files are updated
See original GitHub issueDescribe 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:
- Add file fields.json to resources directory
- Start quarkus
- Edit fields.json
- 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:
- Created 3 years ago
- Comments:9 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think this issue may be closed (or renamed) and can be marked as a
good-first-issue
for our rockstar community contributors 😉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.