« Indietro

New Liferay 6.1 Feature - Remote Development from Liferay IDE

Staff Blogs 14 dicembre 2011 Da Gregory Amerson Staff

I'd like to mention one of the new features in the upcoming release of Liferay 6.1, which is the remote development and deployment support from Liferay IDE.  The idea is that with this feature you can build Liferay projects in Liferay IDE like normal but instead of the Liferay server running locally it is running on a remote host.  This is accomplished through two things, 1) new remote server adapter in Liferay IDE and 2) Server manager plugin (new in 6.1) deployed to the remote Liferay server 

This feature will be officially available with the Liferay 6.1 CE release, but since it is only in beta, now is a good time to try it out and give feedback.

For those who wish to try this out here are the steps to setting it up.

1. Download the Liferay Portal 6.1 Beta4 Tomcat bundle (Only tomcat is supported in beta4,  both JBoss and Glassfish will be supported by 6.1 GA release)

2. Start Tomcat bundle on remote host (or even localhost)

3. Download the Server Manager plugin for 6.1 Beta4 (This plugin provides the API needed by Liferay IDE to administer remote plugins)

4. Deploy Server Manager plugin into remote Tomcat server

5. Install the latest stable or nightly version of Liferay IDE (links are updatesite URLs to use in Eclipse install manager)

6. Create a new server in Liferay IDE, File > New > Server > Liferay > Remote Liferay Server

7. Specify a local tomcat bundle for the runtime stub (this is needed for libraries to compile project)

8. Specify the IP address of remote tomcat server along with Omni admin username/password

Once you have done this you should see the server console log messages printed in the normal Eclipse console view.

9. Create and deploy Liferay projects as usual then publish (deploy) them to the server, see Liferay IDE getting started guide for a walkthrough of this.

Now when you modify files in your project, every 15 seconds it will publish the delta of any changes to remote server.  However, you can publish changes immediately using the "publish" action in the servers view.  If you want to change the automatic publish rate you can do that in the server configuration editor (double click server in Servers view).

For anyone who decides to try this out and want to give feedback with suggestions or problems please either open a JIRA ticket for the IDE project or enter a new topic on the IDE forums.

Good luck and Happy Holidays!

Commenti Autore Data
Nice feature! Rafał Piotrowski 15 dicembre 2011 0.20
Nice stuff Greg! All plugins types can be... Thiago Leão Moreira 15 dicembre 2011 4.15
Hi Thiago, So I didn't mention that Ext is the... Gregory Amerson 15 dicembre 2011 7.23
Nice feature! Jonas Yuan 15 dicembre 2011 7.42
It doesn't seem to support loging into the... Puj Z 15 dicembre 2011 8.48
Correct, right now it just uses basic... Gregory Amerson 15 dicembre 2011 8.53
Good to know!!Nice feature Sohui Gu 19 dicembre 2011 1.49
Greg, this is amazing. Thanks. Bijan Vakili 23 dicembre 2011 8.48
Greg. Keep up the good work. Loving it Julius Kipkoech Bett 28 dicembre 2011 11.24
Very Super ;) Question. Should I open JIRA... Fuad Efendi 26 gennaio 2012 11.33
Hello Fuad Efendi, Could you create a new... Gregory Amerson 26 gennaio 2012 16.34
Cool one.. i will love this one. :) Mahipalsinh Rana 30 gennaio 2012 4.04
I am curious whether you have plans for... Dimitri Tischenko 31 gennaio 2012 8.40
Hi Dimitri, Liferay IDE 2.0 will have maven... Gregory Amerson 31 gennaio 2012 16.33
Hi Gregory, Maybe I didn't make myself clear.... Dimitri Tischenko 15 febbraio 2012 4.36
Oh I see, thanks for explaining. No, we don't... Gregory Amerson 15 febbraio 2012 17.23
Thanks. Any ETA on the IDE 2.0 BTW? Dimitri Tischenko 13 marzo 2012 9.01
No ETA as of yet. I will try to update the... Gregory Amerson 13 marzo 2012 18.45
Hi Gregory Amerson, I've read your blog with... Partha Baral 19 marzo 2012 4.37
Hi Greg, ... Vijay Peddareddy 22 marzo 2012 10.04
Hi Partha and Vijay, Can you ensure that your... Gregory Amerson 22 marzo 2012 10.10
Hi Greg, Issue got resolved. Thanks for your... Vijay Peddareddy 23 marzo 2012 12.03
[...] Hi Prakash, thank you for your reply.... Anonimo 4 aprile 2012 6.03
Hey guys, i got a problem with my remote... lutz Bremen 27 aprile 2012 6.21
[...] Here you go:... Anonimo 6 luglio 2012 0.03
hi, can anyone tell me how do that with JBOSS... Le Minh 20 agosto 2012 3.52
While connect remote server i am getting "... Kiran Kumar Yakkala 6 settembre 2012 4.14
Hello Kiran, If you install the nightly build... Gregory Amerson 7 settembre 2012 3.29
Hi Greg, Is the support for JBoss available as... Abhed Dekavadiya 3 novembre 2012 14.20
Hey Abhed, Can you repost this question on the... Gregory Amerson 6 novembre 2012 1.41

Inviato il 15/12/11 0.20.
Nice stuff Greg!
All plugins types can be deployed remotely? Even ext?
Inviato il 15/12/11 4.15 in risposta a Rafał Piotrowski.
Hi Thiago,

So I didn't mention that Ext is the exception, it can't be deployed remotely yet.
Inviato il 15/12/11 7.23.
Inviato il 15/12/11 7.42 in risposta a Gregory Amerson.
It doesn't seem to support loging into the server by using public-private key pairs (and not normal passwords). Right?
Inviato il 15/12/11 8.48.
Correct, right now it just uses basic authentication to connect to the server-manager plugin.
Inviato il 15/12/11 8.53 in risposta a Puj Z.
Good to know!!Nice feature
Inviato il 19/12/11 1.49 in risposta a Gregory Amerson.
Greg, this is amazing. Thanks.
Inviato il 23/12/11 8.48 in risposta a Sohui Gu.
Greg. Keep up the good work. Loving it
Inviato il 28/12/11 11.24.
Very Super ;)

Question. Should I open JIRA issue? I can't see "Remote Liferay" option even in nightly builds... thanks
Inviato il 26/01/12 11.33 in risposta a Julius Kipkoech Bett.
Hello Fuad Efendi,

Could you create a new topic on the Liferay IDE Forums? I'd like to ask a few questions first before you open a JIRA issue, we may be able to figure out why you can't see the Remote Liferay option there.

http://www.liferay.com/community/forums/-/message_boards/category/4627757
Inviato il 26/01/12 16.34 in risposta a Fuad Efendi.
Cool one.. i will love this one. emoticon
Inviato il 30/01/12 4.04.
I am curious whether you have plans for integration with 3d party tools like cargo / maven? I would like to be able to use the remote deployment feature to deploy from Jenkins / maven.
Inviato il 31/01/12 8.40 in risposta a Mahipalsinh Rana.
Hi Dimitri,

Liferay IDE 2.0 will have maven support so you will be able to use any maven 3rd party plugin, like cargo, webby, etc.
Inviato il 31/01/12 16.33 in risposta a Dimitri Tischenko.
Hi Gregory,

Maybe I didn't make myself clear. What I mean is that the maven cargo plugin has various options for remote deployment servers, like tomcat or glassfish. Do you have plans to add liferay as a cargo remote deployment option?
Inviato il 15/02/12 4.36 in risposta a Gregory Amerson.
Oh I see, thanks for explaining. No, we don't have any plans for that currently.
Inviato il 15/02/12 17.23 in risposta a Dimitri Tischenko.
Thanks. Any ETA on the IDE 2.0 BTW?
Inviato il 13/03/12 9.01 in risposta a Gregory Amerson.
No ETA as of yet. I will try to update the roadmap for IDE as soon as I know more.
Inviato il 13/03/12 18.45 in risposta a Dimitri Tischenko.
Hi Gregory Amerson,

I've read your blog with the help of this I am doing the same thing in Liferay Developer Studio 1.5.2.v201203030830 with Liferay JBoss bundled (liferay-portal-jboss-6.1.10-ee-ga1-20120223174854827) but sut some how unable to get the desired result. I am getting the this type of error ---------

Liferay Portal Community Edition is only available if a valid installation of Liferay Portal Enterprise Edition version 6.1 is also configured.
So can you please help me what i am missing?As I am a newbee to liferay.
Inviato il 19/03/12 4.37 in risposta a Gregory Amerson.
Hi Greg, I'm also facing same issue mentioned by Partha Baral.
"Liferay Portal Community Edition is only available if a valid installation of Liferay Portal Enterprise Edition version 6.1 is also configured."

I have a licensed Liferay Developer Studio 1.5.2 with Liferay Tomcat bundled (liferay-portal-6.1.10-ee-ga1).

Please help me what I'm doing wrong here.

Partha Baral,

Please let me know if you are able to solve this issue.

Thanks.
Inviato il 22/03/12 10.04 in risposta a Partha Baral.
Hi Partha and Vijay,

Can you ensure that your licensed EE server is configured as a local server (liferay portal 6.1 EE) in your Studio? make sure that you have started the server once to make sure that the license manager can create a valid license. Because Developer Studio needs to check with the License Manager of the Portal EE server to verify it has valid license.
Inviato il 22/03/12 10.10 in risposta a Vijay Peddareddy.
Hi Greg,

Issue got resolved. Thanks for your help.
Inviato il 23/03/12 12.03 in risposta a Gregory Amerson.
[...] Hi Prakash, thank you for your reply. Sorry for not mentioning it, but I am talking about EE. If I understand correctly, it's enough to have one server installed with Liferay that all developers will... [...] Read More
Inviato il 04/04/12 6.03.
Hey guys, i got a problem with my remote server. It is sooooo sloooooow. What is a possible reason for this?
Inviato il 27/04/12 6.21.
[...] Here you go: http://www.liferay.com/web/gregory.amerson/blog/-/blogs/11789178 Flag Please sign in to flag this as inappropriate. Mark as an Answer [...] Read More
Inviato il 06/07/12 0.03.
hi, can anyone tell me how do that with JBOSS AS 7. Use Liferay bundled Jboss.
Inviato il 20/08/12 3.52.
While connect remote server i am getting " Could not connect to the server manager. Make sure the server manager plugin is installed on remote Liferay instance."

Can anyone tell me how install the server manager plugin into remote server.
Inviato il 06/09/12 4.14 in risposta a Le Minh.
Hello Kiran, If you install the nightly build of IDE (1.6.1) then in the new remote server wizard there is a hyperlink that will redirect you to the portal instance and automatically setup the marketplace portlet to install the correct application (remote ide connector). I hope to make a blog post about this very soon.
Inviato il 07/09/12 3.29 in risposta a Kiran Kumar Yakkala.
Hi Greg,

Is the support for JBoss available as remote server ?
I cannot see JBoss server for "Liferay bundle type" in above step-7.

I am using JBoss Developer Studio. I have installed Liferay IDE plugin from 1.6.1 update site: http://sourceforge.net/projects/lportal/files/Liferay%20IDE/1.6.1/updatesite/

I want to use "JBoss Dev Studio" with Liferay IDE plugin as IDE, standalone JBoss-AS-7.1.1 as runtime and Liferay-6.1.1 war installed on JBossAS.

Any suggestions/help?
Inviato il 03/11/12 14.20.
Hey Abhed,

Can you repost this question on the IDE forums? I'll follow up there with a full response. Thanks!
http://www.liferay.com/community/forums/-/message_boards/category/4627757­
Inviato il 06/11/12 1.41 in risposta a Abhed Dekavadiya.