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:
- Create project from maven archetype with artifactId: liferay-portlet-archetype
- Add properties to pom.xml: liferay.version, liferay.auto.deploy.dir
- Start Liferay
- mvn package liferay:deploy -> this will create a WAR file and deploy it to liferay auto deploy directory.
- Each time you want to change something, you must do mvn package liferay:deploy
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?