Quantcast
Channel: archetype – Shaun Abram
Viewing all articles
Browse latest Browse all 3

Creating a Maven multi module project

$
0
0

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 \
-DarchetypeVersion=RELEASE
-DgroupId=com.shaunabram

(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 \
-DarchetypeVersion=RELEASE
-DgroupId=com.shaunabram

Taken from http://stackoverflow.com/questions/6328778/how-to-create-an-empty-multi-module-maven-project


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images