adam bien's blog

Creating Maven 3 Multi Module Projects From Command Line 📎

  1. Execute: mvn archetype:generate
  2. Search for: A_CHANGING_NUMBER: remote -> pom-root (Root project archetype for creating multi module projects)
  3. Use number from #2 as input for the wizzard when maven asks you: "Choose a number: […]:")

If you are working a lot in command line with Maven, take a look at JBoss Forge

But: if you are starting a Java EE 6 project with a multi-module maven module, you should rethink your decision. Start with a single WAR :-)