Class ArtifactRepositoryPolicy

java.lang.Object
org.apache.maven.artifact.repository.ArtifactRepositoryPolicy

public class ArtifactRepositoryPolicy extends Object
Describes a set of policies for a repository to use under certain conditions.
Author:
Brett Porter
  • Field Details

  • Constructor Details

    • ArtifactRepositoryPolicy

      public ArtifactRepositoryPolicy()
    • ArtifactRepositoryPolicy

      public ArtifactRepositoryPolicy(ArtifactRepositoryPolicy policy)
    • ArtifactRepositoryPolicy

      public ArtifactRepositoryPolicy(boolean enabled, String updatePolicy, String checksumPolicy)
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
    • setUpdatePolicy

      public void setUpdatePolicy(String updatePolicy)
    • setChecksumPolicy

      public void setChecksumPolicy(String checksumPolicy)
    • isEnabled

      public boolean isEnabled()
    • getUpdatePolicy

      public String getUpdatePolicy()
    • getChecksumPolicy

      public String getChecksumPolicy()
    • checkOutOfDate

      public boolean checkOutOfDate(Date lastModified)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • merge

      public void merge(ArtifactRepositoryPolicy policy)