-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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 mode failes, if maven packaging is defined by a variable (property) #9727
Comments
Using Quarkus from
|
This is a real corner case. Basically what happens is that cc @aloubyansky |
We do support profiles in dev mode though for things like dependencies. It can be fixed. |
Oh, I didn't know that |
I probably won't be able to get to this for another week, so if anyone else wants to take a look, feel free |
There is any news on this? I'm facing the same issue :) |
Is there a possibility to find some details about solving this bug? I want to do it by a PR. |
Just assigned it to myself, but actually @dinabogdan did you want to work on this issue? |
It's not a difficult one. Let me know. |
Hi @aloubyansky ! I will be delighted to work on this issue :) If you are available, please provide me some details about it :) |
Ok, so it's kind of easy. It's not gonna be a 100% proper fix but it'll do for now. This line here [1] is simply passing the raw packaging value. Instead it should be checking whether it includes an expression. Given that it's "packaging", it's unlikely it's gonna be anything sophisticated. So, I would probably go for a simple check instead of proper property replacer including nested properties.
Let me know if you have further questions. Thanks for your efforts! [1] https://github.com/quarkusio/quarkus/blob/master/independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/workspace/LocalProject.java#L366 |
Why not re-using (with a small adjustment) what we already have for the "Maven CI friendly versions"? |
The regex there is pretty specialized though. It would have to be re-done in a generic way. Which is definitely possible, if somebody is up for it. If we can avoid regex that'd be great too. But a simpler fix in this specific case would work as well, imo. |
It's late and I might be missing something but the following
|
#15342 introduced a config option to enable Quarkus workspace initialization based on effective POMs instead of the "raw" ones, which can be enabled by setting system property |
If maven packaging is defined by a property, dev mode hangs on startup.
The bug is described in https://github.com/GEDOPLAN/quarkus-devmode-fails-for-variable-packaging.
<tl;dr>
<packaging>${packaging.type}</packaging>
<properties>
<packaging.type>jar</packaging.type>
</properties>
mvn quarkus:dev hangs in application int.
The text was updated successfully, but these errors were encountered: