Blog Post


Liferay 7 alpha/beta ServiceBuilder

Hey, we are all watching with great interest to the first coming stable Liferay 7 release (link). By now alpha and even beta releases are available for testing, they include new cool features and improvements. But still some old functionality is not migrated to the new releases. In this post I’ll talk about ServiceBuilder which is still not officially published and is missing in current alphas and betas. Anyway it is possible to find and use Liferay 7 ServiceBuilder (in liferay-ce repository). In this post I’ll show how to do it.

As said above, ServiceBuilder is missing in current Liferay 7 alpha and beta releases, you won’t find it in corresponding SDKs / Tomcat / Artifact bundles on official downloads page (link). But anyway this feature of Liferay is important and can greatly ease our lives when we need to generate a bunch of Java (and other) files from a single service.xml.

Assume that we have a default pom.xml configuration. Up-to-date Liferay 7 ServiceBuilder can be found in this Maven repository:


And the Maven plugin that includes ServiceBuilder has the following id and configuration, that should be added to the build->plugins section of your pom.xml:


Configuration section parameters are pretty straightforward if you had an experience in Liferay 6 or earlier. Now our pom is ready to build/generate service files, so just run in terminal:


mvn liferay:build-service

Comments (0)

Tags: liferay


Leave a Comment