Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

GoalDescription
play2:cleanClean the project.
play2:compileCompile the Play application
play2:copy-dependenciesCopy project dependencies to the lib folder.
play2:debugLaunch the Play application in debug mode (play debug run)
play2:helpDisplay help information on play2-maven-plugin.
Call
  mvn play2:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.
play2:install-playDownload and install a Play! distribution.
play2:packagePackage the Play application. The application is packaged as a Jar file. It is also possible to create the distribution package (zip).
play2:package-warPackages the Play application as War.
play2:runLaunch the Play application
play2:testRun the test of the Play application. The tests are run using play test

System Requirements

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

Maven[3.0.3,)
JDK1.5
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>de.akquinet.innovation.play2</groupId>
          <artifactId>play2-maven-plugin</artifactId>
          <version>1.2.2-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>de.akquinet.innovation.play2</groupId>
        <artifactId>play2-maven-plugin</artifactId>
        <version>1.2.2-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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