Skip to content

Import project from eclipse

António Gonçalves edited this page Feb 14, 2022 · 1 revision

Learn how to import into a eclipse workspace the IoT Catalogue Plugin and how to run a development version of a Liferay server which uses the plugin

Requirements

  • Eclipse IDE for Java Developers (tested on version: 2021-03 (4.19.0))
  • OracleJDK11
  • Liferay IDE for Eclipse
  • Liferay CE Portal version 7.3.x (tested on 7.3.6 ga7)

Steps

Clone the plugin from the GitHub repository

  • Open the Git Repositories view by going Window -> Show View -> Other -> Git -> Git Repositories

Select Git Repositories view Select Git Repositories view

Clone Git Repository Clone Git Repository Clone Git Repository

Import cloned project into workspace

  • Import as a "Liferay Workspace Project", select File -> Import -> Liferay -> Liferay Workspace Project

Import as a "Liferay Workspace Project" Import as a "Liferay Workspace Project"

  • Select the folder containing the repository, select Finish and then open perspective to open Liferay Workspace perspective

Import as a "Liferay Workspace Project" Import as a "Liferay Workspace Project"

Run a liferay server instance using the plugin

  • Right click on Servers Tab (bottom left) and select New -> Server

Add Liferay Server

  • Click on browser and choose the liferay ce portal bundle folder

  • Click on start button to start the server, wait until the server is started Add Liferay Server Add Liferay Server

  • Drag "iot-catalogue-elements-api" and "iot-catalogue-elements-service" to the server instance Drag modules

  • Drag "iot-catalogue-elements-list" to the server instance Drag modules

Check if the plugin is installed

  • Open the browser and go to the running instance (usually http://127.0.0.1:8080)
  • Configure the instance and login with a Admin user
  • Open the side menu and select Content & Data -> IoT Catalogue Elements List
  • You should be able to see the plugin Admin Portlet

Plugin admin portlet

Clone this wiki locally