Fórum

liferay hook into maven project

Michal Ocho, modificado 11 Anos atrás.

liferay hook into maven project

New Member Postagens: 23 Data de Entrada: 11/07/12 Postagens Recentes
Hello i have maven project but i must use liferay hook(to implement event login listener) . My question is how can i put into maven project a liferay hook ? i try to install liferay ide in eclipse but i have eclipse 3.5 and can't install it, i can't change eclipse couse 2 many plugins is in my present eclipse it's hard to reinstall them on new eclipse, update also didn't work. So how i can manual add liferay hook into maven project ?
Michal Ocho, modificado 11 Anos atrás.

RE: liferay hook into maven project

New Member Postagens: 23 Data de Entrada: 11/07/12 Postagens Recentes
To be more specific my question is how can i use into maven project a liferay hook ?i have existing maven project and now i want create liferay hook but don't know how. Can anyone explain me How i can put some hooks into my maven project from basics. And i mean existing maven project in maven 2.2.1 and liferay 6.1
Michal Ocho, modificado 11 Anos atrás.

RE: liferay hook into maven project

New Member Postagens: 23 Data de Entrada: 11/07/12 Postagens Recentes
On this page http://www.integratingstuff.com/2011/06/05/adding-a-hook-to-liferay/ everything is cool, but how hook knows where is a reference class if his location is [liferay sdk]\hooks\ for example d:\plugins\hooks\my hook\ and maven project is for example c:\workspace\mymvnapp\ ?(maybe start working after deploy but still how he knows where is reference class) and how can i create a hook with folder model looking just like a maven project, couse the only way of creating a hooks that i now is by using a create.bat and there is folder model like this D:\plugins\hooks\my-hook-hook\build.xml || docroot\WEB-INF\liferay-hook.xml || liferay-plugin-package. Can anyone explain this thanks in advance emoticon
thumbnail
Tejas Kanani, modificado 11 Anos atrás.

RE: liferay hook into maven project (Resposta)

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
Hi Michal,

Check this link, which has step by step details on how you can create hook type project using Maven in Liferay.
It will automatically create maven based hook project structure for you.

Regards,
Tejas
Michal Ocho, modificado 11 Anos atrás.

RE: liferay hook into maven project

New Member Postagens: 23 Data de Entrada: 11/07/12 Postagens Recentes
Okey this site is good but version of this maven liferaj sdk is 5.2.3. is it will be good for liferay 6.1 and maven 2.2.1 ?emoticon
thumbnail
Tejas Kanani, modificado 11 Anos atrás.

RE: liferay hook into maven project (Resposta)

Liferay Master Postagens: 654 Data de Entrada: 06/01/09 Postagens Recentes
I guess it should not be the problem. As in one of the steps you need to select Liferay version as well.
For more detailed steps, Visit below link.
Create Liferay Hook using Maven
I've put down all the steps in detail.

Hope this helps.

Regards,
Tejas
Michal Ocho, modificado 11 Anos atrás.

RE: liferay hook into maven project

New Member Postagens: 23 Data de Entrada: 11/07/12 Postagens Recentes
Thank you. it is very helpful.