I can easily create a Maven project for programming portlets (for example using archetype). But in order to deploy this project to Liferay, I have to run:
mvn package liferay:deploy
Even if I change just a simple JSP file, I have to redeploy the whole portlet application. Is there a way to speed up this development process?
I don't want to use Ant, because then I would have to deal with dependencies and other stuff. I would really like to use Maven to develop Liferay portlet applications.
I tried JRebel, but because of the packaging to WAR file it's magic doesn't work :(
To re-create this situation:
This is time consuming on something bigger than just hello world.
As far as I know this is supposed to be the best practice. But Liferay documentation is sparse on this subject. Is there another way?
Problem solved using combination of STS (SpringSource Tool Suite) and Liferay IDE. With this combination it's not necessary to use Liferay Maven plugin at all. Just simply add Liferay server, deploy Maven app on this server and it all works.
Using this combination with JRebel is IMHO the most effective solution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With