Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add new maven module into existing maven project

Tags:

maven-2

I mean is there a possibility to run some maven command to add new module to existing project , or manually create folder and needed changes to pom.xmls ?

like image 809
breedish Avatar asked Aug 17 '11 15:08

breedish


People also ask

How do I create a sub module in Maven?

From your workspace navigate to File → New → Other and from the wizard selection screen select Maven → Maven Module. Type a name for the module in the Module Name field. Click the Browse button beside the Parent Project field. This will launch a project selection box.

What is the difference between Maven module and Maven project?

a maven module is like a maven "sub-project". a maven project includes 1 or more modules. more info here. Typically, a module generates a single artifact (jar, war, zip, etc), although this is not always true.


1 Answers

To add to @khmarbaise's answer, If you are using Idea, right click on your project's name on (Project view perspective) and New > Module. Select maven and follow the wizard.

like image 57
Nipun Thathsara Avatar answered Sep 20 '22 12:09

Nipun Thathsara