scala:console

Full name:

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

Description:

Run the Scala console with all the classes of the projects (dependencies and builded)

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 compile prior to executing itself.

Required Parameters

Name Type Since Description
displayCmd boolean - Display the command line called ? Default value is: false.
mainConsole String - The console to run. Default value is: scala.tools.nsc.MainGenericRunner.
scalaClassName String - className (FQN) of the scala tool to provide as Default value is: scala.tools.nsc.Main.
useRuntimeClasspath boolean - Add the runtime classpath, to the console's classpath ? Default value is: true.
useTestClasspath boolean - Add the test classpath (include classes from test directory), to the console's classpath ? Default value is: true.

Optional Parameters

Name Type Since Description
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>
javaRebelPath File - Path of the javaRebel jar. If this option is set then the console run with javarebel enabled.
jvmArgs String[] - Jvm Arguments.
scalaVersion String - Scala 's version to use

Parameter Details

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

javaRebelPath:

Path of the javaRebel jar. If this option is set then the console run with javarebel enabled.
  • Type: java.io.File
  • Required: No
  • Expression: ${javarebel.jar.path}

jvmArgs:

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

mainConsole:

The console to run.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${mainConsole}
  • Default: scala.tools.nsc.MainGenericRunner

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}

useRuntimeClasspath:

Add the runtime classpath, to the console's classpath ?
  • Type: boolean
  • Required: Yes
  • Expression: ${maven.scala.console.useRuntimeClasspath}
  • Default: true

useTestClasspath:

Add the test classpath (include classes from test directory), to the console's classpath ?
  • Type: boolean
  • Required: Yes
  • Expression: ${maven.scala.console.useTestClasspath}
  • Default: true