Konrad Windszus created MSCMPUB-59:
--------------------------------------
Summary: Use interactive mode for SCM when Maven is executed in
interactive mode
Key: MSCMPUB-59
URL: https://issues.apache.org/jira/browse/MSCMPUB-59
Project: Maven SCM Publish Plugin
Issue Type: Improvement
Affects Versions: 3.1.0
Reporter: Konrad Windszus
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
{code}
[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
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)