The first step towards building a multimodule project is setting up a parent POM. To do this, follow the ensuing steps:
Navigate to File | New and click on Maven Project. Alternatively, navigate to File | New and click on Other.... In the Select a wizard screen, search for maven via the search box, select Maven Project, and click on the Next button, as shown in the following screenshot:
TheNew Maven Project wizard appears; make sure that you tick the checkbox Create a simple project (skip archetype selection), as shown in the following screenshot, and click on Next:
The New Maven project configuration wizard appears; fill in the details as shown in the screenshot and click on Finish:
Make sure that you choose the packaging as POM from the dropdown:
Field
Value
Group Id
com.packt.mvneclipse
Artifact Id
Distance-main
Version
0.0.1-SNAPSHOT
Packaging
pom
The corresponding project will get created, and the resulting screen would look as follows: