Error: lambda expressions are not supported in -source 1.5 running with java 8

Viewed 1354

I am trying to compile a maven project, that is a Java 8 (JDK 1.8) and when I run the following command:

mvn clean compile

The compile throw the following error

Compilation failure [ERROR] /C:/App.java:[16,35] lambda expressions are not supported in -source 1.5 [ERROR] (use -source 8 or higher to enable lambda expressions)

How is it possible? In the command line mvn is set up with JAVA 8 compiler

1 Answers
Related