Apache Archiva > Index > Archiva Proxy Policies
Added by Brett Porter, last edited by Brett Porter on Mar 19, 2008

The Archiva Proxy Policies are means to tweak the proxy techniques.

The proxy policies currently in the codebase.

Policy Mode Description Phase
release ALWAYS Means that the artifact is always updated from the remote repo. Predownload
  NEVER Means the artifact is never updated from the remote repo. Predownload
  DAILY Release downloads are allowed on a daily basis.
  • The local artifact is not present.
  • The local artifact has a last modified timestamp older than (now - 1 day)
Predownload
  HOURLY Release downloads are allowed on an hourly basis.
  • The local artifact is not present.
  • The local artifact has a last modified timestamp older than (now - 1 hour)
Predownload
  ONCE Release downloads occur only ever once. Predownload
snapshots ALWAYS Means that the artifact is always updated from the remote repo. Predownload
  NEVER Means the artifact is never updated from the remote repo. Predownload
  DAILY Snapshot downloads are allowed on a daily basis.
  • The local artifact is not present.
  • The local artifact has a last modified timestamp older than (now - 1 day)
Predownload
  HOURLY Snapshot downloads are allowed on an hourly basis.
  • The local artifact is not present.
  • The local artifact has a last modified timestamp older than (now - 1 hour)
Predownload
  ONCE Snapshot downloads occur only ever once. Predownload
checksum IGNORE The policy is ignored or skipped. Postdownload
  FAIL If a download doesn't match its remote repository checksum, the download is considered failed. Postdownload
  FIX Fix any downloaded checksums Postdownload
cached-failues NO Means that the existence of old failures is not checked. All resource requests are allowed thru to the remote repo. Predownload
  YES Means that the existence of old failures is checked, and will prevent the request from being performed against the remote repo. Predownload