{"record":{"id":"15289e4f091142bf","repo":"quarkusio/quarkus","slug":"failed-to-create-the-application-model-for","errorCode":null,"errorMessage":"Failed to create the application model for ","messagePattern":"Failed to create the application model for ","errorType":"exception","errorClass":"BootstrapException","httpStatus":null,"severity":"error","filePath":"independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapAppModelFactory.java","lineNumber":278,"sourceCode":"                        log.warn(\"Failed to read deployment classpath cache from \" + cachedCpPath + \" for \"\n                                + appArtifact, e);\n                    }\n                }\n            }\n            CurationResult curationResult = new CurationResult(getAppModelResolver()\n                    .resolveManagedModel(appArtifact, forcedDependencies, excludedDependencies, managingProject,\n                            reloadableModules));\n            if (cachedCpPath != null) {\n                Files.createDirectories(cachedCpPath.getParent());\n                try {\n                    ApplicationModelSerializer.serialize(curationResult.getApplicationModel(), cachedCpPath);\n                } catch (IOException e) {\n                    log.warn(\"Failed to write classpath cache\", e);\n                }\n            }\n            return curationResult;\n        } catch (Exception e) {\n            throw new BootstrapException(\"Failed to create the application model for \" + appArtifact, e);\n        }\n    }\n\n    /**\n     * Attempts to load an application model from a file system path set as a value of a system property.\n     * In test mode the system property will be {@link BootstrapConstants#SERIALIZED_TEST_APP_MODEL}, otherwise\n     * it will be {@link BootstrapConstants#SERIALIZED_APP_MODEL}.\n     * <p>\n     * If the property was not set, the method will return null.\n     * <p>\n     * If the model could not deserialized, an error will be logged and null returned.\n     *\n     * @return deserialized application model or null\n     */\n    private CurationResult loadFromSystemProperty() {\n        // gradle tests and dev encode the result on the class path\n        final String serializedModel = test ? System.getProperty(BootstrapConstants.SERIALIZED_TEST_APP_MODEL)\n                : System.getProperty(BootstrapConstants.SERIALIZED_APP_MODEL);","sourceCodeStart":260,"sourceCodeEnd":296,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/bootstrap/core/src/main/java/io/quarkus/bootstrap/BootstrapAppModelFactory.java#L260-L296","documentation":"This BootstrapException wraps any Exception raised while building the application model (dependency curation/resolution) for the given appArtifact. It is a catch-all around resolveAppModelForWorkspace, so the root cause (a nested exception) carries the real failure such as unresolvable dependencies or repository connectivity problems.","triggerScenarios":"Any exception during application model creation: dependency resolution failures against Maven repositories, unresolvable parent POMs, corrupt local repository entries, or IOExceptions while writing the classpath cache followed by resolution errors.","commonSituations":"Missing or unreachable remote Maven repositories (corporate proxy, VPN down), a dependency version that does not exist, corrupted ~/.m2/repository downloads (.lastUpdated files), or an invalid parent/BOM version in the pom.","solutions":["Inspect the nested cause exception — it names the unresolvable artifact or IO problem","Run ./mvnw dependency:resolve (or mvn -U) to force refresh failing dependencies","Check repository connectivity/proxy settings in settings.xml","Delete the corrupted artifact directory under the local Maven repository and rebuild"],"exampleFix":"// before\nmvn quarkus:dev // fails with this wrapper\n// after\nmvn -U quarkus:dev // force update of snapshots/releases after fixing the bad dependency version","handlingStrategy":"try-catch","validationCode":"// pre-check artifact resolvability\nProcess p = new ProcessBuilder(\"mvn\", \"-q\", \"dependency:resolve\").inheritIO().start();\nif (p.waitFor() != 0) { /* fix dependencies before bootstrap */ }","typeGuard":null,"tryCatchPattern":"try {\n    factory.resolveAppModel();\n} catch (BootstrapException e) {\n    e.getCause().printStackTrace(); // real reason (unresolvable dep, repo issue)\n}","preventionTips":["Keep ~/.m2/repository clean; delete .lastUpdated / corrupt dirs","Verify repository connectivity and proxy settings before builds","Pin dependency and BOM versions that actually exist","Run with mvn -U to refresh stale metadata"],"tags":["maven","dependency-resolution","bootstrap"],"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-14T05:17:10.506Z"}