Payara Server tools in IntelliJ
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](intellij-plugin/Payara Server Documentation/create-configuration.png)
-
In the Run/Debug Configurations dialog, click +, expand the Payara Server node, and select Local:
![Create Local Server configuration](intellij-plugin/Payara Server Documentation/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](intellij-plugin/Payara Server Documentation/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](intellij-plugin/Payara Server Documentation/add-artifact.png)
-
Select the sample-micro-app:war artifact for deployment to the Payara Server:
![Select WAR artifact](intellij-plugin/Payara Server Documentation/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](intellij-plugin/Payara Server Documentation/fix-debugger-warning.png)
-
Now save the configuration:
![Save configuration](intellij-plugin/Payara Server Documentation/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](intellij-plugin/Payara Server Documentation/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](intellij-plugin/Payara Server Documentation/home-page.png)
-
You may see the log in the Services > Payara Log window:
![Payara Server log](intellij-plugin/Payara Server Documentation/server-log.png)
![Debug breakpoint](intellij-plugin/Payara Server Documentation/breakpoint.png)