title: How to change SBT's rules on generating URLs for Maven repositories?
body: <p>By default, the Scala Built Tool (SBT) has a set of rules on how to generate URLs when looking up dependencies.  For example, if I have the following build file,</p>
  
  <pre><code>// Project settings
  name := "MyProject"
  
  version := "0.1"
  
  organization := "com.me"
  
  scalaVersion := "2.8.1"
  
  // Dependencies
  libraryDependencies ++= Seq(
     "com.google.guava" %% "guava" % "r09"
  )
  
  // Repositories
  resolvers += "Maven Central Server" at "http://repo1.maven.org/maven2"
  </code></pre>
  
  <p>Then SBT attempts to find guava at the following URL,</p>
  
  <pre><code>http://repo1.maven.org/maven2/com/google/guava/guava_2.8.1/r09/guava_2.8.1-r09.pom
  </code></pre>
  
  <p>However, the library I'm looking for in this case isn't even made for Scala, so combining the Scala version just doesn't make sense here.  How can I tell SBT what the format is for generating URLs for use with Maven repositories?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>While it seems that it is possible to edit the layout like so,</p>
  
  <pre><code>Resolver.url("Primary Maven Repository",
      new URL("http://repo1.maven.org/maven2/"))( Patterns("[organization]/[module]/[module]-[revision].[ext]") )
  </code></pre>
  
  <p>the "[module]" keyword is predefined to be the (artifact id)_(scala version) and the "[artifact]" keyword is just "ivy", leaving me back at square one.</p>