JBoss.orgCommunity Documentation

Chapter 2. Creating a Maven Project

To create a new Maven Project, from your workspace navigate to FileNewOther and from the wizard selection screen select MavenMaven Project.

Wizard selection screen with the Maven Project wizard selected.

Figure 2.1. Selecting the Maven Project wizard


The first screen of the wizard will ask you if you wish to create a simple project (selecting this will skip the ability to select an archetype), to select a location for the project and if any projects should be added to the working set.

First screen of the wizard - basic settings.

Figure 2.2. Maven project location and basic settings


You can also select Advanced options concerning existing workspace projects and the naming convention to use.

First screen of the wizard - advanced settings.

Figure 2.3. Maven project location and advanced settings


The following screen is the Archetype selection screen, and will only appear when you have not selected to create a simple project on the previous screen.

Select an archetype based on the purpose of the project you are creating.

Archetype selection - quickstart archetype selected as an example.

Figure 2.4. Archetype selection


The final screen of the wizard is where you will set the Group Id, Artifact Id and project Version. The Package name will be created based on the Group Id and Artifact Id values.

You can also add specific properties associated with the chosen archetype, to the project.

Naming of the final project and archetype properties selection.

Figure 2.5. Final project naming


Clicking Finish will bring you back to the workbench and your Maven project will appear in the Project Explorer.

The project is now available from the Project Explorer.

Figure 2.6. Project in the Project Explorer