{"record":{"id":"4a8dd9f9851cd8e6","repo":"quarkusio/quarkus","slug":"failed-to-resolve-the-available-updates","errorCode":null,"errorMessage":"Failed to resolve the available updates","messagePattern":"Failed to resolve the available updates","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"devtools/maven/src/main/java/io/quarkus/maven/InfoMojo.java","lineNumber":35,"sourceCode":"\n    @Override\n    protected void validateParameters() throws MojoExecutionException {\n        getLog().warn(\"quarkus:info goal is experimental, its options and output may change in future versions\");\n        super.validateParameters();\n    }\n\n    @Override\n    protected void processProjectState(QuarkusProject quarkusProject) throws MojoExecutionException {\n        final ProjectInfo invoker = new ProjectInfo(quarkusProject);\n\n        invoker.perModule(perModule);\n        invoker.appModel(resolveApplicationModel());\n\n        QuarkusCommandOutcome outcome;\n        try {\n            outcome = invoker.execute();\n        } catch (QuarkusCommandException e) {\n            throw new MojoExecutionException(\"Failed to resolve the available updates\", e);\n        }\n    }\n}\n","sourceCodeStart":17,"sourceCodeEnd":39,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/maven/src/main/java/io/quarkus/maven/InfoMojo.java#L17-L39","documentation":"InfoMojo (`mvn quarkus:info`) executes a command that computes the application model and queries the registry for available Quarkus platform updates. If the command throws QuarkusCommandException, the mojo rethrows it as this MojoExecutionException.","triggerScenarios":"Running `mvn quarkus:info` when the platform update check fails: registry unreachable, application model cannot be resolved, or network timeout contacting registry.quarkus.io (or a custom registry).","commonSituations":"Offline/air-gapped environments; corporate proxy blocking the Quarkus registry; misconfigured quarkus.registry URL; DNS failures in CI.","solutions":["Check network access to the configured Quarkus registry (default https://registry.quarkus.io)","Verify proxy settings in settings.xml or MAVEN_OPTS","Inspect the QuarkusCommandException cause for the underlying failure","Use a locally mirrored registry via quarkus.registry config if behind a firewall","Retry with -e to get full stack trace and diagnose"],"exampleFix":"// before\n<quarkus.registry>https://internal-wrong-host/registry</quarkus.registry>\n// after\n<quarkus.registry>https://registry.quarkus.io</quarkus.registry>","handlingStrategy":"try-catch","validationCode":"// pre-check registry reachability\ntry (java.net.Socket socket = new java.net.Socket()) {\n    socket.connect(new java.net.InetSocketAddress(\"registry.quarkus.io\", 443), 3000);\n} // if this fails, quarkus:info will fail in offline env","typeGuard":null,"tryCatchPattern":"try {\n    // mvn quarkus:info\n} catch (MojoExecutionException e) {\n    if (isNetworkCause(e)) { log.warn(\"Registry unreachable; skipping update check\"); }\n    else { throw e; }\n}","preventionTips":["Configure a mirror registry for air-gapped environments","Set proxies correctly in settings.xml","Run connectivity smoke tests in CI before Quarkus goals"],"tags":["maven","registry","network"],"backgroundTag":"registry-unreachable","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"}