Maven Repository Metadata Model
This is strictly the model for Maven Repository Metadata, so really just plain objects.
The metadata file name is:
maven-metadata.xmlin a remote repository,maven-metadata-<repo-id>.xmlin a local repository, for metadata from a repository withrepo-ididentifier.
Depending on what the directory represents ("groupId", "groupId/artifactId" or "groupId/artifactId/version"), the Maven Repository Metadata file contains 3 different sets of metadata:
- in a "groupId" directory: a "groupId" directory may contain Maven plugins artifacts, which are described in metadata's
pluginselement, - in a "groupId/artifactId" directory: metadata describes
groupId,artifactIdandversioningelement that gives data about available versions (latest,release,versionslist andlastUpdated), - in a "groupId/artifactId/version" snapshot artifact directory: metadata describes
groupId,artifactId,version(base version, i.e. ending in-SNAPSHOT) andversioningelement that gives data about snapshot (snapshot,lastUpdatedandsnapshotVersionslist). Notice that a release artifact directory is not expected to provide metadata.
The following are generated from this model:
- Java sources with Reader and Writers for the Xpp3 XML parser, to read and write
maven-metadata(-*).xmlfiles, - a Descriptor Reference.
For more information see this page: Maven Metadata.



