Search code examples
liferayliferay-ideliferay-service-builder

How to create service builder for liferay plugin project with maven


I have Already create Liferay Plugin project. and maven install also over. it gives

 ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ---------------------------------------------------------------------
[INFO] Total time: 1:29.773s
[INFO] Finished at: Wed Jun 17 15:46:10 IST 2015
[INFO] Final Memory: 34M/151M
[INFO] -----------------------------.

But unable to add service builder.

When i try to add service builder
new->Liferay service builder.

It does not showing any plugin project.
Then how to add service builder?


Solution

  • Frankly speaking Liferay-Maven combination is not so fully supported by Liferay IDE in eclipse. Originally Liferay IDE has been created for only ANT support but since maven support has been introduced there are many things missing.

    This issue which you have raised is same for following options as well.

    1. JSF Portlet
    2. Layout
    3. Theme
    4. Service Builder

    This is not an issue for following options

    1. Hook
    2. Portlet
    3. Vaadin Portlet

    So, best way is to generate new service builder through maven archetypes supported for specific liferay version. E.g com.liferay.maven.archetypes:liferay-servicebuilder-archetype:6.2.1 for liferay 6.2.1 GA2 version.