Added a method to check maven.