{"record":{"id":"4c38b2967522008f","repo":"quarkusio/quarkus","slug":"failed-to-read-artifact-descriptor-for","errorCode":null,"errorMessage":"Failed to read artifact descriptor for ","messagePattern":"Failed to read artifact descriptor for ","errorType":"exception","errorClass":"BootstrapMavenException","httpStatus":null,"severity":"error","filePath":"independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/BootstrapMavenContext.java","lineNumber":838,"sourceCode":"                return List.of();\n            }\n            projectArtifact = new DefaultArtifact(ModelUtils.getGroupId(model), model.getArtifactId(),\n                    ArtifactCoords.DEFAULT_CLASSIFIER, ArtifactCoords.TYPE_POM, ModelUtils.getVersion(model));\n        } else {\n            projectArtifact = new DefaultArtifact(currentProject.getGroupId(), currentProject.getArtifactId(),\n                    ArtifactCoords.DEFAULT_CLASSIFIER, ArtifactCoords.TYPE_POM, currentProject.getVersion());\n        }\n\n        final RepositorySystem repoSystem = getRepositorySystem();\n        final RepositorySystemSession repoSession = getRepositorySystemSession();\n        try {\n            return repoSystem\n                    .readArtifactDescriptor(repoSession, new ArtifactDescriptorRequest()\n                            .setArtifact(projectArtifact)\n                            .setRepositories(repos))\n                    .getRepositories();\n        } catch (ArtifactDescriptorException e) {\n            throw new BootstrapMavenException(\"Failed to read artifact descriptor for \" + projectArtifact, e);\n        }\n    }\n\n    public List<org.apache.maven.model.Profile> getActiveSettingsProfiles()\n            throws BootstrapMavenException {\n        if (activeSettingsProfiles != null) {\n            return activeSettingsProfiles;\n        }\n\n        final Settings settings = getEffectiveSettings();\n        final List<Profile> allSettingsProfiles = settings.getProfiles();\n        if (allSettingsProfiles.isEmpty()) {\n            return activeSettingsProfiles = List.of();\n        }\n\n        final BootstrapMavenOptions mvnArgs = getCliOptions();\n        final Path currentPom = getCurrentProjectPomOrNull();\n        final DefaultProfileActivationContext context = new DefaultProfileActivationContext()","sourceCodeStart":820,"sourceCodeEnd":856,"githubUrl":"https://github.com/quarkusio/quarkus/blob/e1c734241f34c7919086ceb4c9262b4a58f6de44/independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/BootstrapMavenContext.java#L820-L856","documentation":"BootstrapMavenException thrown while reading the artifact descriptor (effective pom + dependencies) of the current project artifact during bootstrap resolution. The artifact whose descriptor failed is appended to the message; the cause is usually an unresolvable dependency, missing parent, or invalid pom in the dependency tree.","triggerScenarios":"Thrown at independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/BootstrapMavenContext.java:838 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the caused-by exception for the exact unresolvable artifact or invalid pom","Verify the parent pom and dependencies of the named artifact are reachable in the configured repositories","Rebuild/install the artifact locally if it is a snapshot or local module"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}