Fork me on GitHub

How to install the properties plugin


These instruction assumes that you have an HST project based on the HST archetype, i.e. a Maven multiproject consisting of at least three submodules: cms, site and content.

Maven 2 repository

Add this repository to your root pom.xml (if it has not already been defined in a parent pom):

  <name>Bloomreach Forge maven 2 repository.</name>

Installation in CMS/Repository

  1. Add this dependency to the pom.xml of your cms (or cms-dependencies) module:

  2. Rebuild your project. After startup, you should have the Properties document type available.

Installation in HST site

  1. Add this dependency to the pom.xml of your site/components module:

  2. The properties component contains a manager object that provides an API by which to retrieve properties documents from repository. To create such a manager, add this part to the Spring configuration file (create the file if it does not exist): site/src/main/resources/META-INF/hst-assembly/overrides/propertiesManager.xml

    <bean id=""
      <property name="defaultDocumentLocation"
      <property name="defaultDocumentName"

    Please see the properties-demo project on how to set up the accompanying PropertiesEventListener that invalidates that cache. You need to add something like

      <bean id="customJcrObservationEventListenerItems" class="org.springframework.beans.factory.config.ListFactoryBean">
        <property name="sourceList">
            <bean class="org.hippoecm.hst.core.jcr.EventListenerItemImpl">
              <property name="nodeAddedEnabled" value="false" />
              <property name="nodeRemovedEnabled" value="false" />
              <property name="propertyAddedEnabled" value="false" />
              <property name="propertyChangedEnabled" value="true" />
              <property name="propertyRemovedEnabled" value="false" />
              <property name="absolutePath" value="/" />
              <property name="deep" value="true" />
              <property name="uuids">
                <null />
              <property name="nodeTypeNames" value="properties:properties" />
              <property name="noLocal" value="false" />
              <property name="eventListener">
                <bean class="">
                  <property name="propertiesManager" ref="" />

    NB: You can also provide your own custom manager. Above configuration will by default search for properties documents in the /construction/labels folder by the name of common, but the API provides ways to do more. See the interface.

  3. Make sure you use classpath loaded beans in the web.xml of your site the following value to context parameter hst-beans-annotated-classes (note that the values are comma separated):


For usage in Java/JSP code, see here