Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Rahul Saraswat
Service Builder with Maven
9 de enero de 2013 7:15
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

Hi Friends,

I am new to Liferay. I need to use service builder with maven. I searched internet to get something usefull but I get the tutorials which use ant. So, can any one please share some tutorial for Service builder using maven.

I am using Liferay-portal 6.1.1.

Thanks & Regards
Rahul Saraswat
David H Nebinger
RE: Service Builder with Maven
9 de enero de 2013 10:21
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11262

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Maybe you didn't get the message but maven support in liferay is still very new (and untested, I believe).

You're going to suffer from some serious headaches banging your head up against the wall trying to use maven w/ SB.

Your best bet is to stick with ant...
Mika Koivisto
RE: Service Builder with Maven
9 de enero de 2013 14:26
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1513

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

If you are new to Liferay and maven you should stick with the ant based plugins sdk for now.
Rahul Saraswat
RE: Service Builder with Maven
10 de enero de 2013 1:59
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

I guess there would be some document for it because we just need to build the project to generate the helper classes for DB. I tried building the project using maven but it asks for some dependencies to be resolved in the pom.xml. And surprisingly one of the dependencies is the jar file of the project itself. I tried inserting the jar manually as well but unfortunately it doesn't work and shows the same message. Can someone please help!!

Thanks & Regards
Rahul Saraswat
India
Rahul Saraswat
RE: Service Builder with Maven
10 de enero de 2013 7:26
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

I was just going through internet and I found something interesting i.e. Maven SDK. Can we use it for the same?
If yes can anyone please share a tutorial for it with service builder.
Thanks in advance.

Thanks & Regards
Rahul Saraswat
Ajeet Singh
RE: Service Builder with Maven
10 de enero de 2013 8:04
Respuesta

Ajeet Singh

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 27 de marzo de 2012

Mensajes recientes

Maven SDK have not been made smart enough yet in respect of service builder. Hence i will suggest that to create and all the portlets or service builder is to use ant only.

You can use the Maven to build and deploy the whole portal i.e. to create the war.

Regards,
Ajeet Singh
Rahul Saraswat
RE: Service Builder with Maven
16 de enero de 2013 3:48
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

Thanks a lot Ajeet. I will try to do the same. Cheers!!
David H Nebinger
RE: Service Builder with Maven
16 de enero de 2013 5:48
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11262

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Both Mika and myself said the same thing immediately after the initial posting, but you credit Ajeet for giving you the same answer? How's that work?
Rahul Saraswat
RE: Service Builder with Maven
17 de enero de 2013 1:39
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

I am sorry for that. I was stuck with some serious issues so was not able to.

Thanks & Regards
Rahul Saraswat
Rahul Saraswat
RE: Service Builder with Maven
17 de enero de 2013 1:41
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

Thanks for your help David.
Rahul Saraswat
RE: Service Builder with Maven
17 de enero de 2013 1:42
Respuesta

Rahul Saraswat

Ranking: New Member

Mensajes: 18

Fecha de incorporación: 9 de enero de 2013

Mensajes recientes

Thanks for your help Mika.
Joris Meijer
RE: Service Builder with Maven
28 de junio de 2013 7:02
Respuesta

Joris Meijer

Ranking: New Member

Mensajes: 11

Fecha de incorporación: 4 de junio de 2013

Mensajes recientes

Probably some things have been updated, but I don't experience any problems using "mvn liferay:build-service". So IMHO it's smart enough now emoticon
It correctly creates all the classes for me, and I managed to get a service running.

What I did:
- use "mvn archetype:generate" and search for the correct archetype
- choose the correct version
- configure your service.xml
- go into your archetype project
- enter "mvn liferay:build-service"
- .... and see how all classes are generated for you

For deployment tips, see http://www.liferay.com/community/wiki/-/wiki/Main/Using+Class+Loader+Proxy+classes+to+share+plugins+services
David H Nebinger
RE: Service Builder with Maven
30 de junio de 2013 5:54
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11262

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

Liferay has been doing work on the maven templates since this post went up earlier this year. I believe it's finally at a state that it can be used...
Priyanka Dhingra
RE: Service Builder with Maven
30 de junio de 2013 21:06
Respuesta

Priyanka Dhingra

Ranking: Liferay Master

Mensajes: 501

Fecha de incorporación: 19 de diciembre de 2011

Mensajes recientes

Even I had tried and its working fine(link)..except some extra folders getting created which makes a bit confusing for me, which one to work on
Joris Meijer
RE: Service Builder with Maven
1 de julio de 2013 4:01
Respuesta

Joris Meijer

Ranking: New Member

Mensajes: 11

Fecha de incorporación: 4 de junio de 2013

Mensajes recientes

You don't need to worry about all the folders that are being created. Essentially you will only modify "xxxxxLocalServiceImpl.java" (where xxx is the name of your service) which contains your business logic and custom service methods.

Don't forget to rerun mvn liferay:build-service after you added/modified signatures in xxxxxLocalServiceImpl since these changes have to propagate to the xxxLocalService
M J
RE: Service Builder with Maven
1 de julio de 2013 10:28
Respuesta

M J

Ranking: Regular Member

Mensajes: 184

Fecha de incorporación: 1 de marzo de 2013

Mensajes recientes

@Joris What version of Liferay did you use to build with Maven?

Thanks,
MJ
Alex Curtui
RE: Service Builder with Maven
29 de agosto de 2013 9:11
Respuesta

Alex Curtui

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 8 de noviembre de 2012

Mensajes recientes

Hello,

Have you tried modifying the column size?
portlet-model-hints.xml is now useless because Maven overwrites it at every service rebuild.

Thanks,
Alex
Mika Koivisto
RE: Service Builder with Maven
30 de agosto de 2013 12:28
Respuesta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 1513

Fecha de incorporación: 7 de agosto de 2006

Mensajes recientes

That bug has been fixed in the latest release.
Alex Curtui
RE: Service Builder with Maven
2 de septiembre de 2013 3:07
Respuesta

Alex Curtui

Ranking: Junior Member

Mensajes: 30

Fecha de incorporación: 8 de noviembre de 2012

Mensajes recientes

Thank you!
Alex