title: SORM: How can I use Sorm in Scala 2.11.6
body: <p>How can I use Sorm in Scala 2.11.6, 
  in compile I am getting the following errors </p>
  
  <pre><code>[error] Modules were resolved with conflicting cross-version suffixes in ...
  [error] org.scala-lang.modules:scala-xml _2.11, _2.12.0-M1
  [error] org.scala-lang.modules:scala-parser-combinators _2.11, _2.12.0-M1
  </code></pre>
  
  <p>in my build.sbt I am using...</p>
  
  <pre><code>name := "api-psi"
  
  version := "1.0-SNAPSHOT"
  
  lazy val root = (project in file(".")).enablePlugins(PlayScala)
  
  scalaVersion := "2.11.6"
  
  libraryDependencies ++= Seq(
    "com.h2database" % "h2" % "1.4.177",
    "org.sorm-framework" % "sorm" % "0.3.18",
    "org.webjars" % "bootstrap" % "3.3.5",
    specs2 % Test
  )
  
  resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
  
  routesGenerator := InjectedRoutesGenerator
  </code></pre>
  
  <p>I am trying this example: <a href="https://www.youtube.com/watch?v=eNCerkVyQdcI" rel="nofollow">https://www.youtube.com/watch?v=eNCerkVyQdcI</a> , but at no time he imported sorm...</p>
  
  <p><strong>Folks, I managed to solve...</strong></p>
  
  <p>To fix the inconsistency you should to clear your ivy cache:</p>
  
  <pre><code> ~/.ivy2/cache
  </code></pre>
  
  <p>However you also want to fix the version of scala-compiler use, and you want it to match your configured scalaVersion:</p>
  
  <pre><code>dependencyOverrides += "org.scala-lang" % "scala-compiler" % scalaVersion.value
  </code></pre>
  
  <p>Now on my SBT</p>
  
  <pre><code>name := """api-my-psi"""
  
  version := "1.0-SNAPSHOT"
  
  lazy val root = (project in file(".")).enablePlugins(PlayScala)
  
  scalaVersion := "2.11.6"
  
  libraryDependencies ++= Seq(
    jdbc,
    cache,
    ws,
    specs2 % Test,
    "org.sorm-framework" % "sorm" % "0.3.18",
    "org.webjars" % "webjars-play_2.11" % "2.4.0-1",
    "org.webjars" % "bootstrap" % "3.3.5"
  )
  
  dependencyOverrides += "org.scala-lang" % "scala-compiler" % scalaVersion.value
  
  resolvers += "scalaz-bintray" at "http://dl.bintray.com/scalaz/releases"
  
  routesGenerator := InjectedRoutesGenerator
  </code></pre>