Plugin Documentation

Goals available for this plugin:

GoalReport?Description
scala:add-sourceNoAdd more source directories to the POM.
scala:ccNoCompile the main and test scala source directory in continuous (infinite loop). !! This is an util goal for commandline usage only (Do not use or call it in a pom) !!!
scala:cctestNoCompile the main and test scala source directory then run unit test cases in continuous (infinite loop). This is an util goal for commandline usage only (Do not use or call it in a pom) !!!
scala:compileNoCompiles a directory of Scala source. Corresponds roughly to the compile goal of the maven-compiler-plugin
scala:consoleNoRun the Scala console with all the classes of the projects (dependencies and builded)
scala:cs-compileNoRequest compile to ScalaCS (no more, doesn't create project, check if exist, request compile of dependencies,...)
scala:cs-compile-allNoRequest compile to ScalaCS (no more, doesn't create project, check if exist, request compile of dependencies,...)
scala:cs-compile-singleNoRequest compile to ScalaCS (no more, doesn't create project, check if exist,...), but only the current project
scala:cs-initNoRegister the current project into running ScalaCS. If there is no running ScalaCS then install (if needed) and start it.
scala:cs-removeNoRequest compile to ScalaCS (no more, doesn't create project, check if exist, request compile of dependencies,...)
scala:cs-stopNoRequest compile to ScalaCS (no more, doesn't create project, check if exist,...)
scala:docYesProduces Scala API documentation.
scala:helpNoDisplay the Scala Compiler help
scala:runNoRun a Scala class using the Scala runtime
scala:scriptNoRun a scala script.
scala:testCompileNoCompile Scala test source into test-classes. Corresponds roughly to testCompile in maven-compiler-plugin

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven2.2.1
JDK1.1
MemoryNo minimum requirement.
Disk SpaceNo minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.scala-tools</groupId>
          <artifactId>maven-scala-plugin</artifactId>
          <version>2.14.2-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.scala-tools</groupId>
        <artifactId>maven-scala-plugin</artifactId>
        <version>2.14.2-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
  <!-- To use the report goals in your POM or parent POM -->
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.scala-tools</groupId>
        <artifactId>maven-scala-plugin</artifactId>
        <version>2.14.2-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </reporting>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"