[ 
https://issues.apache.org/jira/browse/SCM-842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matteo TURRA resolved SCM-842.
------------------------------
    Resolution: Not A Bug

The issue is generated by the CVS/Root file in my project directory doen't have 
username!
I made the checkout with eclipse (using a Team Project Set .psf file), but if I 
use the cvs checkout from command line the CVS/Root file contains my username 
and the scm plugin works great.


> AuthenticationException: Wrong Password
> ---------------------------------------
>
>                 Key: SCM-842
>                 URL: https://issues.apache.org/jira/browse/SCM-842
>             Project: Maven SCM
>          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
(v6.3.15#6346)

Reply via email to