{"record":{"id":"0768dffe5679fcd7","repo":"quarkusio/quarkus","slug":"failed-to-collect-quarkus-project-information","errorCode":null,"errorMessage":"Failed to collect Quarkus project information","messagePattern":"Failed to collect Quarkus project information","errorType":"exception","errorClass":"GradleException","httpStatus":null,"severity":"error","filePath":"devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusInfo.java","lineNumber":44,"sourceCode":"    }\n\n    public QuarkusInfo() {\n        super(\"Log Quarkus-specific project information, such as imported Quarkus platform BOMs, Quarkus extensions found among the project dependencies, etc.\");\n    }\n\n    @TaskAction\n    public void logInfo() {\n        getLogger().warn(getName() + \" is experimental, its options and output might change in future versions\");\n\n        final QuarkusProject quarkusProject = getQuarkusProject(false);\n        final QuarkusCommandOutcome outcome;\n        final ProjectInfo invoker = new ProjectInfo(quarkusProject);\n        invoker.perModule(perModule);\n        invoker.appModel(extension().getApplicationModel());\n        try {\n            outcome = invoker.execute();\n        } catch (Exception e) {\n            throw new GradleException(\"Failed to collect Quarkus project information\", e);\n        }\n    }\n}\n","sourceCodeStart":26,"sourceCodeEnd":48,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusInfo.java#L26-L48","documentation":"QuarkusInfo.logInfo builds a ProjectInfo invoker over the Quarkus project and executes it to collect and log per-module project/application-model information. Any Exception thrown during execution is wrapped in this GradleException, meaning Quarkus could not gather the project model (module structure, app model) needed to print dev-mode info.","triggerScenarios":"Running a dev-mode/listing Gradle task that invokes QuarkusInfo.logInfo when ProjectInfo.execute() throws — e.g. invalid project model, unreadable build scripts, or failure resolving the application model via extension().getApplicationModel().","commonSituations":"Broken or misconfigured multi-module Gradle builds; a custom Gradle plugin/script throwing during configuration; corrupted Gradle caches preventing application model resolution; incompatible Quarkus Gradle plugin and Gradle version combinations.","solutions":["Run ./gradlew quarkusDev --stacktrace to see the root cause wrapped by this exception.","Run ./gradlew build (or at least ./gradlew classes) first to verify the project configures successfully.","Refresh dependencies and clean caches if model resolution fails: --refresh-dependencies.","Verify Gradle version compatibility with your Quarkus Gradle plugin version.","Simplify/isolate the failing module to identify a misconfigured build script."],"exampleFix":"// before: opaque failure\n./gradlew quarkusDev\n// after: surface root cause\n./gradlew quarkusDev --stacktrace --info","handlingStrategy":"try-catch","validationCode":"// Verify the project configures and the model resolves before dev tasks\n./gradlew help classes --stacktrace\n// a failure here indicates the same ProjectInfo execution would fail","typeGuard":null,"tryCatchPattern":"try {\n  ./gradlew quarkusDev\n} catch (GradleException e) {\n  if (e.getMessage().equals(\"Failed to collect Quarkus project information\")) {\n    // rerun with --stacktrace to act on the wrapped cause (config error, cache, model resolution)\n  }\n}","preventionTips":["Keep build scripts healthy: run ./gradlew help after editing Gradle configuration.","Use a Gradle version compatible with your Quarkus plugin release.","Refresh caches with --refresh-dependencies after version upgrades.","Test dev mode after adding custom plugins/scripts to the build."],"tags":["gradle","project-model","quarkus-dev-mode"],"backgroundTag":"project-model-resolution-failed","analyzedSha":"e1c734241f34c7919086ceb4c9262b4a58f6de44","analyzedAt":"2026-09-05T17:01:29.979Z","contentChangedAt":"2026-09-05T17:01:29.979Z","schemaVersion":2},"datasetVersion":"2026-09-12T22:17:10.623Z"}