Uploaded image for project: 'Maven SCM Publish Plugin'
  1. Maven SCM Publish Plugin
  2. MSCMPUB-59

Use interactive mode for SCM when Maven is executed in interactive mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0
    • None
    • None

    Description

      When Maven is executed in interactive mode (i.e. batch mode is not enabled via -B) the underlying SCM commands should also be executed in interactive mode.
      That way asking for credentials is possible.
      Currently with m-scm-publish-p 3.1.0 I see the following

      [INFO] --- scm-publish:3.1.0:publish-scm (scm-publish) @ jackrabbit-site ---
      [INFO] Checking out the pub tree from scm:svn:https://svn.apache.org/repos/asf/jackrabbit/site/live/jcr into /Users/konradwindszus/svn/jackrabbit/site/trunk/target/scmpublish-checkout
      [INFO] Executing: /bin/sh -c cd /Users/konradwindszus/svn/jackrabbit/site/trunk/target && svn --non-interactive checkout https://svn.apache.org/repos/asf/jackrabbit/site/live/jcr@ /Users/konradwindszus/svn/jackrabbit/site/trunk/target/scmpublish-checkout
      [INFO] Updating checkout directory with actual content in /Users/konradwindszus/svn/jackrabbit/site/trunk/target/site
      [INFO] Content consists of 10 directories and 190 files = 4 MB
      [INFO] Publishing content to SCM will result in 0 addition(s), 190 update(s), 1 delete(s)
      .....
      [INFO] Executing: /bin/sh -c cd /Users/konradwindszus/svn/jackrabbit/site/trunk/target/scmpublish-checkout && svn remove --targets /var/folders/f8/_3c0rvgd00n324sqjc8y_3wr0000gn/T/maven-scm-8456434031716391901-targets
      [INFO] Checking in SCM, starting at Wed Jul 19 15:35:21 CEST 2023...
      [INFO] Executing: /bin/sh -c cd /Users/konradwindszus/svn/jackrabbit/site/trunk/target/scmpublish-checkout && svn --non-interactive commit --file /var/folders/f8/_3c0rvgd00n324sqjc8y_3wr0000gn/T/maven-scm-1361910343.commit --encoding UTF-8
      [ERROR] Failed to check-in files to SCM: The svn command failed. svn: E215004: Authentication failed and interactive prompting is disabled; see the --force-interactive option
      svn: E215004: Commit failed (details follow):
      svn: E215004: No more credentials or we tried too many times.
      Authentication failed
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: