There are three ways of selecting this provider.
Add play2.version project property with value starting with 2.5..
This is simplest and recommended way because this property can be used to declare versions of Play! Framework dependencies.
<project> ... <properties> ... <play2.version>2.5.18</play2.version> </properties> ... </project>
Add playVersion parameter with value starting with 2.5. to plugin configuration section.
<project> ... <build> ... <plugins> ... <plugin> <groupId>com.google.code.play2-maven-plugin</groupId> <artifactId>play2-maven-plugin</artifactId> <version>1.0.0-rc2</version> <extensions>true</extensions> <configuration> ... <playVersion>2.5.18</playVersion> </configuration> </plugin> ... </plugins> </build> ... </project>
Add provider artifact as plugin dependency.
Warning: Only one provider can be added as plugin’s dependency at a time. It will be selected regardless of the value of playVersion plugin configuration parameter or play2.version project property.
<project> ... <build> ... <plugins> ... <plugin> <groupId>com.google.code.play2-maven-plugin</groupId> <artifactId>play2-maven-plugin</artifactId> <version>1.0.0-rc2</version> <extensions>true</extensions> <dependencies> <dependency> <groupId>com.google.code.play2-maven-plugin</groupId> <artifactId>play2-provider-play25</artifactId> <version>1.0.0-rc2</version> </dependency> </dependencies> </plugin> ... </plugins> </build> ... </project>