-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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:dev hot reload behavior changed & UI resources not being loaded (new in 2.4.0.Final, works in 2.3.1.Final) #20974
Comments
/cc @aloubyansky since you worked on #20500, any chance you could take a look at this? |
@aloubyansky thanks for looking into that. I can confirm that #20986 fixes the first issue I mentioned with resource detection (we don't see the |
Thanks for checking @nastra I'll have a look. |
Should be good now. |
@aloubyansky : Good on |
I pushed the other fix to the same branch #20986 |
@aloubyansky I can confirm everything works again. Thanks for fixing |
Great, thanks for the confirmation! |
Describe the bug
We're hitting
Hot reloadable dependency xyz has not been compiled yet...
after upgrading to 2.4.0.Final. I think the issue is happening because of this line: https://github.com/quarkusio/quarkus/pull/20500/files#diff-dbfecb8ead57f5ad197c876b824b224ea62a3711ba4a3d2c0bb07da027aa11d1R708Previously it was doing this via
localProject.getSourcesDir().toAbsolutePath()
but now it is checkingmodule.getMainResources().iterator().next().getDestinationDir().toPath().toAbsolutePath()
. Since ourMETA-INF/resources
directory is basically pointing to thebuild
dir as defined in https://github.com/projectnessie/nessie/blob/1d9e32e47c573f9c0906a264f83066f6a45dde03/ui/pom.xml#L33-L39 the actualMETA-INF/resources
directory doesn't exist undertarget
, thusquarkus:dev
complains.With the changes from projectnessie/nessie#2475 we can overcome the
hot reloadable...
issue and makequarkus:dev
start, but now static UI resources are not being loaded anymore when navigating tohttp://localhost:19120/
, even though they are located underMETA-INF/resources
(note that our UI resources are located in a separate maven module).Expected behavior
static UI resources located under
META-INF/resources
should be loaded when runningquarkus:dev
Actual behavior
static UI resources located under
META-INF/resources
are not loaded when runningquarkus:dev
How to Reproduce?
git clone [email protected]:projectnessie/nessie.git
./mvnw clean install quarkus:dev -DskipTests
hot reloadable...
issuehttp://localhost:19120/
shows the UI with 2.3.1.Final, but fails with 2.4.0.FinalOutput of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: