Deploy the Maven Web Application to Payara Server
-
To deploy the Maven application to Payara Server, first create the new Payara Server configuration by selecting the Edit Configuration option:
![Create Configuration](../../../_images/intellij-plugin/payara-server/create-configuration.png)
-
In the Run/Debug Configurations dialog, click +, expand the Payara Server node, and select Local:
![Create Local Server configuration](../../../_images/intellij-plugin/payara-server/create-local-server-configuration.png)
-
To add the Payara Server to the configuration, click the Configure… button and browse the Payara Server installation path:
![Browse the Payara Server path](../../../_images/intellij-plugin/payara-server/browse-payara-server.png)
-
Fix the artifacts warnings that appear at the bottom of the run configuration settings dialog, by clicking the Fix button:
![Add artifact](../../../_images/intellij-plugin/payara-server/add-artifact.png)
-
Select the sample-micro-app:war artifact for deployment to the Payara Server:
![Select WAR artifact](../../../_images/intellij-plugin/payara-server/select-war-artifact.png)
-
Now fix the debugger related warning by pressing the Fix button, which updates the debugger settings in the domains.xml of the selected Payara Server’s domain:
![Fix debugger warning](../../../_images/intellij-plugin/payara-server/fix-debugger-warning.png)
-
Now save the configuration:
![Save configuration](../../../_images/intellij-plugin/payara-server/save-configuration.png)
-
Click the Run or Debug button from top-right panel that starts the Payara Server and deploys the artifact to the server:
![Start the Payara Server](../../../_images/intellij-plugin/payara-server/run-server.png)
-
After application deployed to the Payara Server, IntelliJ starts a web browser and opens the application home page URL in the web browser:
![Home Page](../../../_images/intellij-plugin/payara-server/home-page.png)
-
You may see the log in the Services > Payara Log window:
![Payara Server log](../../../_images/intellij-plugin/payara-server/server-log.png)
![Debug breakpoint](../../../_images/intellij-plugin/payara-server/breakpoint.png)