Class RemoteSnapshotMetadataGenerator
- java.lang.Object
-
- org.apache.maven.repository.internal.RemoteSnapshotMetadataGenerator
-
- All Implemented Interfaces:
org.eclipse.aether.impl.MetadataGenerator
class RemoteSnapshotMetadataGenerator extends java.lang.Object implements org.eclipse.aether.impl.MetadataGenerator
Maven remote GAV level metadata generator.Remote snapshot metadata converts artifact on-the-fly to use timestamped snapshot version, and enlist it accordingly.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
legacyFormat
private java.util.Map<java.lang.Object,RemoteSnapshotMetadata>
snapshots
private java.util.Date
timestamp
-
Constructor Summary
Constructors Constructor Description RemoteSnapshotMetadataGenerator(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends org.eclipse.aether.metadata.Metadata>
finish(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
java.util.Collection<? extends org.eclipse.aether.metadata.Metadata>
prepare(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
org.eclipse.aether.artifact.Artifact
transformArtifact(org.eclipse.aether.artifact.Artifact artifact)
-
-
-
Field Detail
-
snapshots
private final java.util.Map<java.lang.Object,RemoteSnapshotMetadata> snapshots
-
legacyFormat
private final boolean legacyFormat
-
timestamp
private final java.util.Date timestamp
-
-
Method Detail
-
prepare
public java.util.Collection<? extends org.eclipse.aether.metadata.Metadata> prepare(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
- Specified by:
prepare
in interfaceorg.eclipse.aether.impl.MetadataGenerator
-
transformArtifact
public org.eclipse.aether.artifact.Artifact transformArtifact(org.eclipse.aether.artifact.Artifact artifact)
- Specified by:
transformArtifact
in interfaceorg.eclipse.aether.impl.MetadataGenerator
-
finish
public java.util.Collection<? extends org.eclipse.aether.metadata.Metadata> finish(java.util.Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts)
- Specified by:
finish
in interfaceorg.eclipse.aether.impl.MetadataGenerator
-
-