Payara Server Maven Plugin Tools in Intellij IDEA
Using the Payara Tools and Payara Server Maven Plugin, you can integrate Payara Server within the IntelliJ IDEA to streamline development workflows. This integration allows you to:
-
Start and stop the Payara Server from within the IDE
-
Define the Java runtime to be used by Payara Server
-
Deploy an application from within the IDE
-
Configure pre-launch Maven tasks for automatic build and deployment
Managing Payara Server Using Maven Plugin from Intellij IDEA
-
To manage Payara Server using the Maven plugin from IntelliJ IDEA, first create the new Payara Server configuration by selecting the Edit Configuration option:

-
In the Run/Debug Configurations dialog, click +, select the Payara Server:

-
In the newly created configuration:
-
Set the goal to
devto deploy the application in development mode using the Payara Server Maven Plugin orstartto start the server without dev mode. -
Specify the JDK or JRE path that Payara Server should use.
-
-
Optionally, configure the application’s context path or deployment format (e.g., exploded).

-
To add the Payara Server to the configuration, click the Payara Server Settings > Payara Home and set it to the Payara Server’s installation path you would like to add to the IDE.

-
Configure environment variables and system properties required by the server and Maven plugin.

-
Define additional Maven properties used by the Payara Server Maven Plugin during the build and deployment process.

-
Specify Maven tasks to run before launching the server.

-
Click the Run or Debug button from top-right panel to start Payara Server, or start Payara Server in debug mode, which would allow you to debug deployed applications

-
You can see the server log in the application build console window.

-
After application deployed to the Payara Server, IntelliJ starts a web browser and opens the application context root in the web browser.