I'm trying to upgrade a multi-module Quarkus project from 2.2 to the latest 2.6.1.Final. The build (including quarkus:dev with -Psomeproject) works on 2.3.1.Final, but when I upgrade to 2.4.0.Final it fails with this error:
Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException: Cannot invoke "io.quarkus.deployment.dev.DevModeContext$ModuleInfo.getMain()"
because the return value of "io.quarkus.deployment.dev.DevModeContext.getApplicationRoot()" is null
at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:151)
at io.quarkus.deployment.dev.DevModeMain.main(DevModeMain.java:63)
Caused by: java.lang.NullPointerException: Cannot invoke "io.quarkus.deployment.dev.DevModeContext$ModuleInfo.getMain()" because the return value of "io.quarkus.deployment.dev.DevModeContext.getApplicationRoot()" is null
at io.quarkus.deployment.dev.DevModeMain.start(DevModeMain.java:91)
A regular build still works; it is quarkus:dev that fails. I simply can't see what's wrong here. What am I missing?
I'll create a minimal solution with the problem as the next step, but would appreciate any pointers.
The project is using Java 17 but the regular build does work and development mode also worked with the older platform.