Josh
Josh

Reputation: 1356

Create Maven child project

I know I can create a maven project with mvn archetype:generate which will generate a pom.xml file for me.

How do I create a maven project that is going to be a child project? I want the child pom.xml that is created to have the necessary elements that will link it the parent project.

I could of course manually enter in the necessary elements into the child pom.xml, but I was wondering if there is a way to do it with Maven.

Upvotes: 0

Views: 1633

Answers (1)

chresse
chresse

Reputation: 5805

If you do it with eclipse: Simply create a mavenmodule (your child project) and name the parentproject in the Parent Project section.

Note: your parent project should be in the eclipseworkspace too.

for further information have a look at: http://skillshared.blogspot.de/2012/11/how-to-create-multi-module-project-with.html

Upvotes: 1

Related Questions