You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alex Soto <ap...@gmail.com> on 2005/05/23 09:43:17 UTC
[Maven-1.02] scm plugin with subversion, setting checkout dir error
Hi I'm trying to use maven to checkout a project. I'm running on windows
under cygwin and I'm using the cygwin packaged svn binaries. If I don't set
the checkout dir property then it checks out the project under
target/checkout. When I set the checkout dir property I get a
NullPointerException. I looked in the list archives and someone reported the
same error and Brett asked them to submit a bug report, but I didn't see one
for it.
Anyone have any luck doing a checkout and also setting the checkout dir?
Below is the exception trace of my error.
$ maven -e scm:checkout -Dmaven.scm.url=scm:svn:svn+ssh://svn.XXX.com/v
ar/svn/itn/trunk -Dmaven.scm.checkout.dir=itn
build:start:
scm:find-connection:
[echo] Using connection: scm:svn:svn+ssh://svn.XXX.com/var/svn/itn/trunk
scm:checkout:
[echo] Checking out scm:svn:svn+ssh://svn.XXX.com/var/svn/itn/trunk
BUILD FAILED
org.apache.maven.scm.ScmException: Exception while executing SCM command.
at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java
:58)
at org.apache.maven.scm.provider.AbstractScmProvider.execute(
AbstractScmProvider.java:85)
at org.apache.maven.scm.manager.DefaultScmManager.execute(
DefaultScmManager.java:250)
at org.apache.maven.scm.manager.DefaultScmManager.checkOut(
DefaultScmManager.java:141)
at org.apache.maven.plugins.scm.ScmBean.checkout(ScmBean.java:94)
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:324)
at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java
:230)
at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java
:145)
at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
MavenGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
(MavenGoalTag.java:110)
at com.werken.werkz.Goal.fire(Goal.java:639)
at com.werken.werkz.Goal.attain(Goal.java:575)
at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
at org.apache.maven.cli.App.doMain(App.java:488)
at org.apache.maven.cli.App.main(App.java:1239)
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:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Caused by: java.lang.NullPointerException
at
org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutCommand.createCommandLine
(SvnCheckOutCommand.java:97)
at
org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutCommand.executeCheckOutCommand
(SvnCheckOutCommand.java:58)
at
org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand
(AbstractCheckOutCommand.java:45)
at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java
:54)
... 25 more
File...... C:\Documents and Settings\asoto\.maven\cache\maven-
scm-plugin-1.5-beta-3\plugin.jelly
Element... scm:checkout
Line...... 110
Column.... 167
Exception while executing SCM command.
Total time: 4 seconds
Finished at: Sun May 22 22:51:27 PDT 2005
Re: [Maven-1.02] scm plugin with subversion, setting checkout dir error
Posted by Alex Soto <ap...@gmail.com>.
True about the system name. I checkout, update, commit with the same URL
using just svn, so I doubt it's the lack of a username in the url since it
picks up my local username.
On 5/23/05, Brett Porter <br...@gmail.com> wrote:
>
> On 5/23/05, Alex Soto <ap...@gmail.com> wrote:
> > FYI, I have a ssh-key setup so I don't need to login.
>
> But it still needs a username, though it should default to the system
> username so that may be a red herring.
>
> >
> > I'll file a bug. Besides what I already posted, is there any more
> > information I can provide?
>
> I'll take a peek with what you've given me tomorrow.
>
> - Brett
>
Re: [Maven-1.02] scm plugin with subversion, setting checkout dir error
Posted by Brett Porter <br...@gmail.com>.
On 5/23/05, Alex Soto <ap...@gmail.com> wrote:
> FYI, I have a ssh-key setup so I don't need to login.
But it still needs a username, though it should default to the system
username so that may be a red herring.
>
> I'll file a bug. Besides what I already posted, is there any more
> information I can provide?
I'll take a peek with what you've given me tomorrow.
- Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [Maven-1.02] scm plugin with subversion, setting checkout dir error
Posted by Alex Soto <ap...@gmail.com>.
FYI, I have a ssh-key setup so I don't need to login.
I'll file a bug. Besides what I already posted, is there any more
information I can provide?
On 5/23/05, Brett Porter <br...@gmail.com> wrote:
>
> I'd need to take a closer look, but I'd take a stab at the username
> not being specified.
>
> either way, its a bug - so if you could file the details that'd be
> appreciated (sorry, I susually follow up when someone doesn't file it,
> but mustn't have in this case).
>
> - Brett
>
> On 5/23/05, Alex Soto <ap...@gmail.com> wrote:
> > Hi I'm trying to use maven to checkout a project. I'm running on windows
> > under cygwin and I'm using the cygwin packaged svn binaries. If I don't
> set
> > the checkout dir property then it checks out the project under
> > target/checkout. When I set the checkout dir property I get a
> > NullPointerException. I looked in the list archives and someone reported
> the
> > same error and Brett asked them to submit a bug report, but I didn't see
> one
> > for it.
> >
> > Anyone have any luck doing a checkout and also setting the checkout dir?
> >
> >
> > Below is the exception trace of my error.
> >
> > $ maven -e scm:checkout -Dmaven.scm.url=scm:svn:svn+ssh://svn.XXX.com/v
> > ar/svn/itn/trunk -Dmaven.scm.checkout.dir=itn
> >
> > build:start:
> >
> > scm:find-connection:
> > [echo] Using connection: scm:svn:svn+ssh://svn.XXX.com/var/svn/itn/trunk
> >
> > scm:checkout:
> > [echo] Checking out scm:svn:svn+ssh://svn.XXX.com/var/svn/itn/trunk
> >
> > BUILD FAILED
> > org.apache.maven.scm.ScmException: Exception while executing SCM
> command.
> > at org.apache.maven.scm.command.AbstractCommand.execute(
> AbstractCommand.java
> > :58)
> > at org.apache.maven.scm.provider.AbstractScmProvider.execute(
> > AbstractScmProvider.java:85)
> > at org.apache.maven.scm.manager.DefaultScmManager.execute(
> > DefaultScmManager.java:250)
> > at org.apache.maven.scm.manager.DefaultScmManager.checkOut(
> > DefaultScmManager.java:141)
> > at org.apache.maven.plugins.scm.ScmBean.checkout(ScmBean.java:94)
> > 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:324)
> > at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(
> DynamicBeanTag.java
> > :230)
> > at org.apache.commons.jelly.impl.StaticTagScript.run(
> StaticTagScript.java
> > :145)
> > at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> > at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
> > MavenGoalTag.java:79)
> > at
> >
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
> > (MavenGoalTag.java:110)
> > at com.werken.werkz.Goal.fire(Goal.java:639)
> > at com.werken.werkz.Goal.attain(Goal.java:575)
> > at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java
> :671)
> > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
> > at org.apache.maven.cli.App.doMain(App.java:488)
> > at org.apache.maven.cli.App.main(App.java:1239)
> > 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:324)
> > at com.werken.forehead.Forehead.run(Forehead.java:551)
> > at com.werken.forehead.Forehead.main(Forehead.java:581)
> > Caused by: java.lang.NullPointerException
> > at
> >
> org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutCommand.createCommandLine
> > (SvnCheckOutCommand.java:97)
> > at
> >
> org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutCommand.executeCheckOutCommand
> > (SvnCheckOutCommand.java:58)
> > at
> >
> org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand
> > (AbstractCheckOutCommand.java:45)
> > at org.apache.maven.scm.command.AbstractCommand.execute(
> AbstractCommand.java
> > :54)
> > ... 25 more
> > File...... C:\Documents and Settings\asoto\.maven\cache\maven-
> > scm-plugin-1.5-beta-3\plugin.jelly
> > Element... scm:checkout
> > Line...... 110
> > Column.... 167
> > Exception while executing SCM command.
> > Total time: 4 seconds
> > Finished at: Sun May 22 22:51:27 PDT 2005
> >
> >
>
Re: [Maven-1.02] scm plugin with subversion, setting checkout dir error
Posted by Brett Porter <br...@gmail.com>.
I'd need to take a closer look, but I'd take a stab at the username
not being specified.
either way, its a bug - so if you could file the details that'd be
appreciated (sorry, I susually follow up when someone doesn't file it,
but mustn't have in this case).
- Brett
On 5/23/05, Alex Soto <ap...@gmail.com> wrote:
> Hi I'm trying to use maven to checkout a project. I'm running on windows
> under cygwin and I'm using the cygwin packaged svn binaries. If I don't set
> the checkout dir property then it checks out the project under
> target/checkout. When I set the checkout dir property I get a
> NullPointerException. I looked in the list archives and someone reported the
> same error and Brett asked them to submit a bug report, but I didn't see one
> for it.
>
> Anyone have any luck doing a checkout and also setting the checkout dir?
>
>
> Below is the exception trace of my error.
>
> $ maven -e scm:checkout -Dmaven.scm.url=scm:svn:svn+ssh://svn.XXX.com/v
> ar/svn/itn/trunk -Dmaven.scm.checkout.dir=itn
>
> build:start:
>
> scm:find-connection:
> [echo] Using connection: scm:svn:svn+ssh://svn.XXX.com/var/svn/itn/trunk
>
> scm:checkout:
> [echo] Checking out scm:svn:svn+ssh://svn.XXX.com/var/svn/itn/trunk
>
> BUILD FAILED
> org.apache.maven.scm.ScmException: Exception while executing SCM command.
> at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java
> :58)
> at org.apache.maven.scm.provider.AbstractScmProvider.execute(
> AbstractScmProvider.java:85)
> at org.apache.maven.scm.manager.DefaultScmManager.execute(
> DefaultScmManager.java:250)
> at org.apache.maven.scm.manager.DefaultScmManager.checkOut(
> DefaultScmManager.java:141)
> at org.apache.maven.plugins.scm.ScmBean.checkout(ScmBean.java:94)
> 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:324)
> at org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java
> :230)
> at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java
> :145)
> at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
> at org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(
> MavenGoalTag.java:79)
> at
> org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction
> (MavenGoalTag.java:110)
> at com.werken.werkz.Goal.fire(Goal.java:639)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
> at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
> at org.apache.maven.cli.App.doMain(App.java:488)
> at org.apache.maven.cli.App.main(App.java:1239)
> 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:324)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
> Caused by: java.lang.NullPointerException
> at
> org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutCommand.createCommandLine
> (SvnCheckOutCommand.java:97)
> at
> org.apache.maven.scm.provider.svn.command.checkout.SvnCheckOutCommand.executeCheckOutCommand
> (SvnCheckOutCommand.java:58)
> at
> org.apache.maven.scm.command.checkout.AbstractCheckOutCommand.executeCommand
> (AbstractCheckOutCommand.java:45)
> at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java
> :54)
> ... 25 more
> File...... C:\Documents and Settings\asoto\.maven\cache\maven-
> scm-plugin-1.5-beta-3\plugin.jelly
> Element... scm:checkout
> Line...... 110
> Column.... 167
> Exception while executing SCM command.
> Total time: 4 seconds
> Finished at: Sun May 22 22:51:27 PDT 2005
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org