RE: Liferay and IntelliJ IDEA

Steven Birr, modified 10 Years ago. New Member Posts: 18 Join Date: 1/22/14 Recent Posts
Hello,

are there any experiences with setting up Liferay in IntelliJ IDEA?
Until now, we used Liferay V. 6.2 and Eclipse 4.4.0. We would like to use IDEA 14.1.3 for development. That means, we would like to use, like in Eclipse:
  • Starting the Tomcat
  • Deploying Portlets/Themes
  • Hot Deployment of JSP changes

Can someone help me? I just found this old wiki page: https://www.liferay.com/de/community/wiki/-/wiki/Main/Running+Liferay+from+IntelliJ

Kind regards,
Steven
thumbnail
David H Nebinger, modified 10 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
I've been using Intellij for a few months now, but honestly haven't used any of these facilities (nor did I ever use them in Eclipse for that matter).

I use a separate Tomcat instance (often instances) started on the command line just like the production system runs.

I use regular hot deploy by dropping war into Liferay's deploy directory so I know how the deployment will react in production.

No hot deploy of JSP changes because it won't work in production.

Heck, I often still use the maven command line so I am familiar with the output that will be generated by jenkins.

Yes, I know it's old school.

That aside, hopefully you have a good reason to switch to Intellij. The supporting Liferay editors and tooling built into Eclipse via the Liferay IDE provide a lot of value, so you should have some justification to equal or exceed that lost value moving away from the Liferay IDE.
thumbnail
Jack Bakker, modified 10 Years ago. Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
Steven Birr:

are there any experiences with setting up Liferay in IntelliJ IDEA?
Until now, we used Liferay V. 6.2 and Eclipse 4.4.0. We would like to use IDEA 14.1.3 for development. That means, we would like to use, like in Eclipse:
  • Starting the Tomcat
  • Deploying Portlets/Themes
  • Hot Deployment of JSP changes

Can someone help me? I just found this old wiki page: https://www.liferay.com/de/community/wiki/-/wiki/Main/Running+Liferay+from+IntelliJ

Hey Steven, you might like Krzysztof Gołębiowski's dev.life presentation: "Liferay + IntelliJ IDEA - Setup, Tips & Tricks"

https://www.liferay.com/community/dev.life/previous
https://www.youtube.com/watch?v=-YrkUOJeqMk

I use IntelliJ IDEA, with maven, and JRebel
thumbnail
David H Nebinger, modified 10 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Great reminder, Jack, I keep forgetting about Krzysztof's presentation (even though it was a good one).
thumbnail
Jack Bakker, modified 10 Years ago. Liferay Master Posts: 978 Join Date: 1/3/10 Recent Posts
I also use Eclipse IDE and Studio, but for newer projects have been using IntelliJ IDEA and loving it

given my mouse-like fingers need ritual habits to more quickly navigate the maze: I lean to maven via command line and git via command line which works on any platform and independent of the Eclipse/IntelliJ question
thumbnail
Brendan Johan Lee, modified 10 Years ago. Junior Member Posts: 38 Join Date: 2/29/12 Recent Posts
The instructions for running tomcat and also running tomcat for debuging on that page are still valid and work fine.

Deploying is very easy when using maven, just configure the correct maven tasks in intellij. (Works similar for ant, but Liferay+ant+intellij=:angryemoticon