Class ScmProviderRepository

    • Method Detail

      • setUser

        public void setUser​(String user)
        Set the user.
        Parameters:
        user - The user
      • setPassword

        public void setPassword​(String password)
        Set the password.
        Parameters:
        password - The user password
      • isPushChanges

        public boolean isPushChanges()
        Should distributed changes be pushed to the central repository? For many distributed SCMs like Git, a change like a commit is only stored in your local copy of the repository. Pushing the change allows your to more easily share it with other users.
        Returns:
        TODO
        Since:
        1.4
      • setPushChanges

        public void setPushChanges​(boolean pushChanges)
        Parameters:
        pushChanges - TODO
        Since:
        1.4
      • setWorkItem

        @Deprecated
        public void setWorkItem​(String workItem)
        Deprecated.
        Set the workItem.
        Parameters:
        workItem - The workItem.
        Since:
        1.9.5
      • isPersistCheckout

        @Deprecated
        public boolean isPersistCheckout()
        Deprecated.
        Will checkouts using this repository be persisted so they can be refreshed in the future? This property is of concern to SCMs like Perforce and Clearcase where the server must track where a user checks out to. If false, the server entry (clientspec in Perforce terminology) will be deleted after the checkout is complete so the files will not be able to be updated.

        This setting can be overriden by using the system property "maven.scm.persistcheckout" to true.

        The default is false. See SCM-113 for more detail.

        Returns:
        TODO
      • getRelativePath

        public String getRelativePath​(ScmProviderRepository ancestor)
        Get the relative path between the repository provided as argument and the current repository.
        Parameters:
        ancestor - another repository that should be ancestor of this one
        Returns:
        the relative path or null if it can't be resolved
        Throws:
        UnsupportedOperationException - unless overridden by subclass