{"record":{"id":"6804341dc9c2a201","repo":"quarkusio/quarkus","slug":"failed-to-resolve-the-quarkus-application-model-fo","errorCode":null,"errorMessage":"Failed to resolve the Quarkus application model for project ${coords}","messagePattern":"Failed to resolve the Quarkus application model for project (.+?)","errorType":"exception","errorClass":"MojoExecutionException","httpStatus":null,"severity":"error","filePath":"devtools/maven/src/main/java/io/quarkus/maven/QuarkusProjectStateMojoBase.java","lineNumber":74,"sourceCode":"        final Collection<Path> createdDirs = ensureResolvable(new DefaultArtifact(project.getGroupId(),\n                project.getArtifactId(), ArtifactCoords.TYPE_POM, project.getVersion()));\n        try {\n            processProjectState(quarkusProject);\n        } finally {\n            for (Path p : createdDirs) {\n                IoUtils.recursiveDelete(p);\n            }\n        }\n    }\n\n    protected abstract void processProjectState(QuarkusProject quarkusProject) throws MojoExecutionException;\n\n    protected ApplicationModel resolveApplicationModel() throws MojoExecutionException {\n        try {\n            return new BootstrapAppModelResolver(artifactResolver())\n                    .resolveModel(ArtifactCoords.pom(project.getGroupId(), project.getArtifactId(), project.getVersion()));\n        } catch (AppModelResolverException e) {\n            throw new MojoExecutionException(\"Failed to resolve the Quarkus application model for project \"\n                    + ArtifactCoords.pom(project.getGroupId(), project.getArtifactId(), project.getVersion()), e);\n        }\n    }\n\n    private Collection<Path> ensureResolvable(Artifact a) throws MojoExecutionException {\n        final DependencyNode root;\n        try {\n            root = artifactResolver().collectDependencies(a, List.of()).getRoot();\n        } catch (Exception e) {\n            throw new MojoExecutionException(\"Failed to collect dependencies of \" + a, e);\n        }\n        final List<Path> createdDirs = new ArrayList<>();\n        ensureResolvableModule(root, artifactResolver().getMavenContext().getWorkspace(), createdDirs);\n        return createdDirs;\n    }\n\n    private void ensureResolvableModule(DependencyNode node, LocalWorkspace workspace, List<Path> createdDirs)\n            throws MojoExecutionException {","sourceCodeStart":56,"sourceCodeEnd":92,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/devtools/maven/src/main/java/io/quarkus/maven/QuarkusProjectStateMojoBase.java#L56-L92","documentation":"This MojoExecutionException wraps an AppModelResolverException raised while resolving the Quarkus application model for the current project's POM coordinates in QuarkusProjectStateMojoBase.resolveApplicationModel. BootstrapAppModelResolver fetches the project POM and its dependency graph to build the app model; any Maven artifact resolution failure surfaces here. The original exception is preserved as the cause.","triggerScenarios":"Calling resolveApplicationModel when the project POM or its dependencies cannot be resolved from local/remote repositories — missing parent POM, unresolvable snapshot, corrupted local repo cache, or unmet dependency versions.","commonSituations":"Never-run multi-module build where sibling modules aren't installed; corrupted ~/.m2 repository entries; missing private repository credentials; broken parent BOM version in pom.xml.","solutions":["Read the caused-by AppModelResolverException to identify the unresolvable artifact and fix its declaration","Run mvn install -DskipTests on the multi-module build so sibling module POMs exist in the local repo","Delete the corrupt artifact directory under ~/.m2/repository and re-run to re-download","Verify repository credentials/mirrors in settings.xml for private artifacts"],"exampleFix":"// before\nmvn quarkus:update  (fails: cannot resolve com.example:parent:1.0)\n// after\nmvn install -DskipTests -f parent-pom/ && mvn quarkus:update","handlingStrategy":"try-catch","validationCode":"// Pre-resolve the project POM to confirm it is available:\n// mvn dependency:resolve -f pom.xml   (run before quarkus:update/info)","typeGuard":null,"tryCatchPattern":"try {\n    ApplicationModel model = resolver.resolveModel(coords);\n} catch (AppModelResolverException e) {\n    // log the unresolvable artifact from the cause chain, run mvn install -DskipTests, retry\n}","preventionTips":["Run a full mvn install before tooling goals on multi-module builds","Keep ~/.m2 healthy; delete corrupt artifact directories promptly","Ensure private repository credentials are in settings.xml","Keep parent/BOM versions declared correctly in the pom"],"tags":["maven","dependency-resolution","app-model"],"backgroundTag":"artifact-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"}