Configuring service.properties

In this tutorial, you’ll learn how to use and edit the service.properties file. You’ll also learn about the properties included in this file and how to set them to fit your needs.

Service Builder generates a service.properties file in your *-service module’s src/main/resources folder. Liferay DXP uses the properties in this file to alter your service’s database schema. You should not modify this file, but rather make any necessary overrides in a service-ext.properties file in that same folder.

Here are some of the properties included in the service.properties file:

  • build.namespace: This is the namespace you defined in your service.xml. Liferay distinguishes different plugins from each other using their namespaces.
  • build.number: Liferay distinguishes different builds of your plugin. Each time a distinct build of your plugin is deployed to Liferay, Liferay increments this number.
  • build.date: This is the time of the latest build of your plugin.
  • include-and-override: The default value of this property defines service-ext.properties as an override file for service.properties.

Awesome! You now have all the tools necessary to set up your own service-ext.properties file.

What is Service Builder?

Creating Local Services

« Dynamic QueryConnecting Service Builder to External Data Sources »
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0