Visit Azul.com Support

Payara Server Maven Plugin Tools in Intellij IDEA

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

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

  1. To manage Payara Server using the Maven plugin from IntelliJ IDEA, first create the new Payara Server configuration by selecting the Edit Configuration option:

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

  3. In the newly created configuration:

    1. Set the goal to dev to deploy the application in development mode using the Payara Server Maven Plugin or start to start the server without dev mode.

    2. Specify the JDK or JRE path that Payara Server should use.

  4. Optionally, configure the application’s context path or deployment format (e.g., exploded).

  5. 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.

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

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

  8. Specify Maven tasks to run before launching the server.

  9. 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

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

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