scala:run

Full name:

org.scala-tools:maven-scala-plugin:2.9.1:run

Description:

Run a Scala class using the Scala runtime

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Invokes the execution of the lifecycle phase test-compile prior to executing itself.

Required Parameters

Name Type Since Description
displayCmd boolean - Display the command line called ? Default value is: false.
scalaClassName String - className (FQN) of the scala tool to provide as Default value is: scala.tools.nsc.Main.

Optional Parameters

Name Type Since Description
addArgs String - Additional parameter to use to call the main class Using this parameter only from command line ("-DaddArgs=arg1|arg2|arg3|..."), not from pom.xml.
args String[] - compiler additionnals arguments
dependencies BasicArtifact[] - Additional dependencies/jar to add to classpath to run "scalaClassName" (scope and optional field not supported) ex : <dependencies> <dependency> <groupId>org.scala-tools</groupId> <artifactId>scala-compiler-addon</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies>
jvmArgs String[] - Jvm Arguments.
launcher String - (no description)
launchers Launcher[] - A list of launcher definition (to avoid rewriting long command line or share way to call an application) launchers could be define by :
<launchers>
<launcher>
<id>myLauncher</id>
<mainClass>my.project.Main</mainClass>
<args>
<arg>arg1</arg>
</args>
<jvmArgs>
<jvmArg>-Xmx64m</jvmArg>
</jvmArgs>
</launcher>
<launcher>
<id>myLauncher2</id>
...
<><>
</launcher>
</launchers>
mainClass String - Main class to call, the call use the jvmArgs and args define in the pom.xml, and the addArgs define in the command line if define. Higher priority to launcher parameter) Using this parameter only from command line (-DmainClass=...), not from pom.xml.
scalaVersion String - Scala 's version to use

Parameter Details

addArgs:

Additional parameter to use to call the main class Using this parameter only from command line ("-DaddArgs=arg1|arg2|arg3|..."), not from pom.xml.
  • Type: java.lang.String
  • Required: No
  • Expression: ${addArgs}

args:

compiler additionnals arguments
  • Type: java.lang.String[]
  • Required: No

dependencies:

Additional dependencies/jar to add to classpath to run "scalaClassName" (scope and optional field not supported) ex : <dependencies> <dependency> <groupId>org.scala-tools</groupId> <artifactId>scala-compiler-addon</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies>
  • Type: org.scala_tools.maven.BasicArtifact[]
  • Required: No

displayCmd:

Display the command line called ?
  • Type: boolean
  • Required: Yes
  • Expression: ${maven.scala.displayCmd}
  • Default: false

jvmArgs:

Jvm Arguments.
  • Type: java.lang.String[]
  • Required: No

launcher:

(no description)
  • Type: java.lang.String
  • Required: No
  • Expression: ${launcher}

launchers:

A list of launcher definition (to avoid rewriting long command line or share way to call an application) launchers could be define by :
<launchers>
<launcher>
<id>myLauncher</id>
<mainClass>my.project.Main</mainClass>
<args>
<arg>arg1</arg>
</args>
<jvmArgs>
<jvmArg>-Xmx64m</jvmArg>
</jvmArgs>
</launcher>
<launcher>
<id>myLauncher2</id>
...
<><>
</launcher>
</launchers>
  • Type: org.scala_tools.maven.Launcher[]
  • Required: No

mainClass:

Main class to call, the call use the jvmArgs and args define in the pom.xml, and the addArgs define in the command line if define. Higher priority to launcher parameter) Using this parameter only from command line (-DmainClass=...), not from pom.xml.
  • Type: java.lang.String
  • Required: No
  • Expression: ${mainClass}

scalaClassName:

className (FQN) of the scala tool to provide as
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${maven.scala.className}
  • Default: scala.tools.nsc.Main

scalaVersion:

Scala 's version to use
  • Type: java.lang.String
  • Required: No
  • Expression: ${maven.scala.version}