Scala REPL is great for trying different code snippets. It would be great if one could run code using libraries from Maven repositories in Scala REPL. How to add remote Maven repository to Scala REPL classpath?
You can do it, using maven-scala-plugin:
$ mvn scala:console
...
import com.some.dependency
I do everything non-trivial in SBT. In one place, the SBT build.sbt
(or .scala
, for advanced uses) you define all your dependencies, generate your IDE project files and run REPLs with all dependencies present in the class-path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With