How to install AMPs modules on Alfresco

An AMP file is a collection of code, XML, images, CSS, etc. that extend the functionality or data provided by the standard Alfresco repository.
Alfresco extensions/addons can be found in http://addons.alfresco.com/.

The Alfresco’s Module Management Tool (MMT) helps with the installation of AMP modules including upgrades to later versions, enabling and disabling of installed modules, de-install of installed modules and listing of currently installed modules.

To use the MMT to install an AMP justy type the following command:

${ALFRESCO_HOME}/bin/java -jar alfresco-mmt.jar install addon.amp /path/to/tomcat/webapps/alfresco.war -verbose

This installs the files found in the AMP file into the Alfresco WAR, updating it an older version is already installed.

However there exist a quicker and safer way to achieve the same goal.

  1.  Drop your AMP into either ${ALFRESCO_HOME}/amps or ${ALFRESCO_HOME}/amps_share depending on which webapp you are installing the AMP to.
  2. Execute the apply_amps.sh which is included in a standard Alfresco installation:
    ${ALFRESCO_HOME}/bin/apply_amps.sh

This script cleans also the cache data and remove temporary files.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s