After changing the java version to 1.8 in pom.xml I get still the following error message at running mvn install:
lambda expressions are not supported in -source 1.6
(use -source 8 or higher to enable lambda expressions)
My maven-compiler-plugin.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArguments>
<encoding>${project.build.sourceEncoding}</encoding>
</compilerArguments>
</configuration>
</plugin>