title: How to change sbt java options for ivy.home in build.sbt?
body: <p>I want to change the <code>sbt.ivy.home</code> java option in my <em>build.sbt</em> file. I tried:</p>
  
  <pre><code>javaOptions := Seq("-Dsbt.ivy.home=c:/ivy2/")
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>It work well on the command line:</p>
  
  <pre><code>sbt update -Dsbt.ivy.home=c:/ivy/
  </code></pre>