Set up toolchains for Java 7
<jctoolsVersion>1.2.1</jctoolsVersion>
<mockitoVersion>2.2.7</mockitoVersion>
<argLine>-Xms256m -Xmx1024m</argLine>
+ <javaTargetVersion>1.7</javaTargetVersion>
</properties>
<pluginRepositories>
<pluginRepository>
</plugins>
</build>
</profile>
+ <profile>
+ <id>useJava7</id>
+ <activation>
+ <property>
+ <name>useJava7</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-toolchains-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>toolchain</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <toolchains>
+ <jdk>
+ <version>1.7</version>
+ </jdk>
+ </toolchains>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>java8-doclint-disabled</id>
<activation>
