title: Maven: The scm url does not contain a valid delimiter
body: <p>I'm trying to get automatic buildNumers working but I keep running into the error</p>
  
  <p>The scm url does not contain a valid delimiter</p>
  
  <p>Here's the relevant part of the pom.</p>
  
  <pre><code>&lt;scm&gt;
      &lt;connection&gt;scm:svn:${source.repo}&lt;/connection&gt;
      &lt;developerConnection&gt;scm:svn:${source.repo}&lt;/developerConnection&gt;
      &lt;url&gt;${source.repo}&lt;/url&gt;
  &lt;/scm&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;buildnumber-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;executions&gt;
          &lt;execution&gt;
              &lt;phase&gt;validate&lt;/phase&gt;        
              &lt;goals&gt;
                  &lt;goal&gt;create&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;revisionOnScmFailure&gt;1&lt;/revisionOnScmFailure&gt;
          &lt;format&gt;{0,number}&lt;/format&gt;
          &lt;items&gt;
              &lt;item&gt;buildNumber0&lt;/item&gt;
          &lt;/items&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  &lt;properties&gt;
      &lt;source.repo&gt;svn://myserver/repository/${project.artifactId}&lt;/source.repo&gt;
      [..]
  &lt;/properties&gt;
  </code></pre>
  
  <p>The subversion location contains two sub projects core and web.</p>
  
  <p>If anyone can help, I feel like I've tried everything. </p>
  
  <p>I've tried the following:</p>
  
  <ul>
  <li>using pipes: invalid url</li>
  <li>retrieving a list of items from the server using the repo url from the command line: works fine</li>
  <li>adding /trunk to the repo url: delimiter error</li>
  <li>adding /trunk/core to the repo url: delimiter error</li>
  <li>adding /trunk/web to the repo url: delimiter error</li>
  </ul>
  
  <p>The delimiter error is probably hiding a different error because I dont think the url is wrong.</p>
  
  <p>Here's the stack</p>
  
  <pre><code>java.lang.IllegalArgumentException: The scm url does not contain a valid delimit
      er.
              at org.apache.maven.scm.provider.ScmUrlUtils.getDelimiter(ScmUrlUtils.ja
      va:61)
              at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(Abs
      tractScmManager.java:186)
              at org.codehaus.mojo.build.CreateMojo.getScmRepository(CreateMojo.java:7
      68)
              at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:619)
              at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:464)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:694)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
      fecycle(DefaultLifecycleExecutor.java:556)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:535)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
      0)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              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)    
  </code></pre>
  
  <p>Thanks,
  Marc</p>