Pom java version and main fix