Class ScmUrl


  • public class ScmUrl
    extends Object
    • Constructor Detail

      • ScmUrl

        public ScmUrl()
    • Method Detail

      • parse

        public static ScmUrl parse​(String scm)
                            throws IllegalArgumentException
        Parses the <scm_provider> component of a the given Maven Maven SCM URL.
        The complete URL format is scm:<scm_provider><delimiter><provider_specific_part>, where <delimiter> can be either ":" or "|"
        Parameters:
        scm - The URL
        Returns:
        The <scm_provider> component of the URL
        Throws:
        IllegalArgumentException - if the provided URL is invalid