In this post, we will create a Maven project using Apache NetBeans IDE. Just like other IDE’s NetBeans rolls out with bundled Maven build tool that is used to manage projects.
Steps to create Maven Project
Steps to create a Java project are:
Launch NetBeans IDE.
Click on File >> New Project.
In the New Project wizard, choose Java with Maven and select Java Application.
( You can pick any build tools like Maven, Gradle, Ant etc.). The above option would allow you to create a simple Java SE application using Maven.
Click on the Next> button.
In the Name and Location screen of the wizard, fill the details of the project.
In the Project Name field, give the project name for example: SampleApplication.
Fill the other details of the project like GroupId, version, Package etc.
Click on the Next > button.
Once you click on the Finish button, the project would be created.
The following components would be created in the project.
Project Files with pom.xml file.
To check the bundled Maven with the IDE,
Tools >> Options >> Java >> Maven Home