title: Using ammonite repl for Scala scripting
body: <p>when having a script file (file.sc) with the following content:  </p>
  
  <pre><code>import ammonite._, Resolvers._
  
  val mock_client_repo = Resolver.Http("Unisay at bintray","http://dl.bintray.com/unisay/maven",MavenPattern,true)
  
  interp.resolvers() = interp.resolvers() :+ mock_client_repo
  
  import $ivy.`com.github.unisay::mockserver-client-scala:0.2.0`
  
  import org.mockserver.client.server.MockServerClient
  import com.github.unisay.mockserver.scala.DSL.Statuses._
  import com.github.unisay.mockserver.scala.DSL._
  
  val port = 3000
  val host = "127.0.0.1"
  implicit val server = new MockServerClient(host,port)
  
  forAnyRequest respond Ok
  </code></pre>
  
  <p>which I'm trying to execute as follows: <em>amm files.sc</em><br>
  I get the following error:  </p>
  
  <blockquote>
    <p>Compiling file.sc :: loading settings :: url =
    jar:file:/usr/local/bin/amm!/org/apache/ivy/core/settings/ivysettings.xml
    :: resolving dependencies ::
    com.github.unisay#mockserver-client-scala_2.11-caller;working     confs:
    [default]</p>
    
    <p>:: problems summary :: :::: WARNINGS      module not found:
    com.github.unisay#mockserver-client-scala_2.11;0.2.0</p>
    
    <p>==== local: tried</p>
    
    <p>/home/eli/.ivy2/local/com.github.unisay/mockserver-client-scala_2.11/0.2.0/ivys/ivy.xml</p>
  
  <pre><code>-- artifact
  </code></pre>
    
    <p>com.github.unisay#mockserver-client-scala_2.11;0.2.0!mockserver-client-scala_2.11.jar:</p>
    
    <p>/home/eli/.ivy2/local/com.github.unisay/mockserver-client-scala_2.11/0.2.0/jars/mockserver-client-scala_2.11.jar</p>
    
    <p>==== m2: tried</p>
    
    <p>/home/eli/.m2/repository/com/github/unisay/mockserver-client-scala_2.11/0.2.0/ivy-0.2.0.xml</p>
  
  <pre><code>-- artifact
  </code></pre>
    
    <p>com.github.unisay#mockserver-client-scala_2.11;0.2.0!mockserver-client-scala_2.11.jar:</p>
    
    <p>/home/eli/.m2/repository/com/github/unisay/mockserver-client-scala_2.11/0.2.0/mockserver-client-scala_2.11-0.2.0.jar</p>
    
    <p>==== central: tried</p>
    
    <p><a href="http://repo1.maven.org/maven2/com/github/unisay/mockserver-client-scala_2.11/0.2.0/mockserver-client-scala_2.11-0.2.0.pom" rel="nofollow">http://repo1.maven.org/maven2/com/github/unisay/mockserver-client-scala_2.11/0.2.0/mockserver-client-scala_2.11-0.2.0.pom</a></p>
  
  <pre><code>-- artifact
  </code></pre>
    
    <p>com.github.unisay#mockserver-client-scala_2.11;0.2.0!mockserver-client-scala_2.11.jar:</p>
    
    <p><a href="http://repo1.maven.org/maven2/com/github/unisay/mockserver-client-scala_2.11/0.2.0/mockserver-client-scala_2.11-0.2.0.jar" rel="nofollow">http://repo1.maven.org/maven2/com/github/unisay/mockserver-client-scala_2.11/0.2.0/mockserver-client-scala_2.11-0.2.0.jar</a></p>
    
    <p>:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS Exception in
    thread "main" ammonite.runtime.tools.IvyThing$IvyResolutionException:
    failed to resolve ivy dependencies unresolved dependency:
    com.github.unisay#mockserver-client-scala_2.11;0.2.0: not found  </p>
  </blockquote>
  
  <p>But if running the same code copy pasted from within the repl, everything works fine.  </p>
  
  <p>What am I doing wrong?</p>