apache/maven · error · IOException

Snapshot information corrupted with remote repository data,

Error message

Snapshot information corrupted with remote repository data, please verify that no remote repository uses the id '{}'

What it means

Error "Snapshot information corrupted with remote repository data, please verify that no remote repository uses the id '{}'" thrown in apache/maven.

Source

Thrown at compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java:265

                        try (InputStream in = Files.newInputStream(metadata.getPath())) {
                            versioning = new Versioning(
                                    new MetadataStaxReader().read(in, false).getVersioning());

                            /*
                            NOTE: Users occasionally misuse the id "local" for remote repos which screws up the metadata
                            of the local repository. This is especially troublesome during snapshot resolution so we try
                            to handle that gracefully.
                             */
                            if (versioning != null
                                    && repository instanceof LocalRepository
                                    && versioning.getSnapshot() != null
                                    && versioning.getSnapshot().getBuildNumber() > 0) {
                                final Versioning repaired = new Versioning();
                                repaired.setLastUpdated(versioning.getLastUpdated());
                                repaired.setSnapshot(new Snapshot());
                                repaired.getSnapshot().setLocalCopy(true);
                                versioning = repaired;
                                throw new IOException("Snapshot information corrupted with remote repository data"
                                        + ", please verify that no remote repository uses the id '"
                                        + repository.getId() + "'");
                            }
                        }
                    }
                }
            }
        } catch (Exception e) {
            invalidMetadata(session, trace, metadata, repository, e);
            result.addException(e);
        }

        return (versioning != null) ? versioning : new Versioning();
    }

    private void invalidMetadata(
            RepositorySystemSession session,
            RequestTrace trace,

View on GitHub (pinned to e4093d4e12)

When it happens

Trigger: Thrown at compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java:265 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/maven@e4093d4e12 (2026-08-21). Data as JSON: /api/errors/f344c42753dc61da. Report an issue: GitHub.