Maven 1.x SCM Plugin
  1. Maven 1.x SCM Plugin
  2. MPSCM-53

NullPointerException when setting checkout dir

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Labels:
      None
    • Environment:
      Maven 1.02 with scm plugin 1.5-beta-3 under Windows XP and cygwin. I am also using the cygwin subversion package.
    • Number of attachments :
      0

      Description

      Checking out WITHOUT setting the checkout dir property works. Setting the checkout dir property reports a NullPointerException.

      Notice that I am using svn+ssh. I have an ssh key setup so I do not have to enter a password to login.

      $ maven -e scm:checkout -Dmaven.scm.url=scm:svn:svn+ssh://svn.XXX.com/var/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

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Brett Porter
            Reporter:
            Alex Soto
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: