How to build your maven project.

FirstMavenProject
1, create project:
mvn archetype:create -DgroupId=com.karl.learn -DartifactId=FirstMavenProject -DpackageName=com.karl.learn -Dversion=1.0
2, create eclipse project:
mvn eclipse:eclipse
3, import your project into eclipse
4, if you want to use a third-part package, but you don't know how to write the dependencies,
   you could enter : 'maven respository package-name' in google, and you will find the dependencies's groupid and artifactid and version.
 
原文地址:https://www.cnblogs.com/zhonghan/p/2556537.html