Fórumok
Service Builder with Maven
Rahul Saraswat, módosítva 11 év-val korábban
Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
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
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, módosítva 11 év-val korábban
RE: Service Builder with Maven
Liferay Legend Bejegyzések: 14914 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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...
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...
Rahul Saraswat, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
Thanks for your help David.
Mika Koivisto, módosítva 11 év-val korábban
RE: Service Builder with Maven
Liferay Legend Bejegyzések: 1519 Csatlakozás dátuma: 2006.08.07. Legújabb bejegyzések
If you are new to Liferay and maven you should stick with the ant based plugins sdk for now.
Rahul Saraswat, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
Thanks for your help Mika.
Rahul Saraswat, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
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
Thanks & Regards
Rahul Saraswat
India
Rahul Saraswat, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
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
If yes can anyone please share a tutorial for it with service builder.
Thanks in advance.
Thanks & Regards
Rahul Saraswat
Ajeet Singh, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 14 Csatlakozás dátuma: 2012.03.27. Legújabb bejegyzések
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
You can use the Maven to build and deploy the whole portal i.e. to create the war.
Regards,
Ajeet Singh
Rahul Saraswat, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
Thanks a lot Ajeet. I will try to do the same. Cheers!!
David H Nebinger, módosítva 11 év-val korábban
RE: Service Builder with Maven
Liferay Legend Bejegyzések: 14914 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 18 Csatlakozás dátuma: 2013.01.09. Legújabb bejegyzések
I am sorry for that. I was stuck with some serious issues so was not able to.
Thanks & Regards
Rahul Saraswat
Thanks & Regards
Rahul Saraswat
Joris Meijer, módosítva 10 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 11 Csatlakozás dátuma: 2013.06.04. Legújabb bejegyzések
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
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
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, módosítva 10 év-val korábban
RE: Service Builder with Maven
Liferay Legend Bejegyzések: 14914 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
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, módosítva 10 év-val korábban
RE: Service Builder with Maven
Liferay Master Bejegyzések: 501 Csatlakozás dátuma: 2011.12.20. Legújabb bejegyzések
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, módosítva 10 év-val korábban
RE: Service Builder with Maven
New Member Bejegyzések: 11 Csatlakozás dátuma: 2013.06.04. Legújabb bejegyzések
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
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, módosítva 10 év-val korábban
RE: Service Builder with Maven
Regular Member Bejegyzések: 184 Csatlakozás dátuma: 2013.03.01. Legújabb bejegyzések
@Joris What version of Liferay did you use to build with Maven?
Thanks,
MJ
Thanks,
MJ
Alex Curtui, módosítva 10 év-val korábban
RE: Service Builder with Maven
Junior Member Bejegyzések: 30 Csatlakozás dátuma: 2012.11.08. Legújabb bejegyzések
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
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, módosítva 10 év-val korábban
RE: Service Builder with Maven
Liferay Legend Bejegyzések: 1519 Csatlakozás dátuma: 2006.08.07. Legújabb bejegyzések
That bug has been fixed in the latest release.
Alex Curtui, módosítva 10 év-val korábban
RE: Service Builder with Maven
Junior Member Bejegyzések: 30 Csatlakozás dátuma: 2012.11.08. Legújabb bejegyzések
Thank you!
Alex
Alex