Enabling launchers and warnings with scala-maven-plugin
December 19th, 2008
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.
Sorry, comments are closed for this article.