Creating Maven projects

About this task

Important: Applicable to Liberty, WebSphere® Application Server traditional
You can create simple projects or projects that are based on archetypes.

Creating a simple Maven project

Procedure

  1. Select File > New > Project > Maven > Maven Project. Click Next.
  2. Select Create a simple project (skip archetype selection). Click Next.
  3. Enter or select values for the following fields:
    • Group Id
    • Artifact Id
    • Version
    • Packaging
    • Name (optional)
    • Description (optional)
    Note: The values for Group Id, Artifact Id, and Version are known as Maven coordinates. For more information about Maven coordinates, see Maven Coordinates.
  4. Enter parent project values. If the project is a child project of another Maven project, in the Parent Project section, enter the Group Id, Artifact Id, and Version of the parent project.
  5. Click Finish. The project is created.

Creating a Maven project that is based on archetypes

About this task

For more information about archetypes, see Introduction to archetypes.

Procedure

  1. Select File > New > Project > Maven > Maven Project. Click Next. The Maven project wizard opens.
  2. One the first page of the wizard, click Next to proceed to the Select an Archetype page.
  3. Select the archetype that you want to use. You can select a Catalog or enter a Filter to reduce the number of archetypes that are displayed. This example in this image shows a search of all catalogs, a filter for webapp, and a selection of the archetype with artifact ID webapp-javaee6.
    Select an archetype
    Click Next.
  4. Enter or select values for the following fields:
    • Group Id
    • Artifact Id
    • Version
    • Package
    Note: The values for Group Id, Artifact Id, and Version are known as Maven coordinates. For more information about Maven coordinates, see Maven Coordinates.
  5. Click Finish. The project is created.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: projects.html