I am currently working on a project using Scala and Play Framework 2. I want to compile some Scala code during runtime and get the result from the interpreter. I found some
I have fixed this problem by specifying scala-maven-plugin
scala-maven-plugin
I was using Scala 2.11.x and if you dont specify any version in scala-maven-plugin by default it goes with latest version which 4.4.0
Scala 2.11.x
4.4.0
Then i changed my scala-maven-plugin to 3.2.2 and it works fine.