I use Maven 3 to create a new Scala project. As far as I understand, the way to create a new project with Maven is by:
mvn archetype:generate
Maybe I'm missing out something, but I couldn't find even one option that offers the simplest Scala project (like the one received by lein new app ...
for Clojure, for example). Any help here?
You should be able to use
mvn archetype:generate
. You can choose, e.g.,org.scala-tools.archetypes:scala-archetype-simple
. You need to put in the number number next to the archetype name in the output of yourmvn archetype:generate
command because the numbering can change over time. There are also other options likeeu.stratosphere:quickstart-scala
as documented in this article.They may be somewhat outdated, though. I personally prefer writing my
pom.xml
files manually. For reference, here is a minimal pom file for use with Scala 2.11.6 and Scalatest 2.2.5: