{"record":{"id":"37c9f8e4a5201bdd","repo":"quarkusio/quarkus","slug":"failed-to-list-extension-categories","errorCode":null,"errorMessage":"Failed to list extension categories","messagePattern":"Failed to list extension categories","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"devtools/maven/src/main/java/io/quarkus/maven/ListCategoriesMojo.java","lineNumber":42,"sourceCode":"    protected String format;\n\n    @Override\n    public void doExecute(final QuarkusProject quarkusProject, final MessageWriter log) throws MojoExecutionException {\n        try {\n            ListCategories listExtensions = new ListCategories(quarkusProject)\n                    .format(format);\n            listExtensions.execute();\n\n            if (DEFAULT_FORMAT.equalsIgnoreCase(format)) {\n                log.info(\"\");\n                log.info(ListCategories.MORE_INFO_HINT, \"-Dformat=full\");\n            }\n            log.info(\"\");\n            log.info(ListCategories.LIST_EXTENSIONS_HINT,\n                    \"`./mvnw quarkus:list-extensions -Dcategory=\\\"categoryId\\\"`\");\n\n        } catch (Exception e) {\n            throw new MojoExecutionException(\"Failed to list extension categories\", e);\n        }\n    }\n}\n","sourceCodeStart":24,"sourceCodeEnd":46,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/maven/src/main/java/io/quarkus/maven/ListCategoriesMojo.java#L24-L46","documentation":"ListCategoriesMojo (`mvn quarkus:list-categories`) fetches extension categories from the Quarkus extension registry. Any exception during that process (registry connectivity, model resolution, parsing) is wrapped as this MojoExecutionException.","triggerScenarios":"Running `mvn quarkus:list-categories` when the extension registry cannot be reached, returns invalid data, or the project's application model cannot be resolved first.","commonSituations":"No internet access in CI; wrong quarkus.registry configuration; registry outage; malformed project POM preventing model resolution.","solutions":["Verify connectivity to the Quarkus registry and fix proxy/DNS issues","Check quarkus.registry settings in pom.xml or settings","Re-run with -e to see the root cause from the wrapped Exception","Bypass corporate firewall by mirroring the registry locally","Retry after transient registry outage"],"exampleFix":"// before\nmvn quarkus:list-categories  # timeout behind proxy\n// after\nmvn -Dquarkus.registry=https://mirror.corp/quarkus quarkus:list-categories","handlingStrategy":"try-catch","validationCode":"curl -fsS https://registry.quarkus.io/extensions/all -o /dev/null || echo \"registry unreachable\"","typeGuard":null,"tryCatchPattern":"try {\n    // mvn quarkus:list-categories\n} catch (MojoExecutionException e) {\n    log.error(\"Category listing failed, cause=\" + e.getCause());\n    // fall back to bundled platform metadata or retry later\n}","preventionTips":["Pin a known-good registry URL","Cache registry responses offline for air-gapped use","Check registry status before scheduled CI jobs"],"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-14T00:17:10.932Z"}