-
Notifications
You must be signed in to change notification settings - Fork 214
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
Cannot build Quarkus after removing ~/.m2/repository/io/quarkus/ or ~/.m2/repository/io/quarkus/gizmo #26
Comments
Yes, this is certainly a caching problem. I suppose this one is caused by the https://github.com/gnodet/mvnd/blob/master/daemon/src/main/java/org/jboss/fuse/mvnd/plugin/CliPluginRealmCache.java which purpose is to cache the classloaders / classes for each plugin. I think the current check verifies the input used to build the classloader, but not the files stored in the repository. I assumed the existing files in the repository to be immutable. However, I've added some checks some time ago with the TimestampedCacheRecord https://github.com/gnodet/mvnd/blob/master/daemon/src/main/java/org/jboss/fuse/mvnd/plugin/CliPluginRealmCache.java#L155-L214 so not sure what's happening. Actually, it could be related to #25 if using snapshots. |
Oh, I see a simple workaround could be to stop the daemon after messing with the local repo. |
Yes, this can easily be done with |
I can say after some debugging that this is not (at least directly) related to CliPluginRealmCache. The error is thrown by the compiler plugin whose class realm does not contain gizmo at all. It is the compiled classes which depend on Gizmo. So it might be a class loader caching issue, but rather related to caching of project dependencies, or jars (maybe some variant of https://bugs.openjdk.java.net/browse/JDK-8246714 ) or similar. We should have a look how the compiler plugin assembles the build path and whether there is some Maven specific caching in place there. |
Duplicate of #312 |
Steps to reproduce
Expected: build success
Actual: ArC Processor and Qute Generator are complaining about missing gizmo during compilation:
It is very strange that there is no trace of gizmo in the local maven repo under
~/.m2/repository/io/quarkus/gizmo
I'd expect maven to download it. I do not see any download related error in the log.The text was updated successfully, but these errors were encountered: