Message Boards

Developing with eclipse liferay IDE

Uwe Peters, modified 3 Years ago.

Developing with eclipse liferay IDE

New Member Posts: 22 Join Date: 11/24/20 Recent Posts

I recently joined a company that is developing with Liferay. Iam new to liferay and liferay module development. 

So far I only have experience developing Spring and Spring boot applications. I like that you can swap, change or redeploy modules while the liferay server is running.

Currently I am blown away that I have to wait so much for eclipse, gradle and republishing events while I am developing with liferay CE 7.3. 
I never had to wait this much during development with spring or spring boot projects. Are there any settings that I should take care of? 

For example:

  • Why is my eclipse republishing all the time and how can I stop it?

The Project from my company has about 60 modules in it sometimes the Liferay ide is republishing the whole project module after module.
While the ide is republishing I cant do anything else and its taking round about 15 minutes until its finished. If I click something the liferay ide is not responding anymore.

  • Why is a gralde refresh taking so long for our project? 

If I create a service builder module I have to do multiple gradle refreshes. 
If I switch to another branch of the project I have to do a whole gradle refresh and sometimes a complete republish again.

Is there any way to accelerate the build time of a module and are there any tweaks to get more performance out of the liferay tomcat server and the liferay ide?

The eclipse liferay ide that I am using is the windows version from this download: https://liferay.dev/-/ide-installation-instructions

thumbnail
Andre Kreienbring, modified 3 Years ago.

RE: Developing with eclipse liferay IDE

Regular Member Posts: 152 Join Date: 12/18/06 Recent Posts

I remember a similar question about a week ago...

I also work with eclipse (LR IDE 3.9, Windows) and have none of the described problems. Maybe it's because I don't use a bundle... My modules are never deployed automatically. I just build them and drop them in the 'Deploy Folder' manually.

There's also a setting in the Server Runtime where you can disable deployment on every change. But I remember that the other guy, who had the same problem, said it didn't help.

Uwe Peters, modified 3 Years ago.

RE: RE: Developing with eclipse liferay IDE

New Member Posts: 22 Join Date: 11/24/20 Recent Posts

Thanks for your answer,

can you provide me a link to the similar question? Are there any tips?

Do you really deploy manually? This seems to be very uncomfortable.

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Developing with eclipse liferay IDE

Liferay Legend Posts: 6396 Join Date: 9/23/08 Recent Posts

Automatic deployment only happens if you deployed through the IDE in the first place (e.g. by dragging a module from Project Explorer onto the Server)
I've seen weird deployments when something was off with regards to the computer's timezones, e.g. when ever change introduced through the IDE was made "1 hour into the future", thus everything needed to be rebuilt. That might happen on the build-tool side, or on Liferay's deployment side.