[
https://issues.apache.org/jira/browse/SCM-842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963651#comment-17963651
]
ASF GitHub Bot commented on SCM-842:
------------------------------------
jira-importer closed issue #1069: [SCM-842] AuthenticationException: Wrong
Password
URL: https://github.com/apache/maven-scm/issues/1069
> AuthenticationException: Wrong Password
> ---------------------------------------
>
> Key: SCM-842
> URL: https://issues.apache.org/jira/browse/SCM-842
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-cvs
> Affects Versions: 1.9.5
> Reporter: Matteo TURRA
> Priority: Blocker
>
> Error running a _mvn scm:update_ command.
> Debug information
> {noformat}
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-scm-plugin:1.9.5:update' with basic
> configurator -->
> [DEBUG] (f) basedir = /home/mturra/ws/ws_client/com.mycompany
> [DEBUG] (f) connectionType = connection
> [DEBUG] (s) connectionUrl =
> scm:cvs:pserver:@myCvshost:/mycvsroot:com.mycompany
> [DEBUG] (f) password = mypassword
> [DEBUG] (f) project = MavenProject:
> com.mycompany:myproj:17.02.02.00-SNAPSHOT @
> /home/mturra/ws/com.mycompany/pom.xml
> [DEBUG] (f) pushChanges = true
> [DEBUG] (f) revisionKey = scm.revision
> [DEBUG] (f) runChangelog = false
> [DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@e044b4a
> [DEBUG] (f) username = mturra
> [DEBUG] -- end configuration --
> [DEBUG] cvsRoot: :pserver:mturra@myCvshost:2401/mycvsroot
> [DEBUG] passFile: /home/mturra/.cvspass
> [DEBUG] cvsroot :pserver:mturra@myCvshost:2401/mycvsroot already exist in
> /home/mturra/.cvspass. SKIPPED.
> [INFO] Executing: /bin/sh -c cd /home/mturra/ws/ws_client/com.mycompany &&
> cvs -z3 -f -q update -d
> [INFO] Working directory: /home/mturra/ws/com.mycompany
> [ERROR] Didn't find password for CVSROOT ':pserver:myCvshost:/mycvsroot'.
> org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong Password
> {noformat}
> As you can see the configuration contains correct username and password, but
> the plugin try to guess the password from _~/.cvspass_ (as cvs commads do).
> But the cvsroot passed to cvs connection haven't username in it and the
> search in the file fails.
> In
> org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.compareCvsRoot(String,
> String) the port parameter are "aligned" by completeCvsRootPort(String)
> method, but in the ~/.cvspass the cvsroot is in the form
> scm:cvs:pserver:user@host:path, this is reason why the compareCvsRoot fails
--
This message was sent by Atlassian Jira
(v8.20.10#820010)