Enabling launchers and warnings with scala-maven-plugin
If your using the scala-maven plugin and need to enable some of the cool extra functionality then check out these pom.xml snippets:
To enable launchers which let you do
mvn scala:run
use an XML snippet like:
<configuration>
<scalaversion>${scala.version}</scalaversion>
<args>
<arg>-target:jvm-1.5</arg>
<arg>-unchecked</arg>
</args>
<launchers>
<launcher>
<id>main-launcher</id>
<mainclass>com.myproj.TheMainClass</mainclass>
<args>
<arg>/some/intial/argument</arg>
</args>
</launcher>
</launchers>
</configuration>
Also note the “-unchecked” compiler argument… this will then prompt you if you have any deprection warnings and suggest how you could go about fixing them.