1. maven으로 프로젝트 생성하기
mvn archetype:generate -B -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DgroupId=com.company -DartifactId=project -Dversion=1.0 -Dpackage=1.5
* archetype
사용자가 template 으로부터 maven project를 생성할 수 있게 해주는 plugin
* Goal
archetype:generate : creates a Maven project from an archetype: asks the user to choose an archetype from the archetype catalog, and retrieves it from the remote repository. Once retrieved, it is processed to create a working Maven project.
archetype:create-from-project : creates an archetype from an existing project.
archetype:crawl : search a repository for archetypes and updates a catalog.
*Archetype List
http://maven.apache.org/archetype/maven-archetype-bundles/
maven-archetype-archetype : An archetype which contains a sample archetype.
maven-archetype-j2ee-simple : An archetype which contains a simplifed sample J2EE application.
maven-archetype-plugin : An archetype which contains a sample Maven plugin.
maven-archetype-quickstart : An archetype which contains a sample Maven project.
maven-archetype-webapp : An archetype which contains a sample Maven Webapp project.
Eclipse 에서 보면 maven project 생성할 때 다음과 같은 단계 이다.
pom.xml