repository-metadata Metadata Per-directory repository metadata, for directories representing un-versioned artifact, snapshot artifact or a group containing Maven plugins.

Notice that most metadata content has a meaning when the directory represents an artifact (groupId, artifactId, versioning), but plugins is used when the directory represents a group.

]]>
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 that this directory represents, if any. artifactId 1.0.0+ String The artifactId that this directory represents, if any. version 1.0.0+ String The version that this directory represents, if any. It is used for artifact snapshots only. versioning 1.0.0+ Versioning Versioning information for the artifact. plugins 1.0.0+ The set of plugin mappings for the group represented by this directory 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 ) { if ( s == null ) { s = new Snapshot(); v.setSnapshot( s ); changed = true; } // overwrite if ( s.getTimestamp() == null ? snapshot.getTimestamp() != null : !s.getTimestamp().equals( snapshot.getTimestamp() ) ) { s.setTimestamp( snapshot.getTimestamp() ); changed = true; } if ( s.getBuildNumber() != snapshot.getBuildNumber() ) { s.setBuildNumber( snapshot.getBuildNumber() ); changed = true; } if ( s.isLocalCopy() != snapshot.isLocalCopy() ) { s.setLocalCopy( snapshot.isLocalCopy() ); changed = true; } } } } return changed; } ]]> Versioning 1.0.0+ Versioning information for an artifact (un-versioned or snapshot) latest 1.0.0+ String What the latest version in the directory is, including snapshots release 1.0.0+ String What the latest version in the directory is, of the releases only snapshot 1.0.0+ Snapshot The current snapshot data in use for this version (artifact snapshots only) versions 1.0.0+ Versions available of the artifact (both releases and snapshots) String * lastUpdated 1.0.0+ String When the metadata was last updated snapshotVersions 1.1.0+ Information for each sub-artifact available in this artifact snapshot. SnapshotVersion * 1.0.0+ Snapshot 1.0.0+ Snapshot data for the current artifact version timestamp 1.0.0+ The time it was deployed 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. extension 1.1.0+ String The file extension of thesub-artifact. version 1.1.0+ String The resolved snapshot version of the sub-artifact. updated 1.1.0+ String The timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss. 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