Class SnapshotTransformation

    • Field Detail

      • deploymentTimestamp

        private java.lang.String deploymentTimestamp
      • UTC_TIME_ZONE

        private static final java.util.TimeZone UTC_TIME_ZONE
      • UTC_TIMESTAMP_PATTERN

        private static final java.lang.String UTC_TIMESTAMP_PATTERN
        See Also:
        Constant Field Values
    • Constructor Detail

      • SnapshotTransformation

        public SnapshotTransformation()
    • Method Detail

      • transformForResolve

        public void transformForResolve​(Artifact artifact,
                                        java.util.List<ArtifactRepository> remoteRepositories,
                                        ArtifactRepository localRepository)
                                 throws ArtifactResolutionException
        Description copied from interface: ArtifactTransformation
        Take in a artifact and return the transformed artifact for locating in the remote repository. If no transformation has occured the original artifact is returned.
        Parameters:
        artifact - Artifact to be transformed.
        remoteRepositories - the repositories to check
        localRepository - the local repository
        Throws:
        ArtifactResolutionException
      • transformForInstall

        public void transformForInstall​(Artifact artifact,
                                        ArtifactRepository localRepository)
        Description copied from interface: ArtifactTransformation
        Take in a artifact and return the transformed artifact for locating in the local repository. If no transformation has occured the original artifact is returned.
        Parameters:
        artifact - Artifact to be transformed.
        localRepository - the local repository it will be stored in
      • getDeploymentTimestamp

        public java.lang.String getDeploymentTimestamp()
      • constructVersion

        protected java.lang.String constructVersion​(org.apache.maven.artifact.repository.metadata.Versioning versioning,
                                                    java.lang.String baseVersion)
        Specified by:
        constructVersion in class AbstractVersionTransformation
      • getUtcDateFormatter

        public static java.text.DateFormat getUtcDateFormatter()