quarkusio/quarkus · error · BootstrapMavenException

Failed to read artifact descriptor for

Error message

Failed to read artifact descriptor for 

What it means

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.

Source

Thrown at independent-projects/bootstrap/maven-resolver/src/main/java/io/quarkus/bootstrap/resolver/maven/BootstrapMavenContext.java:838

                return List.of();
            }
            projectArtifact = new DefaultArtifact(ModelUtils.getGroupId(model), model.getArtifactId(),
                    ArtifactCoords.DEFAULT_CLASSIFIER, ArtifactCoords.TYPE_POM, ModelUtils.getVersion(model));
        } else {
            projectArtifact = new DefaultArtifact(currentProject.getGroupId(), currentProject.getArtifactId(),
                    ArtifactCoords.DEFAULT_CLASSIFIER, ArtifactCoords.TYPE_POM, currentProject.getVersion());
        }

        final RepositorySystem repoSystem = getRepositorySystem();
        final RepositorySystemSession repoSession = getRepositorySystemSession();
        try {
            return repoSystem
                    .readArtifactDescriptor(repoSession, new ArtifactDescriptorRequest()
                            .setArtifact(projectArtifact)
                            .setRepositories(repos))
                    .getRepositories();
        } catch (ArtifactDescriptorException e) {
            throw new BootstrapMavenException("Failed to read artifact descriptor for " + projectArtifact, e);
        }
    }

    public List<org.apache.maven.model.Profile> getActiveSettingsProfiles()
            throws BootstrapMavenException {
        if (activeSettingsProfiles != null) {
            return activeSettingsProfiles;
        }

        final Settings settings = getEffectiveSettings();
        final List<Profile> allSettingsProfiles = settings.getProfiles();
        if (allSettingsProfiles.isEmpty()) {
            return activeSettingsProfiles = List.of();
        }

        final BootstrapMavenOptions mvnArgs = getCliOptions();
        final Path currentPom = getCurrentProjectPomOrNull();
        final DefaultProfileActivationContext context = new DefaultProfileActivationContext()

View on GitHub (pinned to e1c734241f)

Solutions

  1. Inspect the caused-by exception for the exact unresolvable artifact or invalid pom
  2. Verify the parent pom and dependencies of the named artifact are reachable in the configured repositories
  3. Rebuild/install the artifact locally if it is a snapshot or local module
Defensive patterns

Strategy: try-catch

When it happens

Trigger: 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.

Common situations: See trigger scenarios.


AI-assisted analysis of quarkusio/quarkus@e1c734241f (2026-09-05). Data as JSON: /api/errors/4c38b2967522008f. Report an issue: GitHub.