Creating a parent project – POM

The first step towards building a multimodule project is setting up a parent POM. To do this, follow the ensuing steps:

  1. 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:
    Creating a parent project – POM
  2. The New 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:
    Creating a parent project – POM
  3. The New Maven project configuration wizard appears; fill in the details as shown in the screenshot and click on Finish:
    Creating a parent project – POM

    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

  4. The corresponding project will get created, and the resulting screen would look as follows:
    Creating a parent project – POM

We have the parent POM in place now.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.179.220