IntelliJ IDEA 2017.1 Help

Creating a Maven Module

Maven module enables managing Maven projects, executing Maven goals, downloading artifacts, etc.

When a Maven project is created, its contents is shown in the Maven Projects tool window, and the powerful editing assistance is available for the pom.xml files.

To create a Maven module from scratch

  1. 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.)

  2. On the first page of the wizard, in the left-hand pane, select Maven.
  3. In the right-hand part of the page:
    • Specify the SDK (JDK) to be used.

      If the necessary JDK is already defined in IntelliJ IDEA, select it from the list. Otherwise, click New and select the installation folder of the desired JDK.

    • If you want to create a Maven module based on one of the Maven Archetypes, select the Create from archetype check box, and select the desired archetype from the list.

    Click Next.

  4. 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.

    Click Next.

  5. Specify the name and location settings for your module. For more information, see Module Name and Location.

    Click Finish.

See Also


External Links:

Last modified: 18 July 2017