Class MavenRepositoryURL


  • public class MavenRepositoryURL
    extends Object
    An URL of Maven repository that knows if it contains SNAPSHOT versions and/or releases.
    Since:
    0.2.1, February 07, 2008
    Author:
    Alin Dreghiciu, Guillaume Nodet
    • Constructor Detail

      • MavenRepositoryURL

        public MavenRepositoryURL​(String repositorySpec)
                           throws MalformedURLException
        Creates a maven repository URL bases on a string spec. The path can be marked with @snapshots and/or @noreleases (not case sensitive).
        Parameters:
        repositorySpec - url spec of repository
        Throws:
        MalformedURLException - if spec contains a malformed maven repository url
        org.ops4j.lang.NullArgumentException - if repository spec is null or empty
    • Method Detail

      • getId

        public String getId()
        Getter.
        Returns:
        repository id
      • getURL

        public URL getURL()
        Getter.
        Returns:
        repository URL
      • getFile

        public File getFile()
        Getter.
        Returns:
        repository file
      • isReleasesEnabled

        public boolean isReleasesEnabled()
        Getter.
        Returns:
        true if the repository contains releases
      • isSnapshotsEnabled

        public boolean isSnapshotsEnabled()
        Getter.
        Returns:
        true if the repository contains snapshots
      • getReleasesUpdatePolicy

        public String getReleasesUpdatePolicy()
      • getSnapshotsUpdatePolicy

        public String getSnapshotsUpdatePolicy()
      • getReleasesChecksumPolicy

        public String getReleasesChecksumPolicy()
      • getSnapshotsChecksumPolicy

        public String getSnapshotsChecksumPolicy()
      • isMulti

        public boolean isMulti()
        Getter.
        Returns:
        true if the repository is a parent path of repos
      • isFileRepository

        public boolean isFileRepository()
        Getter.
        Returns:
        if the repository is a file based repository.