Payara Micro Apache NetBeans IDE Support

Apache Netbeans has Payara Micro support built into the IDE, so there is no need to install a plugin to integrate and control Payara Micro from Netbeans.

Creating new Payara Micro Application

  • Select File → New Project from the main menu.

On the Choose Project panel, select Maven from Categories, select Payara Micro Application from Projects, and click Next.

Select Payara Micro Application

On the Name and Location panel, enter MicroApp as the project name, set the Project Location, set the GAV details, and then click Next.

Enter Application name

Select a Payara Micro version then click Finish.

Select Payara Micro version

Now run the application. This will start a Payara Micro instance and deploy the application.

Application running

Override default maven goals

Default maven goals executed by micro application can be customized via Project Actions setting. To override the default goals, open project Properties → Actions → Select action → update Execute Goals.

Convert existing Maven Web Application to Payara Micro Application

  • Choose File → Open Project from the main menu to open the existing Maven Web Application project in NetBeans IDE.

  • Choose File → New File from the main menu.

  • On the Choose File Type panel, select Payara from Categories, select Payara Micro Maven Plugin from File Types, and click Next.

  • Select Payara Micro version. Click Finish.

Hot Deploy and Auto Deploy Settings

To enable the Auto Deploy features for Payara Micro on the Apache NetBeans IDE, you must enable the Compile on Save and Deploy on Save features from the Project Properties.

Compile on Save can be found in the Build→Compile submenu of the project properties:

Auto Deploy 1

Deploy on Save can be found in the Run submenu of the project properties:

Auto Deploy 2

To enable the Hot Deploy feature for Payara Micro on the Apache NetBeans IDE, you must enable the Hot Deploy checkbox which can be found in the Payara Micro submenu of the project properties:

Hot Deploy Micro