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
Quarkus doesn't refresh when resource files are updated #15820
Comments
@maryellenw77 FYI you should be able to specify additional watched resources via the quarkus.live-reload.watched-resources config property. Unfortunately, directories and wildcards are not supported. @geoand Maybe we could try to implement wildcards so that e.g. |
@mkouba yeah, that sounds very reasonable |
@gastaldi @radcortez is there anything in SR Commons that could be used for ^? |
I don't think we have. Feel free to add something :) |
@geoand support for wildcards? You mean like in https://github.com/quarkusio/quarkus/blob/main/core/deployment/src/main/java/io/quarkus/deployment/util/GlobUtil.java? |
Right! That exactly like what we want here. Mind integrating it in the handling of |
I think this issue may be closed (or renamed) and can be marked as a |
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. |
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:
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
orgradlew --version
)Apache Maven 3.6.3
Additional context
None.
The text was updated successfully, but these errors were encountered: