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