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 ?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With