Let us now see how we can run the Maven goals in NetBeans.
To run Maven goals using the NetBeans IDE, implement the following steps:
Unlike Eclipse, NetBeans has a tighter Maven integration. This means each of the menu options (Build, Clean and Build, Clean, and so on) call the corresponding Maven command to do so.
For instance, clicking on the Clean option will result in the following:
As can be seen, it runs the mvn clean
command.
Similarly, the Clean and Build option is equivalent to the mvn clean install
command.
These are simple use cases. NetBeans provides additional configuration options to override default Maven behavior.
18.226.181.57