Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Not A Bug
-
1.9.5
-
None
-
None
-
Important
Description
Error running a mvn scm:update command.
Debug information
[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
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