Class Repository

java.lang.Object
org.apache.maven.model.RepositoryBase
org.apache.maven.model.Repository
All Implemented Interfaces:
Serializable, Cloneable, InputLocationTracker
Direct Known Subclasses:
DeploymentRepository

public class Repository extends RepositoryBase implements Serializable, Cloneable
A repository contains the information needed for establishing connections with remote repository.
Version:
$Revision$ $Date$
See Also:
  • Constructor Details

    • Repository

      public Repository()
  • Method Details

    • clone

      public Repository clone()
      Method clone.
      Overrides:
      clone in class RepositoryBase
      Returns:
      Repository
    • getReleases

      public RepositoryPolicy getReleases()
      Get how to handle downloading of releases from this repository.
      Returns:
      RepositoryPolicy
    • getSnapshots

      public RepositoryPolicy getSnapshots()
      Get how to handle downloading of snapshots from this repository.
      Returns:
      RepositoryPolicy
    • setReleases

      public void setReleases(RepositoryPolicy releases)
      Set how to handle downloading of releases from this repository.
      Parameters:
      releases - a releases object.
    • setSnapshots

      public void setSnapshots(RepositoryPolicy snapshots)
      Set how to handle downloading of snapshots from this repository.
      Parameters:
      snapshots - a snapshots object.