Maven 2.x Compiler Plugin

class Foo is public, should be declared in a file named Foo.java