RSS Feed Subscribe to RSS Feed


Creating a Maven multi module project

There is no easy way, or simple archetype, to create a maven multi module project. The approach below is the best way I’ve found so far.

1. Create the top-level root:

mvn archetype:generate \
-DarchetypeGroupId=org.codehaus.mojo.archetypes \
-DarchetypeArtifactId=pom-root \

(replacing com.shaunabram with the groupId of your choice)

2. cd into your newly created root dir.

3. For each module: mvn archetype:generate \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-quickstart \

Taken from

Tags: , ,

Leave a Reply