{"record":{"id":"b64415026c77976f","repo":"quarkusio/quarkus","slug":"failed-to-resolve-dependencies-of-project-getart","errorCode":null,"errorMessage":"Failed to resolve dependencies of ${project.getArtifact()}","messagePattern":"Failed to resolve dependencies of (.+?)","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java","lineNumber":994,"sourceCode":"                    log.error(\"The deployment artifact \" + rootDeploymentGact\n                            + \" depends on the following Quarkus extension deployment artifacts whose corresponding runtime artifacts were not found among the dependencies of \"\n                            + project.getArtifact() + \":\");\n                    highlightInTree(deploymentNode, unexpectedDeploymentDeps);\n                }\n            }\n\n            throw new MojoExecutionException(buf.toString());\n        }\n\n    }\n\n    private DependencyResult resolveRuntimeDeps() throws MojoExecutionException {\n        if (runtimeDeps == null) {\n            try {\n                runtimeDeps = repoSystem.resolveDependencies(repoSession,\n                        new DependencyRequest().setCollectRequest(newCollectRuntimeDepsRequest()));\n            } catch (Exception e) {\n                throw new MojoExecutionException(\"Failed to resolve dependencies of \" + project.getArtifact(), e);\n            }\n        }\n        return runtimeDeps;\n    }\n\n    private void highlightInTree(DependencyNode node, Collection<ArtifactKey> keys) {\n        highlightInTree(0, node, keys, new HashSet<>(), new StringBuilder(), new ArrayList<>());\n    }\n\n    private void highlightInTree(int depth, DependencyNode node, Collection<ArtifactKey> keysToHighlight,\n            Set<ArtifactKey> visited, StringBuilder buf, List<String> branch) {\n        final ArtifactKey key = toKey(node.getArtifact());\n        if (!visited.add(key)) {\n            return;\n        }\n        buf.setLength(0);\n        final boolean highlighted = keysToHighlight.contains(key);\n        if (highlighted) {","sourceCodeStart":976,"sourceCodeEnd":1012,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/extension-maven-plugin/src/main/java/io/quarkus/maven/ExtensionDescriptorMojo.java#L976-L1012","documentation":"MojoExecutionException context in ExtensionDescriptorMojo: after reporting descriptor consistency problems (e.g. deployment artifacts whose runtime counterparts are missing from the dependencies of the extension being processed), the mojo fails dependency resolution of the project artifact. The message names the extension project artifact whose dependency tree could not be resolved.","triggerScenarios":"DependencyRequest resolution fails: missing artifacts, repository outage, conflicting versions with no resolution, or invalid dependency metadata when resolveRuntimeDeps() is first called.","commonSituations":"Unresolvable snapshots; missing repositories for a third-party dependency; offline builds without cached artifacts; version conflicts making resolution impossible.","solutions":["Run mvn -U to force refresh of snapshots/metadata","Add the missing <repository> to pom.xml or settings.xml","Run offline=false and inspect the wrapped cause for the exact missing artifact","Fix dependency conflicts using dependencyManagement or mvn dependency:tree -Dverbose"],"exampleFix":"<!-- before: repo missing -->\n<!-- after -->\n<repositories>\n  <repository>\n    <id>my-repo</id>\n    <url>https://example.com/maven</url>\n  </repository>\n</repositories>","handlingStrategy":"retry","validationCode":"mvn -U dependency:resolve","typeGuard":null,"tryCatchPattern":"try {\n  mojo.execute();\n} catch (MojoExecutionException e) {\n  if (e.getMessage().contains(\"Failed to resolve dependencies of\")) {\n    // refresh metadata / check repos and retry\n  }\n}","preventionTips":["Configure all needed repositories in settings.xml","Resolve conflicts with dependencyManagement","Avoid offline builds for first-time resolution"],"tags":["maven","dependency-resolution","resolver"],"backgroundTag":"dependency-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"}