I'm facing a build error when I try to run a Maven build. I created a simple Java project which includes lambda functions, due to this I'm getting
[ERROR] (...) lambda expressions are not supported in -source 1.5
[ERROR] (use -source 8 or higher to enable lambda expressions)
My Java version is 1.8.0_172, my Maven version is 3.6.0.