Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-798

scm:branch ignores the tagBase parameter, there is no branchBase parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.4
    • None
    • None

    Description

      [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-scm-plugin:1.9.4:branch' with basic configurator -->
      [DEBUG]   (f) basedir = /home/acme/gotham/common_ui
      [DEBUG]   (f) branch = 2.2/2.2.0
      [DEBUG]   (f) connectionType = connection
      [DEBUG]   (s) connectionUrl = scm:svn:svn+ssh://svn@svn.acme.com/repos/trunk/common_ui
      [DEBUG]   (f) developerConnectionUrl = scm:svn:svn+ssh://svn@svn.acme.com/repos/trunk/common_ui
      [DEBUG]   (f) pushChanges = true
      [DEBUG]   (f) remoteBranching = false
      [DEBUG]   (f) settings = org.apache.maven.execution.SettingsAdapter@7b300cde
      [DEBUG]   (f) tagBase = svn+ssh://svn@svn.acme.com/repos/branches/common_ui
      [DEBUG] -- end configuration --
      [INFO] Final Branch Name: '2.2/2.2.0'
      [INFO] Executing: /bin/sh -c cd /home/acme/gotham/common_ui && svn --non-interactive copy --file /tmp/maven-scm-1267210601.commit . svn+ssh://svn@svn.acme.com/repos/branches/2.2/2.2.0
      

      I can see this code handling tagBase, but there is none for branchBase

                  if ( !StringUtils.isEmpty( tagBase ) && repository.getProvider().equals( "svn" ) )
                  {
                      SvnScmProviderRepository svnRepo = (SvnScmProviderRepository) repository.getProviderRepository();
                      svnRepo.setTagBase( tagBase );
                  }

      Adding a parallel handling for branchBase param should be trivial.

      Correcting the documentation is another thing – the tagBase parameter is present on the base Mojo class even though it's ignored in some goals.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jbochenski Jakub Bochenski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: