repository-metadata Metadata Per-directory repository metadata repository-metadata.xml.

A directory may represent 3 types of content: "groupId", "groupId/artifactId" or "groupId/artifactId/version".

Most metadata content has a meaning when the directory represents a "groupId/artifactId" (groupId, artifactId, versioning)

]]> package org.apache.maven.artifact.repository.metadata Metadata 1.0.0+ modelVersion 1.1.0+ String The version of the underlying metadata model. groupId 1.0.0+ String The groupId when this directory represents "groupId/artifactId" or "groupId/artifactId/version". artifactId 1.0.0+ String The artifactId when this directory represents "groupId/artifactId" or "groupId/artifactId/version". versioning 1.0.0+ Versioning Versioning information when this directory represents "groupId/artifactId" or "groupId/artifactId/version". version 1.0.0+ String -SNAPSHOT) when this directory represents a "groupId/artifactId/version" for a SNAPSHOT.]]> plugins 1.0.0+ The set of plugins when this directory represents a "groupId". Plugin * 1.0.0+ = 0 ) { changed = true; v.setLastUpdated( versioning.getLastUpdated() ); if ( versioning.getRelease() != null ) { changed = true; v.setRelease( versioning.getRelease() ); } if ( versioning.getLatest() != null ) { changed = true; v.setLatest( versioning.getLatest() ); } Snapshot s = v.getSnapshot(); Snapshot snapshot = versioning.getSnapshot(); if ( snapshot != null ) { boolean updateSnapshotVersions = false; if ( s == null ) { s = new Snapshot(); v.setSnapshot( s ); changed = true; updateSnapshotVersions = true; } // overwrite if ( s.getTimestamp() == null ? snapshot.getTimestamp() != null : !s.getTimestamp().equals( snapshot.getTimestamp() ) ) { s.setTimestamp( snapshot.getTimestamp() ); changed = true; updateSnapshotVersions = true; } if ( s.getBuildNumber() != snapshot.getBuildNumber() ) { s.setBuildNumber( snapshot.getBuildNumber() ); changed = true; } if ( s.isLocalCopy() != snapshot.isLocalCopy() ) { s.setLocalCopy( snapshot.isLocalCopy() ); changed = true; } if ( updateSnapshotVersions ) { java.util.Map versions = new java.util.LinkedHashMap<>(); // never convert from legacy to new format if either source or target is legacy format if ( !v.getSnapshotVersions().isEmpty() ) { for ( SnapshotVersion sv : versioning.getSnapshotVersions() ) { String key = getSnapshotVersionKey( sv ); versions.put( key, sv ); } // never convert from legacy format if ( !versions.isEmpty() ) { for ( SnapshotVersion sv : v.getSnapshotVersions() ) { String key = getSnapshotVersionKey( sv ); if ( !versions.containsKey( key ) ) { versions.put( key, sv ); } } } v.setSnapshotVersions( new java.util.ArrayList( versions.values() ) ); } changed = true; } } } } return changed; } ]]> Versioning 1.0.0+ Versioning information for "groupId/artifactId" or "groupId/artifactId/version" SNAPSHOT latest 1.0.0+ String What the last version added to the directory is, including both releases and snapshots ("groupId/artifactId" directory only) release 1.0.0+ String What the last version added to the directory is, for the releases only ("groupId/artifactId" directory only) versions 1.0.0+ Versions available of the artifact (both releases and snapshots) ("groupId/artifactId" directory only) String * lastUpdated 1.0.0+ String When the metadata was last updated (both "groupId/artifactId" and "groupId/artifactId/version" directories). The timestamp is expressed using UTC in the format yyyyMMddHHmmss. snapshot 1.0.0+ Snapshot The current snapshot data in use for this version ("groupId/artifactId/version" only) snapshotVersions 1.1.0+ Information for each sub-artifact available in this artifact snapshot. This is only the most recent SNAPSHOT for each unique extension/classifier combination. SnapshotVersion * 1.0.0+ Snapshot 1.0.0+ Snapshot data for the last artifact corresponding to the SNAPSHOT base version timestamp 1.0.0+ The timestamp when this version was deployed. The timestamp is expressed using UTC in the format yyyyMMdd.HHmmss. String buildNumber 1.0.0+ The incremental build number int localCopy 1.0.0+ Whether to use a local copy instead (with filename that includes the base version) boolean false SnapshotVersion 1.1.0+ Versioning information for a sub-artifact of the current snapshot artifact. classifier 1.1.0+ String The classifier of the sub-artifact. Each classifier and extension pair may only appear once. true extension 1.1.0+ String The file extension of the sub-artifact. Each classifier and extension pair may only appear once. true version 1.1.0+ String The resolved snapshot version of the sub-artifact. true updated 1.1.0+ String The timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss. true Plugin 1.0.0+ Mapping information for a single plugin within this group. NOTE: plugin version is _NOT_ included here, since it is resolved using a separate algorithm in plugins' artifact. name String true 1.0.0+ Display name for the plugin. prefix String true 1.0.0+ The plugin invocation prefix (i.e. eclipse for eclipse:eclipse) artifactId String true 1.0.0+ The plugin artifactId