Installing a Server in IntelliJ

Installing a Liferay server in IntelliJ is easy. In just a few steps, you’ll have your server up and running.

Follow these steps to install your server:

  1. Right-click your Liferay Workspace and select LiferayInitBundle.

    This downloads the Liferay DXP bundle specified in your workspace’s gradle.properties file. You can change the default bundle by updating the liferay.workspace.bundle.url property. For example, this is required to update the default bundle version and/or type (e.g., Wildfly). The downloaded bundle is stored in the workspace’s bundles folder.

  2. Navigate to the top right Configurations dropdown menu and select Edit Configurations. From here, you can configure your server’s run and debug configurations.

    Figure 1: You have several options to choose from the server dropdown menu.

    Figure 1: You have several options to choose from the server dropdown menu.

  3. Click the Add New Configuration button (Add Config) and select Liferay Server.

  4. Give your server a better name and modify any other configurations, if necessary. Then select OK .

    Figure 2: Set your Liferay servers configurations in the Run/Debug Configurations menu.

    Figure 2: Set your Liferay server's configurations in the Run/Debug Configurations menu.

Your server is now available in IntelliJ! Make sure to select it in the Configurations dropdown before executing the configuration buttons (below).

For reference, here’s how the IntelliJ configuration buttons work with your Liferay DXP instance:

  • Start (Start Server): Starts the server.
  • Stop (Stop Server): Stops the server.
  • Debug (Debug Server): Starts the server in debug mode. For more information on debugging in IntelliJ, see the IntelliJ Debugging article.

Now you’re ready to use your server in IntelliJ!

« Installing the Liferay IntelliJ PluginUpdating Liferay IntelliJ Plugin »
Was this article helpful?
0 out of 0 found this helpful