This is a Java JSP project with Maven management, and running Jetty locally.
I have a problem where I get this error when trying to run lambda in .jspf
files: Lambda expressions are allowed only at source level 1.8 or above
.
My setup:
- In project structure in Intellij IDEA I have set Project SDK and Project language to Java 8.
- Module language level is 8 - Lambdas, type annotations etc.
- Using
<maven.compiler.source>1.8</maven.compiler.source>
and<maven.compiler.target>1.8</maven.compiler.target>
- Project bytecode version is set to 1.8
- Latest version of Jetty (v9.4.31.x)
- The project is using
jetty-jspc-maven-plugin
plugin where I have setsourceVersion
andtargetVersion
to 1.8 in<configuration>
Is there anything I'm missing, or is Java 8 simply not possible with JSP / jspc