{"record":{"id":"8d4da8c144e31a39","repo":"quarkusio/quarkus","slug":"failed-to-list-extensions","errorCode":null,"errorMessage":"Failed to list extensions","messagePattern":"Failed to list extensions","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"devtools/maven/src/main/java/io/quarkus/maven/ListExtensionsMojo.java","lineNumber":79,"sourceCode":"                    .search(searchPattern)\n                    .category(category)\n                    .installed(installed);\n            listExtensions.execute();\n\n            if (DEFAULT_FORMAT.equalsIgnoreCase(format)) {\n                log.info(\"\");\n                log.info(ListExtensions.MORE_INFO_HINT, \"-Dformat=full\");\n            }\n            if (!installed && (category == null || category.isBlank())) {\n                log.info(\"\");\n                log.info(ListExtensions.FILTER_HINT, \"-Dcategory=\\\"categoryId\\\"\");\n            }\n            log.info(\"\");\n            log.info(ListExtensions.ADD_EXTENSION_HINT,\n                    \"pom.xml\", \"./mvnw quarkus:add-extension -Dextensions=\\\"artifactId\\\"\");\n\n        } catch (Exception e) {\n            throw new MojoExecutionException(\"Failed to list extensions\", e);\n        }\n    }\n}\n","sourceCodeStart":61,"sourceCodeEnd":83,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/maven/src/main/java/io/quarkus/maven/ListExtensionsMojo.java#L61-L83","documentation":"ListExtensionsMojo (`mvn quarkus:list-extensions`) lists extensions available in the configured registry for the project's platform. Any exception while fetching/rendering that list is wrapped in this MojoExecutionException.","triggerScenarios":"Running `mvn quarkus:list-extensions` when registry lookup fails, the platform BOM is unresolvable, or application model resolution throws.","commonSituations":"Platform version pinned to an unpublished release; offline build machine; registry returning HTTP errors; version mismatch between quarkus-maven-plugin and platform BOM.","solutions":["Confirm the platform BOM version exists and matches the plugin version","Check network/proxy access to the registry","Run with -e and read the cause chain for the failing artifact/URL","Refresh metadata with -U","Align quarkus.platform.version and quarkus-maven-plugin versions"],"exampleFix":"// before\n<quarkus-maven-plugin.version>2.16.0</quarkus-maven-plugin.version> with platform 3.x\n// after\n<quarkus-maven-plugin.version>3.2.9.Final</quarkus-maven-plugin.version> matching platform 3.2.9.Final","handlingStrategy":"try-catch","validationCode":"// align versions before invoking\nmvn help:evaluate -Dexpression=quarkus.platform.version -q -DforceStdout\nmvn help:evaluate -Dexpression=quarkus-maven-plugin.version -q -DforceStdout\n// both must match","typeGuard":null,"tryCatchPattern":"try {\n    // mvn quarkus:list-extensions\n} catch (MojoExecutionException e) {\n    log.error(\"Extension listing failed: \" + e.getCause().getMessage());\n}","preventionTips":["Keep plugin and platform versions identical","Use quarkus:update to align versions","Verify network access before offline CI stages"],"tags":["maven","registry","extensions"],"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"}