Sunday, February 10, 2019

Installing Liferay IDE and Code Upgrade/Migration tool in Eclipse Photon

Hi, in this post we are going to discuss the installation of Liferay-IDE in Eclipse - Photon

To have this done we need to have the softwares required... the following table provides the tools/softwares, use the link(s) to download them..

SoftwareDownload Link
Java - 1.8Java Software Development Kit - 8 Download  
Eclipse Photon(4.8)eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz

To Install Java, there are plenty of resource available online find one for installing, Please make sure you set the environment variables appropriately, what I meant was setting JAVA_HOME and PATH

Use the following command to check Java-1.8 is available
> which java
the above command would give the path of the java executable.

To check the version of the same, use the following command
> java -version
Proceed with installing eclipse-photon

Just extract the .tar.gz file into your preferred location

If you like to change the default workspace location and config location of your
eclipse refer the post below...

Now start eclipse....

The objective of this post starts form here...

After you start eclipse, go to "Help" menu and click on "Install New Software", you would see a dialog appearing... Click on Add to add the repository for Liferay IDE installation as follows...

the URL for downloading the software component can be taken from the following location

https://community.liferay.com/project/-/asset_publisher/TyF2HQPLV1b5/content/ide-installation-instructions

you would find two URLs under the section "Using an Update Site", the first location gives you the stable version of the component and the second is the milestone

I am going to use the URL which stands against "Stable",you can use the
second one too but I prefer the stable one.

Copy the url and add the repository as given in the Image below and click on add to add the repository.


Soon after you add repository, eclipse would try to download the component and the dialog appears like the one below...


Try expanding the component Liferay IDE.. if you would, you could find five sub-components namely...

1. Buildship: Eclipse Plug-ins for Gradle
2. Liferay IDE
3. Liferay IDE AlloyUI
4. Liferay IDE Enterprise
5. Liferay IDE Maven Support

you can install all the components by selecting the parent component or selected one depending on your need. I want all to be installed hence selecting all and click next


now eclipse tries to download and install all the components. If everything goes fine at your end at the first go then it's fine else eclipse would display an error message something like this


Do not be panic, the main purpose of writing this post is to tackle this error... simply cancel the operation and proceed as follows...
Now you see the main window of eclipse... select "Help" menu and click "check for updates", now you would have something like shown in the image below...


select the component by clicking on "Select All" and proceed forward clicking Next



Click Next


Accept the license agreement and click "Finish" after installing the component eclipse would prompt you to restart it, restart by clicking the "Restart Now" Button.


Out of the components listed we have installed just one, we are going to install the rest now...you might have eclipse window on screen now if not start it.

Now we have to repeat the steps from step one i.e Select "Help" menu and click on "Install New Software"

from the Work with drop down, select the liferay-ide-repository, now what appears on the dialogs almost the same as image-2 of this post


try expanding the component Liferay IDE, doing so you would have something like shown in the image below...


As you can see we have only four components now to be installed excluding the first we installed separately, now try to installing one by one... you can also go with selecting all but I have not tried it, if anything goes wrong in the bulk install try installing one after the other..

I am sure you will have all the components installed and your eclipse would be packed with Liferay IDE. This update also comes with Liferay code migration tool.

To confirm, we can select the liferay prespective from the Window menu as below

Window > Perspective > Open Perspective > Other

Select the Liferay Workspace from Open Perspective dialog

Clicking the Open button would make eclipse to appear as Liferay IDE.

The image below would explain how to have the code migration tool along with Liferay IDE, from the window menu navigate as mentioned below to have the liferay code upgrade/migration tool

Window > Show View > Other

Clicking on Open, results the window to appear like the one as below...Well this concludes the installation of Liferay IDE in Eclipse-Photon.



Hope you liked it, Thanks.

No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...