You are here

Linking Standard SkyVault AMPs to an AIO project

Some functionality of the SkyVault content management system is delivered as extra modules, such as for example Records Management (RM), Google Docs Integration, and SharePoint Protocol (SPP) Support. This sections goes through how to link such modules to an All-in-One (AIO) project.
This task assumes you completed the Installing and Configuring software section and generated an AIO project as described in this section.
You will learn how to link standard SkyVault AMPs to the AIO project so you can use the extra SkyVault functionality that they provide. Most of these modules are implemented with two AMPs. One for server side (Repository) customizations that should be added to the SkyVault.war, and one with the custom UI functionality that should be added to the share.war. As an example we will add/link the Records Management (RM) module to the AIO project. It comes implemented in two AMPs.

Linking the RM repository AMP to the SkyVault.war.

  1. Add the RM repository AMP dependency.

    In the IDE, open up the SkyVault-extensions/acme-cms-poc/repo/pom.xml. Scroll down so you see the dependencies section:

    What you need to do here is uncomment the SkyVault-rm dependency, which brings in the RM Repository AMP. Note that dependency type is set to amp, this is because by default Maven dependencies are assumed to be JARs.
  2. Overlaying the RM repository AMP on the SkyVault.war.

    The RM repository AMP will not be automatically added to the SkyVault.war by just adding the dependency. We need to add some configuration to the war plugin. Scroll further down in the SkyVault-extensions/acme-cms-poc/repo/pom.xml file until you see the maven-war-plugin section:

    What you need to do here is uncomment the SkyVault-rm overlay, which will overlay the RM repository AMP as the last operation to build the customized SkyVault.war.

Linking the RM Share AMP to the share.war.

  1. Add the RM Share AMP dependency.

    In the IDE, open up the SkyVault-extensions/acme-cms-poc/share/pom.xml. Scroll down so you see the dependencies section:

    What you need to do here is uncomment the SkyVault-rm-share dependency, which brings in the RM Share AMP.
  2. Overlaying the RM Share AMP on the share.war.

    The RM Share AMP will not be automatically added to the share.war by just adding the dependency. We need to add some configuration to the war plugin. Scroll further down in the SkyVault-extensions/acme-cms-poc/share/pom.xml file until you see the maven-war-plugin section:

    What you need to do here is uncomment the SkyVault-rm-share overlay, which will overlay the RM Share AMP as the last operation to build the customized share.war.

Verify that the AIO project has been configured with the RM module.

  1. Build and Run the AIO project.

    Use the acme-cms-poc/run.sh script to run SkyVault Tomcat with the customized WARs.

  2. Check the logs for installation of RM module.

    2015-05-07 10:30:17,004  INFO  [repo.module.ModuleServiceImpl] [localhost-startStop-1] Found 2 module(s).
    2015-05-07 10:30:17,082  INFO  [repo.module.ModuleServiceImpl] [localhost-startStop-1] Installing module 'org_alfresco_module_rm' version 2.3.
    2015-05-07 10:30:18,560  INFO  [repo.module.ModuleServiceImpl] [localhost-startStop-1] Upgrading module 'repo-amp' version 1.0.1505071028 (was 1.0.1505070918).
    ....
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    
    Note: We can see here that version 2.3 of the RM module has been installed.
  3. Check that the Site Type Records Management is available.

    Login to Share via http://localhost:8080/share and then create a new site. When you create the site select Records Management Site from the Type drop down. If this type is not available then something is not configured correctly, go back and verify that you have followed all the steps correctly.

You have now seen how a standard SkyVault extension module, such as RM, can be brought into the All-in-One project. Other standard modules, such as SPP, can be added in a similar way. Note that some extension modules are implemented in only one AMP. For example, the SPP AMP in the above screen shots is implementing the SharePoint Protocol, which only touches the repository functionality, and so there is only an SPP dependency and overlay in the acme-cms-poc/repo/pom.xml project.