There are some demos show you how to  build java project with maven.如何用Maven编译java项目实例