This tutorial explains what happens when you run the archetype:generate command in Maven and how that affects the pom.xml. The archetype:generate command command generates a new project from an archetype, or updated the actual project if using a partial archetype. If the project is fully generated, it is generated in a directory corresponding to its artifactId. If the project is updated with a partial archetype, it is done in the current directory.
Video Producer: http://javabrains.koushik.org