Payara Micro tools in VS Code
Using the Payara Tools VS Code extension, you can integrate Payara Micro within the VS Code IDE to create new Payara Micro Maven applications, start, stop and deploy applications to Payara Micro.
The extension also allows you to use the Hot Deploy and AutoDeploy features for a better developer experience.
Open the command pallet using
Ctrl + Shift + P.
Search Generate a Payara Micro project and select the available option:
versionto setup the project
Select the Payara Micro version and the destination folder, where the project will be generated:
VS Code creates the new project from the Payara Micro Maven archetype. You may add the generated project to the current workspace or open in the new window:
To run the Payara Micro application from the VS Code IDE, go to the explorer sidebar or Payara activity bar, expand Payara Micro Instances, right-click on the listed Payara Micro instance and select Start.
After starting the Micro instance, you can view the server logs in the OUTPUT window:
To redeploy the application, right-click on the listed Payara Micro instance and select Reload.
Hot Deploy and Auto Deploy can be enabled in Visual Studio Code IDE from the Deployment Settings of Payara Micro: