Class RemoteSnapshotMetadataGenerator
java.lang.Object
org.apache.maven.repository.internal.RemoteSnapshotMetadataGenerator
- All Implemented Interfaces:
org.eclipse.aether.impl.MetadataGenerator
class RemoteSnapshotMetadataGenerator
extends 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
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final Map<Object,
RemoteSnapshotMetadata> private final Date
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteSnapshotMetadataGenerator
(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request) -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.eclipse.aether.metadata.Metadata>
finish
(Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts) Collection<? extends org.eclipse.aether.metadata.Metadata>
prepare
(Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts) org.eclipse.aether.artifact.Artifact
transformArtifact
(org.eclipse.aether.artifact.Artifact artifact)
-
Field Details
-
snapshots
-
legacyFormat
private final boolean legacyFormat -
timestamp
-
-
Constructor Details
-
RemoteSnapshotMetadataGenerator
RemoteSnapshotMetadataGenerator(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.deployment.DeployRequest request)
-
-
Method Details
-
prepare
public Collection<? extends org.eclipse.aether.metadata.Metadata> prepare(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 Collection<? extends org.eclipse.aether.metadata.Metadata> finish(Collection<? extends org.eclipse.aether.artifact.Artifact> artifacts) - Specified by:
finish
in interfaceorg.eclipse.aether.impl.MetadataGenerator
-