Creating Maven 3 Multi Module Projects From Command Line 📎
- Execute:
mvn archetype:generate
- Search for:
A_CHANGING_NUMBER: remote -> pom-root (Root project archetype for creating multi module projects)
- 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 :-)