Add maven to project

By | May 13, 2015
Share the joy
  •  
  •  
  •  
  •  
  •  
  •  

After create a dynanic website, we hope to automatically add jar files by maven. How to turn on the maven feature?

And go to the project directory, and run the following command:
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

It’s done!

Refer: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html