Installing a Server in IntelliJ IDEA

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 Portal bundle specified in your workspace’s 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.

  3. Click the Add New Configuration button (icon-intellij-add-config.png) 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 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 Portal instance:

  • Start (icon-intellij-start-server.png): Starts the server.
  • Stop (icon-intellij-stop-server.png): Stops the server.
  • Debug (icon-intellij-debug-server.png): 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!

0 (0 Votes)
Creating Projects with IntelliJ IDEA Previous