Show TOC

Maven Project StructureLocate this document in the navigation structure

When you create a Maven project, the directory structure that is created includes the project object model (POM) file.

In this sample project, the <groupId> is set to This directory structure is created automatically for a new project:

Maven Project Directory Structure

Two Java files, and, are created in the example folders, under main and test, respectively. The POM file, which contains the initial project configuration, is created in the customState folder. You can use this POM file as a starting point for custom-state development.
<project xmlns=""

You can open or import a newly created Maven project into your IDE. Eclipse and NetBeans both support Maven. The image below shows the sample project structure in Eclipse.

Maven Project in Eclipse

Once you are familiar with the structure and the content of POM files, you can create them manually. You can also create a new project in any IDE that supports Maven.