maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun P Johny <aru...@delphisoft.com>
Subject password argument is null. scm ext connection
Date Wed, 06 Jun 2007 10:50:17 GMT
Hi all,

I'm getting the following error when I try to execute the command 'mvn 
release:prepare'

-----Error
--other downloads
Downloading: 
http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/maven/scm/maven-scm-provider-perforce/1.0/maven-scm-provider-perforce-1.0.jar


61K downloaded
[INFO] [release:prepare]
[INFO] Verifying that there are no local modifications...
[INFO] Executing: cvs -z3 -f -d 
:ext:fkbuilder@192.168.3.5:/var/lib/cvs/root -n
-q update -d
[INFO] Working directory: F:\build_7_5\Folklore
java.lang.IllegalArgumentException: password argument is null
       at 
ch.ethz.ssh2.Connection.authenticateWithPassword(Connection.java:307)

       at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:122)


       at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect(CvsConnection.java:164)


       at 
org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:475)


       at 
org.apache.maven.scm.provider.cvslib.cvsjava.command.status.CvsJavaStatusCommand.executeCvsCommand(CvsJavaStatusCommand.java:50)


       at 
org.apache.maven.scm.provider.cvslib.command.status.AbstractCvsStatusCommand.executeStatusCommand(AbstractCvsStatusCommand.java:52)


       at 
org.apache.maven.scm.command.status.AbstractStatusCommand.executeCommand(AbstractStatusCommand.java:43)


       at 
org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:58) 

       at 
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:521)


       at 
org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.status(AbstractCvsScmProvider.java:641)


       at 
org.apache.maven.scm.provider.AbstractScmProvider.status(AbstractScmProvider.java:693) 

       at 
org.apache.maven.shared.release.phase.ScmCheckModificationsPhase.execute(ScmCheckModificationsPhase.java:98)


       at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:194)


       at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:131)


       at 
org.apache.maven.shared.release.DefaultReleaseManager.prepare(DefaultReleaseManager.java:94)


       at 
org.apache.maven.plugins.release.PrepareReleaseMojo.execute(PrepareReleaseMojo.java:127) 

       at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) 

       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)


       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)


       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)


       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)


       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:219)


       at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)


       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 

       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 

       at java.lang.reflect.Method.invoke(Method.java:585)
       at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
       at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Unable to check for local modifications
Provider message:
The cvs command failed.
Command output:

[INFO] 
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 18 seconds
[INFO] Finished at: Tue Jun 05 18:40:22 GMT+05:30 2007
[INFO] Final Memory: 5M/10M
[INFO] 
------------------------------------------------------------------------

I'm using 'ext' to connect to my cvs
when I tried to debug the problem i found that in
    org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect
    value of cvs_rsh is coming as null.
    In the method we are getting the value of cvs_rsh using the 
following code

            String cvs_rsh = 
System.getProperty("maven.scm.cvs.java.cvs_rsh");

            if (cvs_rsh == null) {
                try {
                    cvs_rsh = 
CommandLineUtils.getSystemEnvVars().getProperty(
                            "CVS_RSH");
                   
                } catch (IOException e) {
                }
            }
    //Here value of cvs_rsh is null
   
    Can any one tell me how to fix the problem?

    How to set the value of property 'maven.scm.cvs.java.cvs_rsh' and 
what it should be?
or
    How to set the value of 'CVS_RSH' and what it should be?

Regards,
Arun P Johny

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message