I have
- Single project - Test
- Multiple portlets in this project like - Test01, Test02, Test03.
I want to
- have services generated through service-builder.
- have services for different portlet to reside in different packages, like for liferay we have
service.xmls as<service-builder package-path="com.liferay.portlet.documentlibrary">and
Question
- Is there a way I can have multiple service.xml files for each portlet's services.
- If I can have multiple service.xml files then can I have the
LocalServiceclasses generated for different portlet in different packages like:- For
Test01: com.prakash.test.one.Test01LocalService - For
Test02: com.prakash.test.two.Test02LocalService - For
Test03: com.prakash.test.three.Test03LocalService
- For
Any help would be appreciated.
Thanks
I found one solution looking at the source code of Liferay. It would require Liferay IDE.
service.xmlin there respective packages likecom/prakash/test/one/service.xml,com/prakash/test/two/service.xmletc.service.xmlindividually.service.xmlin Liferay IDE. Then clicking the top-right corner icon to build the service or using shortcut Ctrl+Shift+B.*service.jarfor the project inWEB-INF/lib/as usual.Hope this helps somebody.