2015-05-03 8 views
5

Also habe ich ein Maven Scala Projekt in IntelliJ gemacht.Intellij kompiliert kein scala Projekt

Ich benutzte die Scala-Simple-Archetype.

Und ich dies jetzt bekommen:

Error:scala: Error: org.jetbrains.jps.incremental.scala.remote.ServerException 
 
Error compiling sbt component 'compiler-interface-2.7.0-final-52.0' 
 
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:145) 
 
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$2.apply(AnalyzingCompiler.scala:142) 
 
\t at sbt.IO$.withTemporaryDirectory(IO.scala:285) 
 
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:142) 
 
\t at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:139) 
 
\t at sbt.IO$.withTemporaryDirectory(IO.scala:285) 
 
\t at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:139) 
 
\t at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:33) 
 
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$.org$jetbrains$jps$incremental$scala$local$CompilerFactoryImpl$$getOrCompileInterfaceJar(CompilerFactoryImpl.scala:87) 
 
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$$anonfun$getScalac$1.apply(CompilerFactoryImpl.scala:44) 
 
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$$anonfun$getScalac$1.apply(CompilerFactoryImpl.scala:43) 
 
\t at scala.Option.map(Option.scala:145) 
 
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.getScalac(CompilerFactoryImpl.scala:43) 
 
\t at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.createCompiler(CompilerFactoryImpl.scala:22) 
 
\t at org.jetbrains.jps.incremental.scala.local.CachingFactory$$anonfun$createCompiler$1.apply(CachingFactory.scala:24) 
 
\t at org.jetbrains.jps.incremental.scala.local.CachingFactory$$anonfun$createCompiler$1.apply(CachingFactory.scala:24) 
 
\t at org.jetbrains.jps.incremental.scala.local.Cache$$anonfun$getOrUpdate$2.apply(Cache.scala:20) 
 
\t at scala.Option.getOrElse(Option.scala:120) 
 
\t at org.jetbrains.jps.incremental.scala.local.Cache.getOrUpdate(Cache.scala:19) 
 
\t at org.jetbrains.jps.incremental.scala.local.CachingFactory.createCompiler(CachingFactory.scala:23) 
 
\t at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:22) 
 
\t at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:62) 
 
\t at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:20) 
 
\t at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala) 
 
\t at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
 
\t at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
 
\t at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
 
\t at java.lang.reflect.Method.invoke(Method.java:483) 
 
\t at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)

Könnte mir jemand sagen, was ich falsch gemacht habe?

Ich bin relativ neu zu scala und maven also bitte bitte mit mir.

Antwort

3

Ok Ich habe es gerade herausgefunden. Dank diesen Beitrag: Sbt doesn't compile...

Sie haben die Version von scala in Ihrer pom.xml-Datei von $ ändern {scala.version} zu 2.11.4 (oder was auch immer die neueste Version ist)

+0

Ja, es sind zwei Alternativen. Mit Java 7 und Scala 2.7. * Oder alternativ mit Java 8 und Scala 2.11. * –