Re: Didn't find password for CVSROOT - mvn release plugin
Try -Dmaven.scm.provider.cvs.implementation=cvs_native if you have a native client installed (like TortoiseCVS installed, of course make sure that cvs.exe is in the PATH) as specified here: http://maven.apache.org/scm/cvs.html May be it will help... Regards, Siarhei On Mon, Apr 28, 2008 at 9:02 PM, Jeudy, Guillaume <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to use maven release plugin with maven 2.0.8. > > The downloaded scm plugin was 1.0 and the release plugin is version 4. > > when I run mvn release:prepare -Dusername=gjeudy -Dpassword=passwd I get > the below exception when it is trying to checkin the modified pom files. > > Im using a top-level parent/aggregator pom with inheritance. > > The SCM connection URL is defined as following in the parent pom file: > > > scm:cvs:pserver:nycdpdevdb01:/data/vol01/cvs/ARCH:dataplace/backoffice/auth > > The .cvspass file contains the following: > /1 :pserver:[EMAIL PROTECTED]:2401/data/vol01/cvs/ARCH AIb?J^da > > The relevant release.properties generated after the first run of mvn > release:prepare: > > > > > scm.url=scm\:cvs\:pserver\:nycdpdevdb01\:/data/vol01/cvs/ARCH\:dataplace/backoffice/auth > scm.username=gjeudy > scm.password=passwd > > The stacktrace I get: > > > [ERROR] Didn't find password for CVSROOT ':pserver:[EMAIL PROTECTED] > :/data/vol01/cvs/ARCH'. > org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong > Password. >at > org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:231) >at > org.netbeans.lib.cvsclient.connection.PServerConnection.open(PServerConnection.java:326) >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.checkin.CvsJavaCheckInCommand.executeCvsCommand(CvsJavaCheckInCommand.java:55) >at > org.apache.maven.scm.provider.cvslib.command.checkin.AbstractCvsCheckInCommand.executeCheckInCommand(AbstractCvsCheckInCommand.java:89) >at > org.apache.maven.scm.command.checkin.AbstractCheckInCommand.executeCommand(AbstractCheckInCommand.java:53) >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.checkin(AbstractCvsScmProvider.java:585) >at > org.apache.maven.scm.provider.AbstractScmProvider.checkIn(AbstractScmProvider.java:365) >at > org.apache.maven.shared.release.phase.ScmCommitPhase.checkin(ScmCommitPhase.java:124) >at > org.apache.maven.shared.release.phase.ScmCommitPhase.execute(ScmCommitPhase.java:109) >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:136) >at > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) >at > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) >at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) >at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) >at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) >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) >
RE: Didn't find password for CVSROOT - mvn release plugin
Hi, I ran the exact same solution using solaris and it worked. It seems like the below doesn't work under Windows XP. Could it be just that .cvspass file cannot be read back on windows? I know it can be written because if I delete it and gets rewritten... Any help appreciated, -Guillaume From: Jeudy, Guillaume Sent: Mon 28/04/2008 3:02 PM To: users@maven.apache.org Subject: Didn't find password for CVSROOT - mvn release plugin Hi, I'm trying to use maven release plugin with maven 2.0.8. The downloaded scm plugin was 1.0 and the release plugin is version 4. when I run mvn release:prepare -Dusername=gjeudy -Dpassword=passwd I get the below exception when it is trying to checkin the modified pom files. Im using a top-level parent/aggregator pom with inheritance. The SCM connection URL is defined as following in the parent pom file: scm:cvs:pserver:nycdpdevdb01:/data/vol01/cvs/ARCH:dataplace/backoffice/auth The .cvspass file contains the following: /1 :pserver:[EMAIL PROTECTED]:2401/data/vol01/cvs/ARCH AIb?J^da The relevant release.properties generated after the first run of mvn release:prepare: scm.url=scm\:cvs\:pserver\:nycdpdevdb01\:/data/vol01/cvs/ARCH\:dataplace/backoffice/auth scm.username=gjeudy scm.password=passwd The stacktrace I get: [ERROR] Didn't find password for CVSROOT ':pserver:[EMAIL PROTECTED]:/data/vol01/cvs/ARCH'. org.netbeans.lib.cvsclient.connection.AuthenticationException: Wrong Password. at org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection(PServerConnection.java:231) at org.netbeans.lib.cvsclient.connection.PServerConnection.open(PServerConnection.java:326) 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.checkin.CvsJavaCheckInCommand.executeCvsCommand(CvsJavaCheckInCommand.java:55) at org.apache.maven.scm.provider.cvslib.command.checkin.AbstractCvsCheckInCommand.executeCheckInCommand(AbstractCvsCheckInCommand.java:89) at org.apache.maven.scm.command.checkin.AbstractCheckInCommand.executeCommand(AbstractCheckInCommand.java:53) 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.checkin(AbstractCvsScmProvider.java:585) at org.apache.maven.scm.provider.AbstractScmProvider.checkIn(AbstractScmProvider.java:365) at org.apache.maven.shared.release.phase.ScmCommitPhase.checkin(ScmCommitPhase.java:124) at org.apache.maven.shared.release.phase.ScmCommitPhase.execute(ScmCommitPhase.java:109) 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:136) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:224) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) 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.ja