quarkusio/quarkus · error · BootstrapMavenException

Failed to load current project at

Error message

Failed to load current project at 

What it means

BootstrapMavenException from resolveCurrentProject in the bootstrap Maven context: the current project's pom.xml could not be loaded/parsed (missing file, unreadable, or invalid XML). The path that failed to load is appended to the message.

Source

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

    public String getLocalRepo() throws BootstrapMavenException {
        return localRepo == null ? localRepo = resolveLocalRepo(getEffectiveSettings()) : localRepo;
    }

    private String[] getLocalRepoTail() {
        return localRepoTail == null ? localRepoTail = resolveLocalRepoTail() : localRepoTail;
    }

    private boolean getLocalRepoTailIgnoreAvailability() {
        return localRepoTailIgnoreAvailability == null
                ? localRepoTailIgnoreAvailability = resolveLocalRepoTailIgnoreAvailability()
                : localRepoTailIgnoreAvailability;
    }

    private LocalProject resolveCurrentProject(List<WorkspaceModulePom> providedModules) throws BootstrapMavenException {
        try {
            return LocalProject.loadWorkspace(this, providedModules);
        } catch (Exception e) {
            throw new BootstrapMavenException("Failed to load current project at " + getCurrentProjectPomOrNull(), e);
        }
    }

    private String resolveLocalRepo(Settings settings) {
        String localRepo = System.getenv("QUARKUS_LOCAL_REPO");
        if (localRepo != null) {
            return localRepo;
        }
        localRepo = getProperty("maven.repo.local");
        if (localRepo != null) {
            return localRepo;
        }
        localRepo = settings.getLocalRepository();
        return localRepo == null ? new File(getUserMavenConfigurationHome(), "repository").getAbsolutePath() : localRepo;
    }

    private String[] resolveLocalRepoTail() {
        final String localRepoTail = getProperty("maven.repo.local.tail");

View on GitHub (pinned to e1c734241f)

Solutions

  1. Verify the pom.xml path passed to the bootstrap context exists and is readable
  2. Fix XML syntax errors in the pom reported by the caused-by exception
  3. Ensure the current project GAV can be resolved from the pom
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:396 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/3deda9d9260bb8c5. Report an issue: GitHub.