How to generate a maven project from archetype
Instead of manually creating the directory structure needed for an archetype, simply use:
mvn archetype:generate -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=ear-javaee7 -DarchetypeVersion=1.0