-
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 loads maven modules after each other, ingores --projects #42750
Comments
/cc @quarkusio/devtools (maven) |
Update: followed this advice and tried to use mvn clean compile quarkus:dev --projects service1 --also-make Unfortunately quarkus ignores the parameter and loads all modules sequentially |
The In the reproducer the If the library modules are not meant to be Quarkus applications themselves then the If the library modules are actually Quarkus applications and must have I'm closing this issue, since the described behavior is not a bug. If you have a more specific suggestion how to improve the experience, feel free to re-open. Thanks. |
Thank you for the explanation, appreciate the insight. I shall adjust the pom accordingly. I'm still looking how to run I'll update the reproducer to make that clearer. |
Launching a specific app with The simplest way would be to run Another approach could be to define various Maven profiles. |
I updated the reproducer to include 2 services (in my actual app it's closer to 10). Moving the quarkus-maven-plugin to pluginMangement in the parent works and only the Quarkus apps are picked up by Quarkus dev. When you run service1 errors out (no surprise there), unless you open another terminal and run so "the hack" for now is: open as many terminal windows as applications. Start What might be a way forward to allow to specify which app to launch. Saves the "terminate till you reach the app". |
That's what I tried to describe in the previous comment but I guess it was too confusing |
Ahh got it. So you would put the quarkus-maven-plugin into profiles, so there would be serviceProfile1, serviceProfile2 ... and you run That makes a lot of sense, thank you. |
I updated the project's main branch to be a sample as per your suggestion. I also described the process in readme.md and created a vscode task to launch in one go and specify the debugger settings. Have a look what can be improved. Blog entry pending. Thx again for your help |
In this specific case I would recommend the following
With this approach Launching dev mode would look like |
Double edged sword. you do a |
You can do -Dnative instead of -Pnative and it will work |
what would be awesome: quarkus create app [...] --with-parent
quarkus module add [...] SO the pom.xml for app, reactor and parent get created properly. |
Describe the bug
I have a multi-module consisting of services (with their own http) and support modules, the services depend on. The reactor
pom.xml
looks like this:service1
depends onlibrary1
andlibrary2
. I can successfully runmvn clean package
, but notquarkus dev
Expected behavior
When starting
quarkus dev
have the ability to specify which module to load or start them concurrently. Or the ability for Quarkus to discover the reactor projectActual behavior
only library1 gets processed, then quarkus stops
Quarkus loads the first library, then when stopping it (key q), the next module etc.
Trying to start
quarkus dev
from the service1 module leads to:How to Reproduce?
Clone the Reproducer repo and run
quarkus dev
git clone git@github.com:Stwissel/quarkus-multi-module-question.git cd quarkus-multi-module-question quarkus dev
Output of
uname -a
orver
Linux stw-multipass 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing)
Quarkus version or git rev
3.13.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven home: /home/stw/.sdkman/candidates/maven/current Java version: 21.0.4, vendor: Azul Systems, Inc., runtime: /home/stw/.sdkman/candidates/java/21.0.4-zulu Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "6.8.0-40-generic", arch: "amd64", family: "unix"
Additional information
No response
The text was updated successfully, but these errors were encountered: