loading table of contents...

Blueprint Developer Manual / Version 2310

Table Of Contents

4.4.4 Developing with the CAE

The CAE can be extended with new capabilities by using the Blueprint extension mechanism or by just creating a new module with the required resources. In both cases the extension will be activated by adding a Maven dependency on the new module. This section describes how to add a new Blueprint module which contains an additional view template and a new view repository using this template.

Maven Configuration

First you have to create a new module which contains the required resources. The location of the new module inside the workspace is not important to enable the new features provided by the module. But to keep cohesion in the aggregation modules of the CoreMedia Blueprint workspace the new module should be created next to other CAE functions. In this example the new module sample-cae-extension will be created in the apps/cae/modules/cae module.

  1. First, add a new module entry named sample-cae-extension to the modules section of the cae pom.xml file:

              <!-- add module -->
  2. After that create a new subdirectory sample-cae-extension and add the pom.xml.

    <?xml version="1.0" encoding="UTF-8"?>
              <project xmlns=""

Now the basic structure for the extension exists.

Enabling the Extension

To enable the extension the target component has to depend on the created extension module.

To enable the new capabilities in all CAEs add the following dependency to the pom.xml of the cae-base-component module:


Creating Source Files and Folders

The sample extension for the CAE provides a new view template for the content type CMArticle to display external content and a new view repository configuration which includes this view template.

  1. Create the new view template CMArticle.jsp in the module sample-cae-extension in the directory src/main/resources/META-INF/resources/WEB-INF/templates/external-content-view-repository/com.coremedia.blueprint.common.contentbeans.

  2. To include the new view repository add a Spring configuration defining the following beans:

    @Configuration(proxyBeanMethods = false)
      static class AddSampleViewRepositories {
        @Customize(value = "viewRepositories", mode = Customize.Mode.PREPEND)
        List<String> sampleViewRepositories() {
          // Add repository name, relative to /WEB-INF/templates/
          return ImmutableList.of("sample-cae-extension");

Search Results

Table Of Contents

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.