Why is Maven generating this error: “…is not supported in -source 1.5”?

The default source/target levels are 1.5, which doesn’t support Java 1.7 syntax, obviously.

As to why it would “suddenly” change, something changed in your m2e or project configuration.

Leave a Comment