Fórum

Maven-based portlets fail to deploy if Liferay Portal 7 server is restarted

John Edward Platts, modificado 7 Anos atrás.

Maven-based portlets fail to deploy if Liferay Portal 7 server is restarted

New Member Postagens: 9 Data de Entrada: 08/08/09 Postagens Recentes
If the Liferay Portal 7 server is restarted inside Liferay IDE 3.1.0.201702090100-m2, Maven-based portlet modules that target Liferay Portal 7 fail to deploy after the Liferay Portal 7 server is restarted. If I shut down the Liferay Portal 7 server, then close out of Liferay IDE, then relaunch Liferay IDE, then start the Liferay Portal 7 server after relaunching Liferay IDE, then the Maven-based portlet modules do get properly deployed to the Liferay Portal 7 server.

Here are the steps to reproducing the issue:
  • Inside Liferay IDE, create a Maven-based portlet module project that targets Liferay Portal 7
  • Add a Liferay Portal 7 instance to Liferay IDE
  • Start the Liferay Portal 7 instance inside of Liferay IDE
  • Deploy the Maven-based portlet module project by adding it to the Liferay Portal 7 instance inside of Liferay IDE
  • The portlets deployed in the previous step should work correctly
  • Restart Liferay Portal 7 server without closing out of Liferay IDE by right-clicking on the Liferay Portal 7 instance and then choosing Restart
  • The portlets deployed in step #4 will fail to deploy properly
  • Stop the Liferay Portal 7 server, and then restart Liferay IDE
  • After Liferay IDE is restarted, start the Liferay Portal 7 server again
  • The portlets deployed in step #4 should now deploy properly and work correctly again
thumbnail
Yanan Yuan, modificado 7 Anos atrás.

RE: Maven-based portlets fail to deploy if Liferay Portal 7 server is resta

Junior Member Postagens: 89 Data de Entrada: 08/10/11 Postagens Recentes
Hello John,

Thanks for bringing this problem to our attention. This is an existing ticket which we will fix it soon in the next IDE release. Please watch the following ticket for more details:

https://issues.liferay.com/browse/IDE-2390

There are two easier ways and you may consider them as a workaround instead of relaunching Liferay IDE and starting portal 7 server:
1. Redeploy a module
2. Make any change in the module project so that it can be automatically redeployed.

Regards,
Ashley