-
interactive Mode (select scala-archetype-simple and response to questions) :
mvn archetype:generate
-
non interactive / batch (change info in the last line) :
mvn archetype:generate -B \ -DarchetypeGroupId=net.alchim31.maven -DarchetypeArtifactId=scala-archetype-simple -DarchetypeVersion=1.7 \ -DgroupId=com.company -DartifactId=project -Dversion=0.1-SNAPSHOT -Dpackage=com.company
-
example compile/run (run 'mvn scala:help' for full command list) :
mvn scala:compile mvn scala:run -DmainClass=com.company.App
- upgrade version of scala 2.12.6, scalatest 3.0.5, specs2 4.2.0, junit 4.12
- upgrade build process (ci, plugins,...)
- change license for Unlicense to CC0 (always Public Domain)
- upgrade version of scala, librairies, plugins
- upgrade of scala 2.10.0
- upgrade version of Specs(2), ScalaTest, Surefire, scala-maven-plugin
- move to sonatype for hosting
- change groupId to net.alchim31.maven
- upgrade version of scala to 2.9.2, version of JUnit, Specs(2) and ScalaTest
- upgrade to scala 2.8.0 (as default)
- upgrade version of Specs and ScalaTest
- provide sample of Specs and ScalaTest runnable from maven and eclipse (at least)
Have fun!