Fixed (use -source 5 or higher to enable for-each loops) error when running maven on command line

But a test is breaking