Full name:
net.alchim31.maven:scala-maven-plugin:4.9.2:run
Description:
Run a Scala class using the Scala runtime
Attributes:
test
.test-compile
.Name | Type | Since | Description |
---|---|---|---|
<displayCmd> |
boolean |
- |
Display the command line called ? (property 'maven.scala.displayCmd' replaced by 'displayCmd') Default: false User Property: displayCmd |
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. User Property: addArgs |
<addJavacArgs> |
String |
- |
Alternative method for specifying javac arguments (when using incremental compiler). Can be used from command line with -DaddJavacArgs=arg1|arg2|arg3|... rather than in pom.xml. User Property: addJavacArgs |
<addScalacArgs> |
String |
- |
Additional parameter to use to call the main class. Use this parameter only from command line ("-DaddScalacArgs=arg1|arg2|arg3|..."), not from pom.xml. To define compiler arguments in pom.xml see the "args" parameter. User Property: addScalacArgs |
<args> |
String[] |
- |
compiler additional arguments |
<checkMultipleScalaVersions> |
boolean |
- |
Check if every dependencies use the same version of scala-library or scala.compat.version. Default: true User Property: maven.scala.checkConsistency |
<compilerPlugins> |
BasicArtifact[] |
- |
Compiler plugin dependencies to use when compiling. ex:
<compilerPlugins> <compilerPlugin> <groupId>my.scala.plugin</groupId> <artifactId>amazingPlugin</artifactId> <version>1.0-SNAPSHOT</version> </compilerPlugin> </compilerPlugins> |
<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> |
<encoding> |
String |
- |
The -encoding argument for the Java compiler. (when using incremental compiler). Default: UTF-8 User Property: project.build.sourceEncoding |
<failOnMultipleScalaVersions> |
boolean |
- |
Determines if a detection of multiple scala versions in the dependencies will cause the build to fail. Default: false |
<forceUseArgFile> |
boolean |
- |
Force the use of an external ArgFile to run any forked process. Default: false |
<fork> |
boolean |
- |
Forks the execution of scalac into a separate process. Default: true |
<javacArgs> |
String[] |
- |
Arguments for javac (when using incremental compiler). User Property: javacArgs |
<javacGenerateDebugSymbols> |
boolean |
- |
Whether to instruct javac to generate debug symbols (when using incremental compiler) See also: ://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#debug Default: true User Property: javacGenerateDebugSymbols |
<jvmArgs> |
String[] |
- |
Jvm Arguments. |
<launcher> |
String |
- |
The class to use when launching a scala program User Property: launcher |
<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. User Property: mainClass |
<pluginArtifacts> |
List<Artifact> |
- |
List of artifacts to run plugin Default: ${plugin.artifacts} |
<release> |
String |
- |
The --release argument for the Java compiler (when using incremental compiler), supported since Java9. User Property: maven.compiler.release |
<scalaClassName> |
String |
- |
override the className (FQN) of the scala tool User Property: maven.scala.className |
<scalaCompatVersion> |
String |
- |
Scala 's version to use to check binary compatibility (like suffix in artifactId of dependency). If it is defined then it is used to checkMultipleScalaVersions User Property: scala.compat.version |
<scalaHome> |
String |
- |
Path to Scala installation to use instead of the artifact (define as dependencies). User Property: scala.home |
<scalaOrganization> |
String |
- |
Organization/group ID of the Scala used in the project. Default value is 'org.scala-lang'. This is an advanced setting used for clones of the Scala Language. It should be disregarded in standard use cases. Default: org.scala-lang User Property: scala.organization |
<scalaVersion> |
String |
- |
Scala 's version to use. (property 'maven.scala.version' replaced by 'scala.version') User Property: scala.version |
<source> |
String |
- |
The -source argument for the Java compiler (when using incremental compiler). User Property: maven.compiler.source |
<target> |
String |
- |
The -target argument for the Java compiler (when using incremental compiler). User Property: maven.compiler.target |
<useCanonicalPath> |
boolean |
- |
Should use CanonicalPath to normalize path (true => getCanonicalPath, false => getAbsolutePath) See also: https://github.com/davidB/scala-maven-plugin/issues/50 Default: true User Property: maven.scala.useCanonicalPath |
java.lang.String
No
addArgs
java.lang.String
No
addJavacArgs
java.lang.String
No
addScalacArgs
java.lang.String[]
No
boolean
No
maven.scala.checkConsistency
true
<compilerPlugins> <compilerPlugin> <groupId>my.scala.plugin</groupId> <artifactId>amazingPlugin</artifactId> <version>1.0-SNAPSHOT</version> </compilerPlugin> </compilerPlugins>
scala_maven.BasicArtifact[]
No
<dependencies> <dependency> <groupId>org.scala-tools</groupId> <artifactId>scala-compiler-addon</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies>
scala_maven.BasicArtifact[]
No
boolean
Yes
displayCmd
false
java.lang.String
No
project.build.sourceEncoding
UTF-8
boolean
No
false
boolean
No
false
boolean
No
true
java.lang.String[]
No
javacArgs
boolean
No
javacGenerateDebugSymbols
true
java.lang.String[]
No
java.lang.String
No
launcher
<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>
scala_maven.Launcher[]
No
Higher priority to launcher parameter) Using this parameter only from command line (-DmainClass=...), not from pom.xml.
java.lang.String
No
mainClass
java.util.List<org.apache.maven.artifact.Artifact>
No
${plugin.artifacts}
java.lang.String
No
maven.compiler.release
java.lang.String
No
maven.scala.className
java.lang.String
No
scala.compat.version
java.lang.String
No
scala.home
java.lang.String
No
scala.organization
org.scala-lang
java.lang.String
No
scala.version
java.lang.String
No
maven.compiler.source
java.lang.String
No
maven.compiler.target
boolean
No
maven.scala.useCanonicalPath
true