Introduction

In this article we will learn about the Maven tool in the NetBeans IDE. A maven is someone or thing with dazzling skills in any field. Maven is a tool used for creating and maintaining a Java based project. It was started as an attempt to clarify the build process. There was a need for a standard way to create the projects, that consist of:

Goals of Maven

The types of Maven Projects that can be used in the NetBeans IDE

Any kind of Maven project can be opened in the NetBeans IDE. Normal code completion is performed on the Java code in the Maven project.

Creating a Maven Project in the NetBeans IDE

Creating a Maven project is done as usual as in the following:

19.1.jpg

19.2.jpg

19.3.jpg

After the project is created the project window shows the folders, it's appeast as in the following screenshot:


19.4.jpg

Dependency Graph

In the project window, right-click on the project node and from the popup menu select "Show Dependency Graph". After clicking on it the IDE starts the process of creating the dependancy graph.

The following is a screenshot for the dependency graph:

19.5.jpg

The project dependencies can be studied using this dependency graph. This graphical view can identify and solve many conflicts.

Features

The features of the Maven Tool are:

  1. JAR
  2. WAR
  1. get new project
  2. module gets started in 1 second