score:0

scripts/ is a directory on the same level as your pom.xml. That is...

/myproject
  pom.xml
  /scripts
    hello.scala

So from same directory as pom.xml, try...

>mkdir scripts
>echo 'println("hello")' >> scripts/hello.scala
>mvn scala:script -DscriptFile=bob/hello.scala

Related Query

More Query from same tag