maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo TURRA (JIRA)" <>
Subject [jira] [Resolved] (SCM-842) AuthenticationException: Wrong Password
Date Wed, 08 Feb 2017 16:08:41 GMT


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

> AuthenticationException: Wrong Password
> ---------------------------------------
>                 Key: SCM-842
>                 URL:
>             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: @ /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.
> [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

View raw message