-
Open the project you want to add a module to, and
select File | New Module.
As a result, the New Module wizard opens. (There are also other ways of accessing this wizard, see Opening the New Module wizard.)
- On the first page of the wizard, in the left-hand pane, select Maven Module.
- In the right-hand part of the page, specify the module name, and the location of the content root folder and the module .iml file. Click Next.
- On the Maven page of the wizard, specify the aggregator and parent Maven projects, if any, and Maven project coordinates. Note that if a parent Maven project is specified, the new Maven project can inherit its GroupId and ArtifactId.
- If you want to create a Maven project based on one of the Maven Archetypes, select the Create from archetype check box, and select the desired archetype from the list.
- Click Finish.
