Plugin Documentation

Goals available for this plugin:

Goal Description
play2:closure-compile Compile JavaScript assets
play2:coffee-compile Compile Coffee Script assets
play2:dist Package Play! framework and Play! application as one zip achive (standalone distribution).
play2:dist-exploded Create exploded Play! framework and Play! application (standalone distribution).
play2:ebean-enhance Enhence Ebean entity classes
play2:enhance Enhance Java classes
play2:help Display help information on play2-maven-plugin.
Call mvn play2:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
play2:less-compile Compile Less assets
play2:routes-compile Compile routes
play2:run Run Play! server in development mode (sbt run equivalent).
play2:start Start Play! server in production mode (sbt start equivalent).
play2:stop Stop Play! server started in production mode (sbt stop equivalent).
play2:template-compile Compile Scala templates

System Requirements

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

Maven 3.1.0
JDK 1.6
Memory No minimum requirement.
Disk Space No 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>com.google.code.play2-maven-plugin</groupId>
          <artifactId>play2-maven-plugin</artifactId>
          <version>1.0.0-rc2</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.google.code.play2-maven-plugin</groupId>
        <artifactId>play2-maven-plugin</artifactId>
        <version>1.0.0-rc2</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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