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: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:

  1. <project>
  2. ...
  3. <build>
  4. <!-- To define the plugin version in your parent POM -->
  5. <pluginManagement>
  6. <plugins>
  7. <plugin>
  8. <groupId>de.akquinet.innovation.play2</groupId>
  9. <artifactId>play2-maven-plugin</artifactId>
  10. <version>1.2.1</version>
  11. </plugin>
  12. ...
  13. </plugins>
  14. </pluginManagement>
  15. <!-- To use the plugin goals in your POM or parent POM -->
  16. <plugins>
  17. <plugin>
  18. <groupId>de.akquinet.innovation.play2</groupId>
  19. <artifactId>play2-maven-plugin</artifactId>
  20. <version>1.2.1</version>
  21. </plugin>
  22. ...
  23. </plugins>
  24. </build>
  25. ...
  26. </project>

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